Changeset 909 for spec/trunk/SPECS/libxslt.spec
- Timestamp:
- Nov 28, 2016, 12:22:55 PM (9 years ago)
- 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 1 5 Summary: Library providing the Gnome XSLT engine 2 6 Name: libxslt 3 Version: 1.1.2 64 Release: 2%{?dist}%{?extra_release}7 Version: 1.1.29 8 Release: 1%{?dist}%{?extra_release} 5 9 License: MIT 6 10 Group: Development/Libraries 7 Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz 8 Patch1: libxslt-os2.diff 11 URL: http://xmlsoft.org/XSLT/ 12 Vendor: bww bitwise works GmbH 13 14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 15 16 # DEF files to create forwarders for the legacy package 17 Source10: libxslt.def 18 Source11: libexslt.def 19 20 Requires: libxml2 >= 2.6.27 21 Requires: libcx >= 0.4 9 22 10 23 BuildRoot: %{_tmppath}/%{name}-%{version}-root 11 URL: http://xmlsoft.org/XSLT/12 Requires: libxml2 >= 2.6.2713 24 BuildRequires: libxml2-devel >= 2.6.27 14 BuildRequires: python python-devel25 BuildRequires: python2-devel 15 26 BuildRequires: libxml2-python 16 27 #BuildRequires: libgcrypt-devel 17 Prefix: %{_prefix} 18 Docdir: %{_docdir} 28 BuildRequires: automake autoconf 19 29 20 30 %description … … 33 43 34 44 %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. 45 The %{name}-devel package contains libraries and header files for 46 developing applications that use %{name}. 39 47 40 48 %package python … … 55 63 with XPath functions written in Python. 56 64 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 62 66 63 67 %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} 64 69 %setup -q 65 %patch1 -p1 -b .os2~ 70 %else 71 %setup -n "%{name}-%{version}" -Tc 72 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 73 rm -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 66 76 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. 78 for m in %{SOURCE10} %{SOURCE11}; do 79 cp ${m} . 80 done 74 81 75 make %{?smp_mflags} 82 autoreconf -fvi 76 83 77 84 gzip -9 ChangeLog 78 85 86 %build 87 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 88 export LIBS="-lcx" 89 export VENDOR="%{vendor}" 90 %configure --disable-static 91 make %{?_smp_mflags} 92 79 93 %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 94 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" 95 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' 86 96 87 97 # multiarch crazyness on timestamp differences 88 touch -m --reference=$RPM_BUILD_ROOT/%{ prefix}/include/libxslt/xslt.h $RPM_BUILD_ROOT/%{prefix}/bin/xslt-config98 touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxslt/xslt.h $RPM_BUILD_ROOT/%{_bindir}/xslt-config 89 99 90 cp libxslt/*.dll $RPM_BUILD_ROOT%{_libdir} 91 cp libxslt/.libs/xslt.a $RPM_BUILD_ROOT%{_libdir} 100 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} 101 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-python-%{version} 102 rm -f $RPM_BUILD_ROOT%{python_sitearch}/*.a 92 103 93 cp libexslt/*.dll $RPM_BUILD_ROOT%{_libdir} 94 cp libexslt/.libs/exslt.a $RPM_BUILD_ROOT%{_libdir} 104 # Generate & install forwarder DLLs. 105 gcc -Zomf -Zdll libxslt.def -l$RPM_BUILD_ROOT/%{_libdir}/xslt1.dll -o $RPM_BUILD_ROOT/%{_libdir}/xslt.dll 106 gcc -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 109 ln -s %{python_sitearch}/xsltmod.dll $RPM_BUILD_ROOT%{python_sitearch}/libxsltmod.pyd 95 110 96 111 %clean 97 112 rm -fr %{buildroot} 98 113 114 %check 115 #make tests 116 117 #post -p /sbin/ldconfig 118 119 #postun -p /sbin/ldconfig 120 99 121 %files 100 122 %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 105 124 %doc %{_mandir}/man1/xsltproc.1* 106 125 %{_libdir}/*.dll … … 110 129 %files devel 111 130 %defattr(-, root, root) 112 113 %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES114 131 %doc doc/libxslt-api.xml 115 132 %doc doc/libxslt-refs.xml … … 123 140 %doc doc/tutorial2 124 141 %doc doc/EXSLT 125 %{_libdir}/*.dll 126 %{_libdir}/*a 142 %{_libdir}/*_dll.a 127 143 %{_libdir}/*.sh 128 %{ prefix}/share/aclocal/libxslt.m4129 %{ prefix}/include/*130 %{ prefix}/bin/xslt-config144 %{_datadir}/aclocal/libxslt.m4 145 %{_includedir}/* 146 %{_bindir}/xslt-config 131 147 %{_libdir}/pkgconfig/libxslt.pc 132 148 %{_libdir}/pkgconfig/libexslt.pc … … 134 150 %files python 135 151 %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 141 155 %doc python/libxsltclass.txt 142 156 %doc python/tests/*.py … … 144 158 %doc python/tests/*.xsl 145 159 146 % files debug147 %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 150 164 151 %changelog152 165 * Mon Apr 07 2014 yd 153 166 - build for python 2.7.
Note:
See TracChangeset
for help on using the changeset viewer.