packages: util-linux-ng/util-linux-ng.spec - replace libs, devel and static ...
baggins
baggins at pld-linux.org
Wed May 20 12:30:17 CEST 2009
Author: baggins Date: Wed May 20 10:30:17 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- replace libs,devel and static with libblkid{,-devel,-static}
- added libblkid-dietlibc package
---- Files affected:
packages/util-linux-ng:
util-linux-ng.spec (1.42 -> 1.43)
---- Diffs:
================================================================
Index: packages/util-linux-ng/util-linux-ng.spec
diff -u packages/util-linux-ng/util-linux-ng.spec:1.42 packages/util-linux-ng/util-linux-ng.spec:1.43
--- packages/util-linux-ng/util-linux-ng.spec:1.42 Tue May 19 17:54:21 2009
+++ packages/util-linux-ng/util-linux-ng.spec Wed May 20 12:30:12 2009
@@ -358,30 +358,41 @@
%description -n agetty -l pl.UTF-8
agetty jest prostym linuksowym getty z obsługą portu szeregowego.
-%package libs
-Summary: util-linux-ng libraries
+%package -n libblkid
+Summary: Library to handle device identification and token extraction
Group: Libraries
+Obsoletes: util-linux-ng-libs
-%description libs
-util-linux-ng libraries.
+%description -n libblkid
+Library to handle device identification and token extraction.
-%package devel
-Summary: util-linux-ng libraries and headers
+%package -n libblkid-devel
+Summary: Library to handle device identification and token extraction - development files.
Group: Development/Libraries
-Requires: %{name}-libs = %{version}-%{release}
+Requires: libblkid = %{version}-%{release}
+Obsoletes: util-linux-ng-devel
-%description devel
-This package contains the libraries and header files needed to
-develop programs using util-linux-ng libraries.
+%description -n libblkid-devel
+Library to handle device identification and token extraction
+ - development files.
-%package static
-Summary: util-linux-ng static libraries
+%package -n libblkid-static
+Summary: Static library to handle device identification and token extraction
Group: Development/Libraries
-Requires: %{name}-devel = %{version}-%{release}
+Requires: libblkid-devel = %{version}-%{release}
+Obsoletes: util-linux-ng-static
-%description static
-Static libraries needed to develop programs using util-linux-ng
-libraries.
+%description -n libblkid-static
+Static library to handle device identification and token extraction.
+
+%package -n libblkid-dietlibc
+Summary: Static dietlibc library to handle device identification and token extraction
+Group: Development/Libraries
+Requires: libblkid-devel = %{version}-%{release}
+
+%description -n libblkid-dietlibc
+libblkid - a library to handle device identification and token extraction
+ - static dietlibc version.
%package initrd
Summary: blkid - initrd version
@@ -431,6 +442,8 @@
%if %{with dietlibc}
CPPFLAGS="$CPPFLAGS -Dprogram_invocation_short_name=NULL" \
LDFLAGS="-lcompat"
+
+mv -f libs/blkid/src/.libs/libblkid.a diet-libblkid.a
%endif
cp libs/blkid/bin/blkid blkid.initrd
@@ -463,6 +476,7 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,sysconfig,security} \
$RPM_BUILD_ROOT{/%{_lib},/var/lock}
+%{?with_dietlibc:install -d $RPM_BUILD_ROOT%{dietlibdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -517,6 +531,8 @@
install findfs.initrd $RPM_BUILD_ROOT%{_libdir}/initrd/findfs
%endif
+%{?with_dietlibc:install diet-libblkid.a $RPM_BUILD_ROOT%{dietlibdir}/libblkid.a}
+
%find_lang %{name}
%clean
@@ -538,8 +554,8 @@
/sbin/chkconfig --del blockdev
fi
-%post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%post -n libblkid -p /sbin/ldconfig
+%postun -n libblkid -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(644,root,root,755)
@@ -1107,12 +1123,12 @@
%lang(es) %{_mandir}/es/man8/agetty.8*
%lang(ja) %{_mandir}/ja/man8/agetty.8*
-%files libs
+%files -n libblkid
%defattr(644,root,root,755)
%attr(755,root,root) /%{_lib}/libblkid.so.*.*
%attr(755,root,root) %ghost /%{_lib}/libblkid.so.1
-%files devel
+%files -n libblkid-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libblkid.so
%{_libdir}/libblkid.la
@@ -1120,10 +1136,16 @@
%{_pkgconfigdir}/blkid.pc
%{_mandir}/man3/libblkid.3*
-%files static
+%files -n libblkid-static
%defattr(644,root,root,755)
%{_libdir}/libblkid.a
+%if %{with dietlibc}
+%files -n libblkid-dietlibc
+%defattr(644,root,root,755)
+%{dietlibdir}/libblkid.a
+%endif
+
%if %{with initrd}
%files initrd
%defattr(644,root,root,755)
@@ -1137,6 +1159,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.43 2009/05/20 10:30:12 baggins
+- replace libs,devel and static with libblkid{,-devel,-static}
+- added libblkid-dietlibc package
+
Revision 1.42 2009/05/19 15:54:21 baggins
- rel 4
- moved libblkid to libs package
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/util-linux-ng/util-linux-ng.spec?r1=1.42&r2=1.43&f=u
More information about the pld-cvs-commit
mailing list