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

Last change on this file since 360 was 231, checked in by Yuri Dario, 14 years ago

spec: added xslt build.

File size: 3.9 KB
Line 
1Summary: Library providing the Gnome XSLT engine
2Name: libxslt
3Version: 1.1.26
4Release: 1%{?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%prep
58%setup -q
59%patch1 -p1 -b .os2~
60
61%build
62export CONFIG_SHELL="/bin/sh"
63export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
64export LIBS="-lurpo -lmmap -lpthread"
65%configure \
66 --enable-shared --disable-static \
67 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
68
69make %{?smp_mflags}
70
71gzip -9 ChangeLog
72
73%install
74rm -fr %{buildroot}
75
76%makeinstall
77
78rm -fr $RPM_BUILD_ROOT%{_libdir}/*.la \
79 $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxsltmod*a
80
81# multiarch crazyness on timestamp differences
82touch -m --reference=$RPM_BUILD_ROOT/%{prefix}/include/libxslt/xslt.h $RPM_BUILD_ROOT/%{prefix}/bin/xslt-config
83
84cp libxslt/*.dll $RPM_BUILD_ROOT%{_libdir}
85cp libxslt/.libs/xslt.a $RPM_BUILD_ROOT%{_libdir}
86
87cp libexslt/*.dll $RPM_BUILD_ROOT%{_libdir}
88cp libexslt/.libs/exslt.a $RPM_BUILD_ROOT%{_libdir}
89
90%clean
91rm -fr %{buildroot}
92
93%files
94%defattr(-, root, root)
95
96%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
97%doc doc/*.html doc/html doc/tutorial doc/tutorial2 doc/*.gif
98%doc doc/EXSLT
99%doc %{_mandir}/man1/xsltproc.1*
100%{_libdir}/*.dll
101%{_libdir}/libxslt-plugins
102%{_bindir}/xsltproc.exe
103
104%files devel
105%defattr(-, root, root)
106
107%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
108%doc doc/libxslt-api.xml
109%doc doc/libxslt-refs.xml
110%doc doc/EXSLT/libexslt-api.xml
111%doc doc/EXSLT/libexslt-refs.xml
112%doc %{_mandir}/man3/libxslt.3*
113%doc %{_mandir}/man3/libexslt.3*
114%doc doc/*.html doc/html doc/*.gif doc/*.png
115%doc doc/images
116%doc doc/tutorial
117%doc doc/tutorial2
118%doc doc/EXSLT
119%{_libdir}/*.dll
120%{_libdir}/*a
121%{_libdir}/*.sh
122%{prefix}/share/aclocal/libxslt.m4
123%{prefix}/include/*
124%{prefix}/bin/xslt-config
125%{_libdir}/pkgconfig/libxslt.pc
126%{_libdir}/pkgconfig/libexslt.pc
127
128%files python
129%defattr(-, root, root)
130
131%doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES
132%{_libdir}/python*/site-packages/libxslt.py*
133%{_libdir}/python*/site-packages/xsltmod*
134%doc python/TODO
135%doc python/libxsltclass.txt
136%doc python/tests/*.py
137%doc python/tests/*.xml
138%doc python/tests/*.xsl
139
140%changelog
Note: See TracBrowser for help on using the repository browser.