source: spec/trunk/SPECS/libxslt.spec@ 1566

Last change on this file since 1566 was 1445, checked in by Silvan Scherrer, 7 years ago

spec: libxslt: Release version 1.1.32-1.

File size: 4.7 KB
Line 
1Summary: Library providing the Gnome XSLT engine
2Name: libxslt
3Version: 1.1.32
4Release: 1%{?dist}%{?extra_release}
5License: MIT
6Group: Development/Libraries
7URL: http://xmlsoft.org/XSLT/
8Vendor: bww bitwise works GmbH
9
10%scm_source github http://github.com/bitwiseworks/%{name}-os2 master
11
12# DEF files to create forwarders for the legacy package
13Source10: libxslt.def
14Source11: libexslt.def
15
16Requires: libxml2 >= 2.6.27
17Requires: libcx >= 0.4
18
19BuildRoot: %{_tmppath}/%{name}-%{version}-root
20BuildRequires: libxml2-devel >= 2.6.27
21BuildRequires: python2-devel
22BuildRequires: libxml2-python
23#BuildRequires: libgcrypt-devel
24BuildRequires: automake autoconf
25
26%description
27This C library allows to transform XML files into other XML files
28(or HTML, text, ...) using the standard XSLT stylesheet transformation
29mechanism. To use it you need to have a version of libxml2 >= 2.6.27
30installed. The xsltproc command is a command line interface to the XSLT engine
31
32%package devel
33Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
34Group: Development/Libraries
35Requires: libxslt = %{version}-%{release}
36Requires: libxml2-devel >= 2.6.27
37#Requires: libgcrypt-devel
38Requires: pkgconfig
39
40%description devel
41The %{name}-devel package contains libraries and header files for
42developing applications that use %{name}.
43
44%package python
45Summary: Python bindings for the libxslt library
46Group: Development/Libraries
47Requires: libxslt = %{version}-%{release}
48Requires: libxml2 >= 2.6.27
49Requires: libxml2-python >= 2.6.27
50
51%description python
52The libxslt-python package contains a module that permits applications
53written in the Python programming language to use the interface
54supplied by the libxslt library to apply XSLT transformations.
55
56This library allows to parse sytlesheets, uses the libxml2-python
57to load and save XML and HTML files. Direct access to XPath and
58the XSLT transformation context are possible to extend the XSLT language
59with XPath functions written in Python.
60
61%debug_package
62
63%prep
64%scm_setup
65
66# Prepare forwarder DLLs.
67for m in %{SOURCE10} %{SOURCE11}; do
68 cp ${m} .
69done
70
71autoreconf -fvi
72
73gzip -9 ChangeLog
74
75%build
76export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
77export LIBS="-lcx"
78export VENDOR="%{vendor}"
79%configure --disable-static
80make %{?_smp_mflags}
81
82%install
83make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
84find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
85
86# multiarch crazyness on timestamp differences
87touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxslt/xslt.h $RPM_BUILD_ROOT/%{_bindir}/xslt-config
88
89rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
90rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-python-%{version}
91rm -f $RPM_BUILD_ROOT%{python_sitearch}/*.a
92
93# Generate & install forwarder DLLs.
94gcc -Zomf -Zdll -nostdlib libxslt.def -l$RPM_BUILD_ROOT/%{_libdir}/xslt1.dll -lend -o $RPM_BUILD_ROOT/%{_libdir}/xslt.dll
95gcc -Zomf -Zdll -nostdlib libexslt.def -l$RPM_BUILD_ROOT/%{_libdir}/exslt0.dll -lend -o $RPM_BUILD_ROOT/%{_libdir}/exslt.dll
96
97# create a symlink for the python binding, as the dll itself is named xml2mod.dll
98ln -s %{python_sitearch}/xsltmod.dll $RPM_BUILD_ROOT%{python_sitearch}/libxsltmod.pyd
99
100%clean
101rm -fr %{buildroot}
102
103%check
104#make tests
105
106#post -p /sbin/ldconfig
107
108#postun -p /sbin/ldconfig
109
110%files
111%defattr(-, root, root)
112%doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES
113%doc %{_mandir}/man1/xsltproc.1*
114%{_libdir}/*.dll
115%{_libdir}/libxslt-plugins
116%{_bindir}/xsltproc.exe
117
118%files devel
119%defattr(-, root, root)
120%doc doc/libxslt-api.xml
121%doc doc/libxslt-refs.xml
122%doc doc/EXSLT/libexslt-api.xml
123%doc doc/EXSLT/libexslt-refs.xml
124%doc %{_mandir}/man3/libxslt.3*
125%doc %{_mandir}/man3/libexslt.3*
126%doc doc/*.html doc/html doc/*.gif doc/*.png
127%doc doc/images
128%doc doc/tutorial
129%doc doc/tutorial2
130%doc doc/EXSLT
131%{_libdir}/*_dll.a
132%{_libdir}/*.sh
133%{_datadir}/aclocal/libxslt.m4
134%{_includedir}/*
135%{_bindir}/xslt-config
136%{_libdir}/pkgconfig/libxslt.pc
137%{_libdir}/pkgconfig/libexslt.pc
138
139%files python
140%defattr(-, root, root)
141%{python_sitearch}/libxslt.py*
142%{python_sitearch}/libxsltmod*
143%{python_sitearch}/xsltmod.dll
144%doc python/libxsltclass.txt
145%doc python/tests/*.py
146%doc python/tests/*.xml
147%doc python/tests/*.xsl
148
149%changelog
150* Thu Jul 26 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.1.32-1
151- update to vendor version 1.1.32
152- moved source to github
153- use the new scm_source and scm_setup macros
154
155* Wed Nov 30 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.1.29-2
156- add -nostdlib to forwarders, to need less heap
157
158* Fri Nov 25 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.1.29-1
159- update to version 1.1.29
160- adjust to the current toolchain
161
162* Mon Apr 07 2014 yd
163- build for python 2.7.
164- added debug package with symbolic info for exceptq.
Note: See TracBrowser for help on using the repository browser.