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