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

Last change on this file since 858 was 406, checked in by Yuri Dario, 11 years ago

spec: libxml2, libxslt, added debug package with symbolic info for exceptq.

File size: 4.2 KB
Line 
1Summary: Library providing the Gnome XSLT engine
2Name: libxslt
3Version: 1.1.26
4Release: 2%{?dist}%{?extra_release}
5License: MIT
6Group: Development/Libraries
7Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
8Patch1: libxslt-os2.diff
9
10BuildRoot: %{_tmppath}/%{name}-%{version}-root
11URL: http://xmlsoft.org/XSLT/
12Requires: libxml2 >= 2.6.27
13BuildRequires: libxml2-devel >= 2.6.27
14BuildRequires: python python-devel
15BuildRequires: libxml2-python
16#BuildRequires: libgcrypt-devel
17Prefix: %{_prefix}
18Docdir: %{_docdir}
19
20%description
21This C library allows to transform XML files into other XML files
22(or HTML, text, ...) using the standard XSLT stylesheet transformation
23mechanism. To use it you need to have a version of libxml2 >= 2.6.27
24installed. The xsltproc command is a command line interface to the XSLT engine
25
26%package devel
27Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
28Group: Development/Libraries
29Requires: libxslt = %{version}-%{release}
30Requires: libxml2-devel >= 2.6.27
31#Requires: libgcrypt-devel
32Requires: pkgconfig
33
34%description devel
35This C library allows to transform XML files into other XML files
36(or HTML, text, ...) using the standard XSLT stylesheet transformation
37mechanism. To use it you need to have a version of libxml2 >= 2.6.27
38installed.
39
40%package python
41Summary: Python bindings for the libxslt library
42Group: Development/Libraries
43Requires: libxslt = %{version}-%{release}
44Requires: libxml2 >= 2.6.27
45Requires: libxml2-python >= 2.6.27
46
47%description python
48The libxslt-python package contains a module that permits applications
49written in the Python programming language to use the interface
50supplied by the libxslt library to apply XSLT transformations.
51
52This library allows to parse sytlesheets, uses the libxml2-python
53to load and save XML and HTML files. Direct access to XPath and
54the XSLT transformation context are possible to extend the XSLT language
55with XPath functions written in Python.
56
57%package debug
58Summary: HLL debug data for exception handling support.
59
60%description debug
61HLL debug data for exception handling support.
62
63%prep
64%setup -q
65%patch1 -p1 -b .os2~
66
67%build
68export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
69export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
70export LIBS="-lurpo -lmmap -lpthread"
71%configure \
72 --enable-shared --disable-static \
73 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
74
75make %{?smp_mflags}
76
77gzip -9 ChangeLog
78
79%install
80rm -fr %{buildroot}
81
82%makeinstall
83
84rm -fr $RPM_BUILD_ROOT%{_libdir}/*.la \
85 $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxsltmod*a
86
87# multiarch crazyness on timestamp differences
88touch -m --reference=$RPM_BUILD_ROOT/%{prefix}/include/libxslt/xslt.h $RPM_BUILD_ROOT/%{prefix}/bin/xslt-config
89
90cp libxslt/*.dll $RPM_BUILD_ROOT%{_libdir}
91cp libxslt/.libs/xslt.a $RPM_BUILD_ROOT%{_libdir}
92
93cp libexslt/*.dll $RPM_BUILD_ROOT%{_libdir}
94cp libexslt/.libs/exslt.a $RPM_BUILD_ROOT%{_libdir}
95
96%clean
97rm -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.
Note: See TracBrowser for help on using the repository browser.