cleanup spec
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
ff4ec0dda5
commit
73fb2d7a9d
112
libxslt.spec
112
libxslt.spec
@ -1,20 +1,23 @@
|
|||||||
Summary: Library providing the Gnome XSLT engine
|
Name: libxslt
|
||||||
Name: libxslt
|
Summary: Library providing the Gnome XSLT engine
|
||||||
Version: 1.1.30
|
Version: 1.1.30
|
||||||
Release: 5%{?dist}%{?extra_release}
|
Release: 5%{?dist}
|
||||||
License: MIT
|
|
||||||
Group: Development/Libraries
|
License: MIT
|
||||||
Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
|
URL: http://xmlsoft.org/XSLT
|
||||||
URL: http://xmlsoft.org/XSLT/
|
Source: ftp://xmlsoft.org/XSLT/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: libxml2-devel >= 2.6.27
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: autoconf
|
||||||
BuildRequires: python2-libxml2
|
BuildRequires: automake
|
||||||
BuildRequires: libgcrypt-devel
|
BuildRequires: libtool
|
||||||
BuildRequires: automake autoconf libtool
|
BuildRequires: make
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: %{_bindir}/libgcrypt-config
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.27
|
||||||
|
|
||||||
# Fedora specific patches
|
# Fedora specific patches
|
||||||
Patch0: multilib.patch
|
Patch0: multilib.patch
|
||||||
Patch1: libxslt-1.1.26-utf8-docs.patch
|
Patch1: libxslt-1.1.26-utf8-docs.patch
|
||||||
|
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1498539
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1498539
|
||||||
# https://git.gnome.org/browse/libxslt/commit/?id=76df4c960c7247d82bf1c26344e76236cb37a175
|
# https://git.gnome.org/browse/libxslt/commit/?id=76df4c960c7247d82bf1c26344e76236cb37a175
|
||||||
@ -27,26 +30,26 @@ 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: Development files for %{name}
|
Summary: Development libraries and header files for %{name}
|
||||||
Group: Development/Libraries
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: libxslt = %{version}-%{release}
|
Requires: libgcrypt-devel%{?_isa}
|
||||||
Requires: libgcrypt-devel
|
Requires: libgpgerror-devel%{?_isa}
|
||||||
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%package -n python2-libxslt
|
%package -n python2-libxslt
|
||||||
|
Summary: Python 2 bindings for %{name}
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python2-libxml2
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: python2-libxml2
|
||||||
%{?python_provide:%python_provide python2-libxslt}
|
%{?python_provide:%python_provide python2-libxslt}
|
||||||
# Remove before F30
|
# Remove before F30
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
Provides: %{name}-python = %{version}-%{release}
|
||||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
||||||
Obsoletes: %{name}-python < %{version}-%{release}
|
Obsoletes: %{name}-python < %{version}-%{release}
|
||||||
Summary: Python bindings for the libxslt library
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: libxslt = %{version}-%{release}
|
|
||||||
Requires: python2-libxml2
|
|
||||||
|
|
||||||
%description -n python2-libxslt
|
%description -n python2-libxslt
|
||||||
The libxslt-python package contains a module that permits applications
|
The libxslt-python package contains a module that permits applications
|
||||||
@ -59,46 +62,36 @@ the XSLT transformation context are possible to extend the XSLT language
|
|||||||
with XPath functions written in Python.
|
with XPath functions written in Python.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1 -b .utf8
|
|
||||||
%patch2 -p1 -b .xml_config
|
|
||||||
# Now fix up the timestamps of patched docs files
|
|
||||||
# ChangeLog needs to be retouched before gzip as well
|
|
||||||
# since timestamp affects output
|
|
||||||
touch -r ChangeLog.utf8 ChangeLog
|
|
||||||
touch -r NEWS.utf8 NEWS
|
|
||||||
|
|
||||||
chmod 644 python/tests/*
|
chmod 644 python/tests/*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
autoreconf -vfi
|
||||||
make %{?_smp_mflags}
|
%configure --disable-static --disable-silent-rules
|
||||||
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
%make_install
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
find %{buildroot} -name '*.la' -print -delete
|
||||||
|
|
||||||
# multiarch crazyness on timestamp differences
|
# multiarch crazyness on timestamp differences
|
||||||
touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxslt/xslt.h $RPM_BUILD_ROOT/%{_bindir}/xslt-config
|
touch -m --reference=%{buildroot}%{_includedir}/libxslt/xslt.h %{buildroot}%{_bindir}/xslt-config
|
||||||
|
rm -vrf %{buildroot}%{_docdir}
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}{,-python}-%{version}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make tests
|
%make_build tests
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root,-)
|
%license Copyright
|
||||||
%doc AUTHORS ChangeLog NEWS README Copyright FEATURES
|
%doc AUTHORS ChangeLog NEWS README FEATURES
|
||||||
%doc %{_mandir}/man1/xsltproc.1*
|
|
||||||
%{_libdir}/lib*.so.*
|
|
||||||
%{_libdir}/libxslt-plugins
|
|
||||||
%{_bindir}/xsltproc
|
%{_bindir}/xsltproc
|
||||||
|
%{_libdir}/libxslt.so.*
|
||||||
|
%{_libdir}/libexslt.so.*
|
||||||
|
%{_libdir}/libxslt-plugins/
|
||||||
|
%{_mandir}/man1/xsltproc.1*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root,-)
|
|
||||||
%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,18 +103,19 @@ make tests
|
|||||||
%doc doc/tutorial
|
%doc doc/tutorial
|
||||||
%doc doc/tutorial2
|
%doc doc/tutorial2
|
||||||
%doc doc/EXSLT
|
%doc doc/EXSLT
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/libxslt.so
|
||||||
%{_libdir}/*.sh
|
%{_libdir}/libexslt.so
|
||||||
|
%{_libdir}/xsltConf.sh
|
||||||
%{_datadir}/aclocal/libxslt.m4
|
%{_datadir}/aclocal/libxslt.m4
|
||||||
%{_includedir}/*
|
%{_includedir}/libxslt/
|
||||||
%{_bindir}/xslt-config
|
%{_includedir}/libexslt/
|
||||||
%{_libdir}/pkgconfig/libxslt.pc
|
%{_libdir}/pkgconfig/libxslt.pc
|
||||||
%{_libdir}/pkgconfig/libexslt.pc
|
%{_libdir}/pkgconfig/libexslt.pc
|
||||||
|
%{_bindir}/xslt-config
|
||||||
|
|
||||||
%files -n python2-libxslt
|
%files -n python2-libxslt
|
||||||
%defattr(-, root, root,-)
|
%{python2_sitearch}/libxslt.py*
|
||||||
%{python_sitearch}/libxslt.py*
|
%{python2_sitearch}/libxsltmod.so
|
||||||
%{python_sitearch}/libxsltmod*
|
|
||||||
%doc python/libxsltclass.txt
|
%doc python/libxsltclass.txt
|
||||||
%doc python/tests/*.py
|
%doc python/tests/*.py
|
||||||
%doc python/tests/*.xml
|
%doc python/tests/*.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user