| 1 | Summary: Library providing the Gnome XSLT engine
|
|---|
| 2 | Name: libxslt
|
|---|
| 3 | Version: 1.1.26
|
|---|
| 4 | Release: 1%{?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 | %prep
|
|---|
| 58 | %setup -q
|
|---|
| 59 | %patch1 -p1 -b .os2~
|
|---|
| 60 |
|
|---|
| 61 | %build
|
|---|
| 62 | export CONFIG_SHELL="/bin/sh"
|
|---|
| 63 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 64 | export LIBS="-lurpo -lmmap -lpthread"
|
|---|
| 65 | %configure \
|
|---|
| 66 | --enable-shared --disable-static \
|
|---|
| 67 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 68 |
|
|---|
| 69 | make %{?smp_mflags}
|
|---|
| 70 |
|
|---|
| 71 | gzip -9 ChangeLog
|
|---|
| 72 |
|
|---|
| 73 | %install
|
|---|
| 74 | rm -fr %{buildroot}
|
|---|
| 75 |
|
|---|
| 76 | %makeinstall
|
|---|
| 77 |
|
|---|
| 78 | rm -fr $RPM_BUILD_ROOT%{_libdir}/*.la \
|
|---|
| 79 | $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxsltmod*a
|
|---|
| 80 |
|
|---|
| 81 | # multiarch crazyness on timestamp differences
|
|---|
| 82 | touch -m --reference=$RPM_BUILD_ROOT/%{prefix}/include/libxslt/xslt.h $RPM_BUILD_ROOT/%{prefix}/bin/xslt-config
|
|---|
| 83 |
|
|---|
| 84 | cp libxslt/*.dll $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 85 | cp libxslt/.libs/xslt.a $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 86 |
|
|---|
| 87 | cp libexslt/*.dll $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 88 | cp libexslt/.libs/exslt.a $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 89 |
|
|---|
| 90 | %clean
|
|---|
| 91 | rm -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
|
|---|