1 | Summary: Library providing the Gnome XSLT engine
|
---|
2 | Name: libxslt
|
---|
3 | Version: 1.1.26
|
---|
4 | Release: 2%{?dist}%{?extra_release}
|
---|
5 | License: MIT
|
---|
6 | Group: Development/Libraries
|
---|
7 | Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
|
---|
8 | Patch1: libxslt-os2.diff
|
---|
9 |
|
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
---|
11 | URL: http://xmlsoft.org/XSLT/
|
---|
12 | Requires: libxml2 >= 2.6.27
|
---|
13 | BuildRequires: libxml2-devel >= 2.6.27
|
---|
14 | BuildRequires: python python-devel
|
---|
15 | BuildRequires: libxml2-python
|
---|
16 | #BuildRequires: libgcrypt-devel
|
---|
17 | Prefix: %{_prefix}
|
---|
18 | Docdir: %{_docdir}
|
---|
19 |
|
---|
20 | %description
|
---|
21 | This C library allows to transform XML files into other XML files
|
---|
22 | (or HTML, text, ...) using the standard XSLT stylesheet transformation
|
---|
23 | mechanism. To use it you need to have a version of libxml2 >= 2.6.27
|
---|
24 | installed. The xsltproc command is a command line interface to the XSLT engine
|
---|
25 |
|
---|
26 | %package devel
|
---|
27 | Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
|
---|
28 | Group: Development/Libraries
|
---|
29 | Requires: libxslt = %{version}-%{release}
|
---|
30 | Requires: libxml2-devel >= 2.6.27
|
---|
31 | #Requires: libgcrypt-devel
|
---|
32 | Requires: pkgconfig
|
---|
33 |
|
---|
34 | %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.
|
---|
39 |
|
---|
40 | %package python
|
---|
41 | Summary: Python bindings for the libxslt library
|
---|
42 | Group: Development/Libraries
|
---|
43 | Requires: libxslt = %{version}-%{release}
|
---|
44 | Requires: libxml2 >= 2.6.27
|
---|
45 | Requires: libxml2-python >= 2.6.27
|
---|
46 |
|
---|
47 | %description python
|
---|
48 | The libxslt-python package contains a module that permits applications
|
---|
49 | written in the Python programming language to use the interface
|
---|
50 | supplied by the libxslt library to apply XSLT transformations.
|
---|
51 |
|
---|
52 | This library allows to parse sytlesheets, uses the libxml2-python
|
---|
53 | to load and save XML and HTML files. Direct access to XPath and
|
---|
54 | the XSLT transformation context are possible to extend the XSLT language
|
---|
55 | with XPath functions written in Python.
|
---|
56 |
|
---|
57 | %package debug
|
---|
58 | Summary: HLL debug data for exception handling support.
|
---|
59 |
|
---|
60 | %description debug
|
---|
61 | HLL debug data for exception handling support.
|
---|
62 |
|
---|
63 | %prep
|
---|
64 | %setup -q
|
---|
65 | %patch1 -p1 -b .os2~
|
---|
66 |
|
---|
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"
|
---|
74 |
|
---|
75 | make %{?smp_mflags}
|
---|
76 |
|
---|
77 | gzip -9 ChangeLog
|
---|
78 |
|
---|
79 | %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
|
---|
86 |
|
---|
87 | # multiarch crazyness on timestamp differences
|
---|
88 | touch -m --reference=$RPM_BUILD_ROOT/%{prefix}/include/libxslt/xslt.h $RPM_BUILD_ROOT/%{prefix}/bin/xslt-config
|
---|
89 |
|
---|
90 | cp libxslt/*.dll $RPM_BUILD_ROOT%{_libdir}
|
---|
91 | cp libxslt/.libs/xslt.a $RPM_BUILD_ROOT%{_libdir}
|
---|
92 |
|
---|
93 | cp libexslt/*.dll $RPM_BUILD_ROOT%{_libdir}
|
---|
94 | cp libexslt/.libs/exslt.a $RPM_BUILD_ROOT%{_libdir}
|
---|
95 |
|
---|
96 | %clean
|
---|
97 | rm -fr %{buildroot}
|
---|
98 |
|
---|
99 | %files
|
---|
100 | %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
|
---|
105 | %doc %{_mandir}/man1/xsltproc.1*
|
---|
106 | %{_libdir}/*.dll
|
---|
107 | %{_libdir}/libxslt-plugins
|
---|
108 | %{_bindir}/xsltproc.exe
|
---|
109 |
|
---|
110 | %files devel
|
---|
111 | %defattr(-, root, root)
|
---|
112 |
|
---|
113 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
|
---|
114 | %doc doc/libxslt-api.xml
|
---|
115 | %doc doc/libxslt-refs.xml
|
---|
116 | %doc doc/EXSLT/libexslt-api.xml
|
---|
117 | %doc doc/EXSLT/libexslt-refs.xml
|
---|
118 | %doc %{_mandir}/man3/libxslt.3*
|
---|
119 | %doc %{_mandir}/man3/libexslt.3*
|
---|
120 | %doc doc/*.html doc/html doc/*.gif doc/*.png
|
---|
121 | %doc doc/images
|
---|
122 | %doc doc/tutorial
|
---|
123 | %doc doc/tutorial2
|
---|
124 | %doc doc/EXSLT
|
---|
125 | %{_libdir}/*.dll
|
---|
126 | %{_libdir}/*a
|
---|
127 | %{_libdir}/*.sh
|
---|
128 | %{prefix}/share/aclocal/libxslt.m4
|
---|
129 | %{prefix}/include/*
|
---|
130 | %{prefix}/bin/xslt-config
|
---|
131 | %{_libdir}/pkgconfig/libxslt.pc
|
---|
132 | %{_libdir}/pkgconfig/libexslt.pc
|
---|
133 |
|
---|
134 | %files python
|
---|
135 | %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
|
---|
141 | %doc python/libxsltclass.txt
|
---|
142 | %doc python/tests/*.py
|
---|
143 | %doc python/tests/*.xml
|
---|
144 | %doc python/tests/*.xsl
|
---|
145 |
|
---|
146 | %files debug
|
---|
147 | %defattr(-,root,root)
|
---|
148 | %{_bindir}/*.dbg
|
---|
149 | %{_libdir}/*.dbg
|
---|
150 |
|
---|
151 | %changelog
|
---|
152 | * Mon Apr 07 2014 yd
|
---|
153 | - build for python 2.7.
|
---|
154 | - added debug package with symbolic info for exceptq.
|
---|