SPECS: home-etc.spec - release 2 - added lib subpackage - install ...

baggins baggins at pld-linux.org
Sun Jun 19 16:18:54 CEST 2005


Author: baggins                      Date: Sun Jun 19 14:18:54 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- release 2
- added lib subpackage
- install shared lib in /lib
- STBR

---- Files affected:
SPECS:
   home-etc.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/home-etc.spec
diff -u SPECS/home-etc.spec:1.21 SPECS/home-etc.spec:1.22
--- SPECS/home-etc.spec:1.21	Wed Apr  7 16:09:23 2004
+++ SPECS/home-etc.spec	Sun Jun 19 16:18:49 2005
@@ -1,9 +1,9 @@
 # $Revision$, $Date$
-Summary:	HOME-ETC support programs and libraries
-Summary(pl):	Biblioteki i programy zapewniające wsparcie dla HOME-ETC
+Summary:	HOME-ETC support programs and scripts
+Summary(pl):	Skrypty i programy zapewniające wsparcie dla HOME-ETC
 Name:		home-etc
 Version:	1.0.9
-Release:	1
+Release:	2
 Epoch:		1
 License:	LGPL
 Group:		Base
@@ -14,8 +14,12 @@
 BuildRequires:	libtool
 Requires:	coreutils
 Requires:	shadow
+Requires:	%{name}-lib = %{epoch}:%{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_libdir		/%{_lib}
+%define		_libexecdir	/usr/%{_lib}
+
 %description
 HOME-ETC is an idea to keep configuration files in a subdirectory
 specified by user, instead of its home directory. This package
@@ -27,6 +31,23 @@
 w jego katalogu domowym. Pakiet ten zapewnia wsparcie dla tego
 mechanizmu.
 
+%package lib
+Summary:	HOME-ETC Library
+Summary(pl):	Biblioteka mechanizmu HOME-ETC
+License:	LGPL
+Group:		Development/Libraries
+
+%description lib
+HOME-ETC is an idea to keep configuration files in a subdirectory
+specified by user, instead of its home directory. This package
+contains shared HOME-ETC library.
+
+%description lib -l pl
+HOME-ETC jest pomysłem, aby przechowywać pliki konfiguracyjne
+w podkatalogu wskazanym przez użytkownika, zamiast bezpośrednio
+w jego katalogu domowym. Pakiet ten zawiera bibliotekę dzieloną
+HOME-ETC.
+
 %package devel
 Summary:	Header files for HOME-ETC
 Summary(pl):	Pliki nagłówkowe dla mechanizmu HOME-ETC
@@ -95,35 +116,47 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libexecdir}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
+ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libhome_etc.so.*.*.*) \
+        $RPM_BUILD_ROOT%{_libexecdir}/libhome_etc.so
+%{__sed} "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
+        $RPM_BUILD_ROOT%{_libdir}/libhome_etc.la > $RPM_BUILD_ROOT%{_libexecdir}/libhome_etc.la 
+
+mv $RPM_BUILD_ROOT%{_libdir}/libhome_etc.a $RPM_BUILD_ROOT%{_libexecdir}/
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post lib   -p /sbin/ldconfig
+%postun lib -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS CONTRIBUTORS README doc/HOME-ETC.pl.txt
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
 %attr(755,root,root) /etc/profile.d/home-etc.*sh
 /etc/skel/.home_etc
 
+%files lib
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+
 %files devel
 %defattr(644,root,root,755)
 %doc doc/DEVEL-NOTES FILES TODO
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libexecdir}/lib*.so
+%{_libexecdir}/lib*.la
 %{_includedir}/*.h
 %{_mandir}/man3/*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libexecdir}/lib*.a
 
 %files examples
 %defattr(644,root,root,755)
@@ -135,6 +168,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2005/06/19 14:18:49  baggins
+- release 2
+- added lib subpackage
+- install shared lib in /lib
+- STBR
+
 Revision 1.21  2004/04/07 14:09:23  siefca
 - new release (autogenerated from publish target)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/home-etc.spec?r1=1.21&r2=1.22&f=u




More information about the pld-cvs-commit mailing list