Accepting request 109924 from devel:libraries:c_c++

- Make sure to follow shlib policy; put tools in a separate package
  like done in libxml2

OBS-URL: https://build.opensuse.org/request/show/109924
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libxslt?expand=0&rev=37
This commit is contained in:
Stephan Kulow 2012-03-22 12:36:44 +00:00 committed by Git OBS Bridge
commit c3db5640aa
3 changed files with 25 additions and 12 deletions

View File

@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libxslt-python
BuildRequires: libgcrypt-devel
BuildRequires: libgpg-error-devel

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Mar 17 17:38:20 UTC 2012 - jengelh@medozas.de
- Make sure to follow shlib policy; put tools in a separate package
like done in libxml2
-------------------------------------------------------------------
Wed Jan 4 18:44:16 UTC 2012 - jengelh@medozas.de

View File

@ -14,8 +14,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libxslt
Version: 1.1.26
Release: 0
@ -53,16 +51,10 @@ to be a relatively fast processor. It also includes full support for
the EXSLT set of extension functions as well as some common extensions
present in other XSLT engines.
The package comes with xsltproc, a command line interface to the XSLT
engine.
%package -n libxslt1
Summary: XSL Transformation Library
License: LGPL-2.1+
Group: System/Libraries
Provides: libxslt = %{version}-%{release}
Obsoletes: libxslt <= %{version}-%{release}
Provides: xsltproc = %{version}-%{release}
%description -n libxslt1
This C library allows you to transform XML files into other XML files
@ -92,12 +84,25 @@ Requires: %{name}1 = %{version}
Requires: libgcrypt-devel
Requires: libgpg-error-devel
Requires: glibc-devel
Requires: %name-tools = %version
#libxml is automatically required with pkgconfig
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package tools
Summary: Extended Stylesheet Language (XSL) Transformation utilities
License: MIT and GPL-2.0+
Group: Development/Tools
Provides: xsltproc = %version-%release
# O/P added during 12.2 dev:
Provides: libxslt = %version-%release
Obsoletes: libxslt <= %version-%release
%description tools
This package contains xsltproc, a command line interface to the XSLT engine.
%prep
%setup -q
%patch0
@ -131,10 +136,7 @@ find %{buildroot} -type f -name "*.la" -print -delete
%files -n %{name}1
%defattr(-, root, root)
%doc AUTHORS NEWS README COPYING* Copyright TODO FEATURES
%{_libdir}/lib*.so.*
%{_bindir}/xsltproc
%doc %{_mandir}/man1/xsltproc.*
%files devel
%defattr(-, root, root)
@ -149,4 +151,10 @@ find %{buildroot} -type f -name "*.la" -print -delete
# not available doc/*.png
%doc doc/*.html doc/html doc/tutorial doc/*.gif
%files tools
%defattr(-,root,root)
%doc AUTHORS NEWS README COPYING* Copyright TODO FEATURES
%{_bindir}/xsltproc
%doc %{_mandir}/man1/xsltproc.*
%changelog