Ignore:
Timestamp:
Nov 28, 2016, 12:22:55 PM (9 years ago)
Author:
Silvan Scherrer
Message:

spec: libxslt: Release version 1.1.29-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/libxslt.spec

    r406 r909  
     1#define svn_url     e:/trees/libxml2/trunk
     2%define svn_url     http://svn.netlabs.org/repos/ports/xslt/trunk
     3%define svn_rev     1829
     4
    15Summary: Library providing the Gnome XSLT engine
    26Name: libxslt
    3 Version: 1.1.26
    4 Release: 2%{?dist}%{?extra_release}
     7Version: 1.1.29
     8Release: 1%{?dist}%{?extra_release}
    59License: MIT
    610Group: Development/Libraries
    7 Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
    8 Patch1: libxslt-os2.diff
     11URL: http://xmlsoft.org/XSLT/
     12Vendor: bww bitwise works GmbH
     13
     14Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
     15
     16# DEF files to create forwarders for the legacy package
     17Source10:       libxslt.def
     18Source11:       libexslt.def
     19
     20Requires: libxml2 >= 2.6.27
     21Requires: libcx >= 0.4
    922
    1023BuildRoot: %{_tmppath}/%{name}-%{version}-root
    11 URL: http://xmlsoft.org/XSLT/
    12 Requires: libxml2 >= 2.6.27
    1324BuildRequires: libxml2-devel >= 2.6.27
    14 BuildRequires: python python-devel
     25BuildRequires: python2-devel
    1526BuildRequires: libxml2-python
    1627#BuildRequires: libgcrypt-devel
    17 Prefix: %{_prefix}
    18 Docdir: %{_docdir}
     28BuildRequires: automake autoconf
    1929
    2030%description
     
    3343
    3444%description devel
    35 This C library allows to transform XML files into other XML files
    36 (or HTML, text, ...) using the standard XSLT stylesheet transformation
    37 mechanism. To use it you need to have a version of libxml2 >= 2.6.27
    38 installed.
     45The %{name}-devel package contains libraries and header files for
     46developing applications that use %{name}.
    3947
    4048%package python
     
    5563with XPath functions written in Python.
    5664
    57 %package debug
    58 Summary: HLL debug data for exception handling support.
    59 
    60 %description debug
    61 HLL debug data for exception handling support.
     65%debug_package
    6266
    6367%prep
     68%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{?!svn_rev):0}
    6469%setup -q
    65 %patch1 -p1 -b .os2~
     70%else
     71%setup -n "%{name}-%{version}" -Tc
     72svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     73rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
     74(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
     75%endif
    6676
    67 %build
    68 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
    69 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    70 export LIBS="-lurpo -lmmap -lpthread"
    71 %configure \
    72     --enable-shared --disable-static \
    73     "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     77# Prepare forwarder DLLs.
     78for m in %{SOURCE10} %{SOURCE11}; do
     79  cp ${m} .
     80done
    7481
    75 make %{?smp_mflags}
     82autoreconf -fvi
    7683
    7784gzip -9 ChangeLog
    7885
     86%build
     87export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
     88export LIBS="-lcx"
     89export VENDOR="%{vendor}"
     90%configure --disable-static
     91make %{?_smp_mflags}
     92
    7993%install
    80 rm -fr %{buildroot}
    81 
    82 %makeinstall
    83 
    84 rm -fr $RPM_BUILD_ROOT%{_libdir}/*.la \
    85        $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxsltmod*a
     94make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
     95find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
    8696
    8797# multiarch crazyness on timestamp differences
    88 touch -m --reference=$RPM_BUILD_ROOT/%{prefix}/include/libxslt/xslt.h $RPM_BUILD_ROOT/%{prefix}/bin/xslt-config
     98touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxslt/xslt.h $RPM_BUILD_ROOT/%{_bindir}/xslt-config
    8999
    90 cp libxslt/*.dll $RPM_BUILD_ROOT%{_libdir}
    91 cp libxslt/.libs/xslt.a $RPM_BUILD_ROOT%{_libdir}
     100rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
     101rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-python-%{version}
     102rm -f $RPM_BUILD_ROOT%{python_sitearch}/*.a
    92103
    93 cp libexslt/*.dll $RPM_BUILD_ROOT%{_libdir}
    94 cp libexslt/.libs/exslt.a $RPM_BUILD_ROOT%{_libdir}
     104# Generate & install forwarder DLLs.
     105gcc -Zomf -Zdll libxslt.def -l$RPM_BUILD_ROOT/%{_libdir}/xslt1.dll -o $RPM_BUILD_ROOT/%{_libdir}/xslt.dll
     106gcc -Zomf -Zdll libexslt.def -l$RPM_BUILD_ROOT/%{_libdir}/exslt0.dll -o $RPM_BUILD_ROOT/%{_libdir}/exslt.dll
     107
     108# create a symlink for the python binding, as the dll itself is named xml2mod.dll
     109ln -s %{python_sitearch}/xsltmod.dll $RPM_BUILD_ROOT%{python_sitearch}/libxsltmod.pyd
    95110
    96111%clean
    97112rm -fr %{buildroot}
    98113
     114%check
     115#make tests
     116
     117#post -p /sbin/ldconfig
     118
     119#postun -p /sbin/ldconfig
     120
    99121%files
    100122%defattr(-, root, root)
    101 
    102 %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
    103 %doc doc/*.html doc/html doc/tutorial doc/tutorial2 doc/*.gif
    104 %doc doc/EXSLT
     123%doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES
    105124%doc %{_mandir}/man1/xsltproc.1*
    106125%{_libdir}/*.dll
     
    110129%files devel
    111130%defattr(-, root, root)
    112 
    113 %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
    114131%doc doc/libxslt-api.xml
    115132%doc doc/libxslt-refs.xml
     
    123140%doc doc/tutorial2
    124141%doc doc/EXSLT
    125 %{_libdir}/*.dll
    126 %{_libdir}/*a
     142%{_libdir}/*_dll.a
    127143%{_libdir}/*.sh
    128 %{prefix}/share/aclocal/libxslt.m4
    129 %{prefix}/include/*
    130 %{prefix}/bin/xslt-config
     144%{_datadir}/aclocal/libxslt.m4
     145%{_includedir}/*
     146%{_bindir}/xslt-config
    131147%{_libdir}/pkgconfig/libxslt.pc
    132148%{_libdir}/pkgconfig/libexslt.pc
     
    134150%files python
    135151%defattr(-, root, root)
    136 
    137 %doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES
    138 %{_libdir}/python*/site-packages/libxslt.py*
    139 %{_libdir}/python*/site-packages/xsltmod*
    140 %doc python/TODO
     152%{python_sitearch}/libxslt.py*
     153%{python_sitearch}/libxsltmod*
     154%{python_sitearch}/xsltmod.dll
    141155%doc python/libxsltclass.txt
    142156%doc python/tests/*.py
     
    144158%doc python/tests/*.xsl
    145159
    146 %files debug
    147 %defattr(-,root,root)
    148 %{_bindir}/*.dbg
    149 %{_libdir}/*.dbg
     160%changelog
     161* Fri Nov 25 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.1.29-1
     162- update to version 1.1.29
     163- adjust to the current toolchain
    150164
    151 %changelog
    152165* Mon Apr 07 2014 yd
    153166- build for python 2.7.
Note: See TracChangeset for help on using the changeset viewer.