- Merge-review cleanup (#226088)
This commit is contained in:
parent
4d62c393b6
commit
ff7be9cb33
88
libxslt.spec
88
libxslt.spec
@ -1,19 +1,17 @@
|
|||||||
Summary: Library providing the Gnome XSLT engine
|
Summary: Library providing the Gnome XSLT engine
|
||||||
Name: libxslt
|
Name: libxslt
|
||||||
Version: 1.1.26
|
Version: 1.1.26
|
||||||
Release: 3%{?dist}%{?extra_release}
|
Release: 4%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
|
Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
URL: http://xmlsoft.org/XSLT/
|
URL: http://xmlsoft.org/XSLT/
|
||||||
Requires: libxml2 >= 2.6.27
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: libxml2-devel >= 2.6.27
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python python-devel
|
|
||||||
BuildRequires: libxml2-python
|
BuildRequires: libxml2-python
|
||||||
BuildRequires: libgcrypt-devel
|
BuildRequires: libgcrypt-devel
|
||||||
Prefix: %{_prefix}
|
|
||||||
Docdir: %{_docdir}
|
# Fedora specific patch
|
||||||
Patch0: multilib.patch
|
Patch0: multilib.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -23,25 +21,19 @@ mechanism. To use it you need to have a version of libxml2 >= 2.6.27
|
|||||||
installed. The xsltproc command is a command line interface to the XSLT engine
|
installed. The xsltproc command is a command line interface to the XSLT engine
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libxslt = %{version}-%{release}
|
Requires: libxslt = %{version}-%{release}
|
||||||
Requires: libxml2-devel >= 2.6.27
|
|
||||||
Requires: libgcrypt-devel
|
|
||||||
Requires: pkgconfig
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This C library allows to transform XML files into other XML files
|
The %{name}-devel package contains libraries and header files for
|
||||||
(or HTML, text, ...) using the standard XSLT stylesheet transformation
|
developing applications that use %{name}.
|
||||||
mechanism. To use it you need to have a version of libxml2 >= 2.6.27
|
|
||||||
installed.
|
|
||||||
|
|
||||||
%package python
|
%package python
|
||||||
Summary: Python bindings for the libxslt library
|
Summary: Python bindings for the libxslt library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libxslt = %{version}-%{release}
|
Requires: libxslt = %{version}-%{release}
|
||||||
Requires: libxml2 >= 2.6.27
|
Requires: libxml2-python
|
||||||
Requires: libxml2-python >= 2.6.27
|
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
The libxslt-python package contains a module that permits applications
|
The libxslt-python package contains a module that permits applications
|
||||||
@ -57,46 +49,44 @@ with XPath functions written in Python.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
|
# Convert to utf-8
|
||||||
|
for file in NEWS ChangeLog doc/tutorial2/libxslt_pipes.xml; do
|
||||||
|
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
|
||||||
|
touch -r $file $file.new && \
|
||||||
|
mv $file.new $file
|
||||||
|
done
|
||||||
|
|
||||||
|
chmod 644 python/tests/*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
gzip -9 ChangeLog
|
gzip -9 ChangeLog
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -fr %{buildroot}
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||||
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||||
%makeinstall
|
|
||||||
|
|
||||||
rm -fr $RPM_BUILD_ROOT%{_libdir}/*.la \
|
|
||||||
$RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxsltmod*a
|
|
||||||
|
|
||||||
# multiarch crazyness on timestamp differences
|
# multiarch crazyness on timestamp differences
|
||||||
touch -m --reference=$RPM_BUILD_ROOT/%{prefix}/include/libxslt/xslt.h $RPM_BUILD_ROOT/%{prefix}/bin/xslt-config
|
touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxslt/xslt.h $RPM_BUILD_ROOT/%{_bindir}/xslt-config
|
||||||
|
|
||||||
%clean
|
%check
|
||||||
rm -fr %{buildroot}
|
make tests
|
||||||
|
|
||||||
%post
|
%post -p /sbin/ldconfig
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%postun
|
%postun -p /sbin/ldconfig
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root,-)
|
||||||
|
%doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES
|
||||||
%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
|
|
||||||
%doc doc/*.html doc/html doc/tutorial doc/tutorial2 doc/*.gif
|
|
||||||
%doc doc/EXSLT
|
|
||||||
%doc %{_mandir}/man1/xsltproc.1*
|
%doc %{_mandir}/man1/xsltproc.1*
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
%{_libdir}/libxslt-plugins
|
%{_libdir}/libxslt-plugins
|
||||||
%{prefix}/bin/xsltproc
|
%{_bindir}/xsltproc
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root,-)
|
||||||
|
|
||||||
%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
|
|
||||||
%doc doc/libxslt-api.xml
|
%doc doc/libxslt-api.xml
|
||||||
%doc doc/libxslt-refs.xml
|
%doc doc/libxslt-refs.xml
|
||||||
%doc doc/EXSLT/libexslt-api.xml
|
%doc doc/EXSLT/libexslt-api.xml
|
||||||
@ -110,25 +100,25 @@ rm -fr %{buildroot}
|
|||||||
%doc doc/EXSLT
|
%doc doc/EXSLT
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
%{_libdir}/*.sh
|
%{_libdir}/*.sh
|
||||||
%{prefix}/share/aclocal/libxslt.m4
|
%{_datadir}/aclocal/libxslt.m4
|
||||||
%{prefix}/include/*
|
%{_includedir}/*
|
||||||
%{prefix}/bin/xslt-config
|
%{_bindir}/xslt-config
|
||||||
%{_libdir}/pkgconfig/libxslt.pc
|
%{_libdir}/pkgconfig/libxslt.pc
|
||||||
%{_libdir}/pkgconfig/libexslt.pc
|
%{_libdir}/pkgconfig/libexslt.pc
|
||||||
|
|
||||||
%files python
|
%files python
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root,-)
|
||||||
|
%{python_sitearch}/libxslt.py*
|
||||||
%doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES
|
%{python_sitearch}/libxsltmod*
|
||||||
%{_libdir}/python*/site-packages/libxslt.py*
|
|
||||||
%{_libdir}/python*/site-packages/libxsltmod*
|
|
||||||
%doc python/TODO
|
|
||||||
%doc python/libxsltclass.txt
|
%doc python/libxsltclass.txt
|
||||||
%doc python/tests/*.py
|
%doc python/tests/*.py
|
||||||
%doc python/tests/*.xml
|
%doc python/tests/*.xml
|
||||||
%doc python/tests/*.xsl
|
%doc python/tests/*.xsl
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 05 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.1.26-4
|
||||||
|
- Merge-review cleanup (#226088)
|
||||||
|
|
||||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.26-3
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.26-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user