From d0b01459cc60e75460661e7621c5d9fc0d1e65e6 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 21 Sep 2007 05:11:02 +0000 Subject: [PATCH] - add a libs subpackage (suggested by Dwayne Bailey, #294891) - move preloadable_libintl.so to the devel subpackage --- gettext.spec | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/gettext.spec b/gettext.spec index e25fcbe..9f717f7 100644 --- a/gettext.spec +++ b/gettext.spec @@ -4,7 +4,7 @@ Summary: GNU libraries and utilities for producing multi-lingual messages Name: gettext Version: 0.16.1 -Release: 11%{?dist} +Release: 12%{?dist} License: GPLv2+ and LGPLv2+ Group: Development/Tools Source: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz @@ -47,13 +47,13 @@ programs. %package devel Summary: Development files for %{name} Group: Development/Tools -License: LGPL +License: LGPLv2+ Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} Requires: cvs Requires(post): /sbin/install-info Requires(preun): /sbin/install-info - %description devel This package contains all development related files necessary for developing or compiling applications/libraries that needs @@ -61,6 +61,15 @@ internationalization capability. You also need this package if you want to add gettext support for your project. +%package libs +Summary: Libraries for %{name} +Group: System Environment/Libraries +License: LGPLv2+ + +%description libs +This package contains libraries used internationalization support. + + %prep %setup -q %patch1 -p1 -b .1-fails~ @@ -194,7 +203,6 @@ fi %exclude %{_bindir}/gettextize %{_libdir}/libgettextlib-%{version}.so %{_libdir}/libgettextsrc-%{version}.so -%{_libdir}/preloadable_libintl.so %{_infodir}/gettext* %{_mandir}/man1/* %exclude %{_mandir}/man1/gettextize.1.gz @@ -224,10 +232,11 @@ fi %{_datadir}/aclocal/* %{_includedir}/* %{_infodir}/autosprintf* -%{_libdir}/libasprintf.so* -%{_libdir}/libgettextpo.so* +%{_libdir}/libasprintf.so +%{_libdir}/libgettextpo.so %{_libdir}/libgettextlib.so %{_libdir}/libgettextsrc.so +%{_libdir}/preloadable_libintl.so %{_mandir}/man1/gettextize.1.gz %{_mandir}/man1/autopoint.1.gz %{_mandir}/man3/* @@ -236,7 +245,17 @@ fi %{_libdir}/%{name}/gnu.gettext.* +%files libs +%defattr(-,root,root,-) +%{_libdir}/libasprintf.so.* +%{_libdir}/libgettextpo.so.* + + %changelog +* Fri Sep 21 2007 Jens Petersen - 0.16.1-12 +- add a libs subpackage (suggested by Dwayne Bailey, #294891) +- move preloadable_libintl.so to the devel subpackage + * Fri Sep 14 2007 Nils Philippsen - 0.16.1-11 - remove gettext-xglade-include-expat-285701.patch, add gettext-xglade-define-xml-major-version-285701.patch to determine