dominicc | 96dbafe | 2016-04-06 00:16:28 | [diff] [blame] | 1 | Summary: Library providing the GNOME XSLT engine |
| 2 | Name: libxslt |
| 3 | Version: 1.1.28 |
| 4 | Release: 1 |
| 5 | License: MIT |
| 6 | Group: Development/Libraries |
| 7 | Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz |
| 8 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
| 9 | URL: http://xmlsoft.org/XSLT/ |
| 10 | Requires: libxml2 >= 2.6.27 |
| 11 | BuildRequires: libxml2-devel >= 2.6.27 |
| 12 | BuildRequires: python python-devel |
| 13 | BuildRequires: libxml2-python |
| 14 | BuildRequires: libgcrypt-devel |
| 15 | Prefix: %{_prefix} |
| 16 | Docdir: %{_docdir} |
| 17 | |
| 18 | %description |
| 19 | This C library allows to transform XML files into other XML files |
| 20 | (or HTML, text, ...) using the standard XSLT stylesheet transformation |
| 21 | mechanism. To use it you need to have a version of libxml2 >= 2.6.27 |
| 22 | installed. The xsltproc command is a command line interface to the XSLT engine |
| 23 | |
| 24 | %package devel |
| 25 | Summary: Libraries, includes, etc. to embed the GNOME XSLT engine |
| 26 | Group: Development/Libraries |
| 27 | Requires: libxslt = %{version}-%{release} |
| 28 | Requires: libxml2-devel >= 2.6.27 |
| 29 | Requires: libgcrypt-devel |
| 30 | Requires: pkgconfig |
| 31 | |
| 32 | %description devel |
| 33 | This C library allows to transform XML files into other XML files |
| 34 | (or HTML, text, ...) using the standard XSLT stylesheet transformation |
| 35 | mechanism. To use it you need to have a version of libxml2 >= 2.6.27 |
| 36 | installed. |
| 37 | |
| 38 | %package python |
| 39 | Summary: Python bindings for the libxslt library |
| 40 | Group: Development/Libraries |
| 41 | Requires: libxslt = %{version}-%{release} |
| 42 | Requires: libxml2 >= 2.6.27 |
| 43 | Requires: libxml2-python >= 2.6.27 |
| 44 | Requires: python |
| 45 | |
| 46 | %description python |
| 47 | The libxslt-python package contains a module that permits applications |
| 48 | written in the Python programming language to use the interface |
| 49 | supplied by the libxslt library to apply XSLT transformations. |
| 50 | |
| 51 | This library allows to parse sytlesheets, uses the libxml2-python |
| 52 | to load and save XML and HTML files. Direct access to XPath and |
| 53 | the XSLT transformation context are possible to extend the XSLT language |
| 54 | with XPath functions written in Python. |
| 55 | |
| 56 | %prep |
| 57 | %setup -q |
| 58 | |
| 59 | %build |
| 60 | %configure |
| 61 | make |
| 62 | gzip -9 ChangeLog |
| 63 | |
| 64 | %install |
| 65 | rm -fr %{buildroot} |
| 66 | |
| 67 | %makeinstall |
| 68 | |
| 69 | rm -fr $RPM_BUILD_ROOT%{_libdir}/*.la \ |
| 70 | $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxsltmod*a |
| 71 | |
| 72 | %clean |
| 73 | rm -fr %{buildroot} |
| 74 | |
| 75 | %post |
| 76 | /sbin/ldconfig |
| 77 | |
| 78 | %postun |
| 79 | /sbin/ldconfig |
| 80 | |
| 81 | %files |
| 82 | %defattr(-, root, root) |
| 83 | |
| 84 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES |
| 85 | %doc doc/*.html doc/html doc/tutorial doc/tutorial2 doc/*.gif |
| 86 | %doc doc/EXSLT |
| 87 | %doc %{_mandir}/man1/xsltproc.1* |
| 88 | %{_libdir}/lib*.so.* |
| 89 | %{_libdir}/libxslt-plugins |
| 90 | %{prefix}/bin/xsltproc |
| 91 | |
| 92 | %files devel |
| 93 | %defattr(-, root, root) |
| 94 | |
| 95 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES |
| 96 | %doc doc/libxslt-api.xml |
| 97 | %doc doc/libxslt-refs.xml |
| 98 | %doc doc/EXSLT/libexslt-api.xml |
| 99 | %doc doc/EXSLT/libexslt-refs.xml |
| 100 | %doc %{_mandir}/man3/libxslt.3* |
| 101 | %doc %{_mandir}/man3/libexslt.3* |
| 102 | %doc doc/*.html doc/html doc/*.gif doc/*.png |
| 103 | %doc doc/tutorial |
| 104 | %doc doc/tutorial2 |
| 105 | %doc doc/images |
| 106 | %doc doc/EXSLT |
| 107 | %{_libdir}/lib*.so |
| 108 | %{_libdir}/*a |
| 109 | %{_libdir}/*.sh |
| 110 | %{prefix}/share/aclocal/libxslt.m4 |
| 111 | %{prefix}/include/* |
| 112 | %{prefix}/bin/xslt-config |
| 113 | %{_libdir}/pkgconfig/libxslt.pc |
| 114 | %{_libdir}/pkgconfig/libexslt.pc |
| 115 | |
| 116 | %files python |
| 117 | %defattr(-, root, root) |
| 118 | |
| 119 | %doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES |
| 120 | %{_libdir}/python*/site-packages/libxslt.py* |
| 121 | %{_libdir}/python*/site-packages/libxsltmod* |
| 122 | %doc python/TODO |
| 123 | %doc python/libxsltclass.txt |
| 124 | %doc python/tests/*.py |
| 125 | %doc python/tests/*.xml |
| 126 | %doc python/tests/*.xsl |
| 127 | |
| 128 | %changelog |
dominicc | 01a4b741 | 2016-05-17 03:25:32 | [diff] [blame] | 129 | * Sat May 14 2016 Daniel Veillard <[email protected]> |
dominicc | 96dbafe | 2016-04-06 00:16:28 | [diff] [blame] | 130 | - upstream release 1.1.28 see http://xmlsoft.org/XSLT/news.html |