1 | Summary: Library providing the Gnome XSLT engine
|
---|
2 | Name: libxslt
|
---|
3 | Version: 1.1.32
|
---|
4 | Release: 1%{?dist}%{?extra_release}
|
---|
5 | License: MIT
|
---|
6 | Group: Development/Libraries
|
---|
7 | URL: http://xmlsoft.org/XSLT/
|
---|
8 | Vendor: 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
|
---|
13 | Source10: libxslt.def
|
---|
14 | Source11: libexslt.def
|
---|
15 |
|
---|
16 | Requires: libxml2 >= 2.6.27
|
---|
17 | Requires: libcx >= 0.4
|
---|
18 |
|
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
---|
20 | BuildRequires: libxml2-devel >= 2.6.27
|
---|
21 | BuildRequires: python2-devel
|
---|
22 | BuildRequires: libxml2-python
|
---|
23 | #BuildRequires: libgcrypt-devel
|
---|
24 | BuildRequires: automake autoconf
|
---|
25 |
|
---|
26 | %description
|
---|
27 | This C library allows to transform XML files into other XML files
|
---|
28 | (or HTML, text, ...) using the standard XSLT stylesheet transformation
|
---|
29 | mechanism. To use it you need to have a version of libxml2 >= 2.6.27
|
---|
30 | installed. The xsltproc command is a command line interface to the XSLT engine
|
---|
31 |
|
---|
32 | %package devel
|
---|
33 | Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
|
---|
34 | Group: Development/Libraries
|
---|
35 | Requires: libxslt = %{version}-%{release}
|
---|
36 | Requires: libxml2-devel >= 2.6.27
|
---|
37 | #Requires: libgcrypt-devel
|
---|
38 | Requires: pkgconfig
|
---|
39 |
|
---|
40 | %description devel
|
---|
41 | The %{name}-devel package contains libraries and header files for
|
---|
42 | developing applications that use %{name}.
|
---|
43 |
|
---|
44 | %package python
|
---|
45 | Summary: Python bindings for the libxslt library
|
---|
46 | Group: Development/Libraries
|
---|
47 | Requires: libxslt = %{version}-%{release}
|
---|
48 | Requires: libxml2 >= 2.6.27
|
---|
49 | Requires: libxml2-python >= 2.6.27
|
---|
50 |
|
---|
51 | %description python
|
---|
52 | The libxslt-python package contains a module that permits applications
|
---|
53 | written in the Python programming language to use the interface
|
---|
54 | supplied by the libxslt library to apply XSLT transformations.
|
---|
55 |
|
---|
56 | This library allows to parse sytlesheets, uses the libxml2-python
|
---|
57 | to load and save XML and HTML files. Direct access to XPath and
|
---|
58 | the XSLT transformation context are possible to extend the XSLT language
|
---|
59 | with XPath functions written in Python.
|
---|
60 |
|
---|
61 | %debug_package
|
---|
62 |
|
---|
63 | %prep
|
---|
64 | %scm_setup
|
---|
65 |
|
---|
66 | # Prepare forwarder DLLs.
|
---|
67 | for m in %{SOURCE10} %{SOURCE11}; do
|
---|
68 | cp ${m} .
|
---|
69 | done
|
---|
70 |
|
---|
71 | autoreconf -fvi
|
---|
72 |
|
---|
73 | gzip -9 ChangeLog
|
---|
74 |
|
---|
75 | %build
|
---|
76 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
77 | export LIBS="-lcx"
|
---|
78 | export VENDOR="%{vendor}"
|
---|
79 | %configure --disable-static
|
---|
80 | make %{?_smp_mflags}
|
---|
81 |
|
---|
82 | %install
|
---|
83 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
---|
84 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
---|
85 |
|
---|
86 | # multiarch crazyness on timestamp differences
|
---|
87 | touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxslt/xslt.h $RPM_BUILD_ROOT/%{_bindir}/xslt-config
|
---|
88 |
|
---|
89 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
---|
90 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-python-%{version}
|
---|
91 | rm -f $RPM_BUILD_ROOT%{python_sitearch}/*.a
|
---|
92 |
|
---|
93 | # Generate & install forwarder DLLs.
|
---|
94 | gcc -Zomf -Zdll -nostdlib libxslt.def -l$RPM_BUILD_ROOT/%{_libdir}/xslt1.dll -lend -o $RPM_BUILD_ROOT/%{_libdir}/xslt.dll
|
---|
95 | gcc -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
|
---|
98 | ln -s %{python_sitearch}/xsltmod.dll $RPM_BUILD_ROOT%{python_sitearch}/libxsltmod.pyd
|
---|
99 |
|
---|
100 | %clean
|
---|
101 | rm -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.
|
---|