packages: libcgroup/libcgroup.spec - use exec_prefix

glen glen at pld-linux.org
Wed Aug 26 09:37:19 CEST 2009


Author: glen                         Date: Wed Aug 26 07:37:19 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use exec_prefix

---- Files affected:
packages/libcgroup:
   libcgroup.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/libcgroup/libcgroup.spec
diff -u packages/libcgroup/libcgroup.spec:1.3 packages/libcgroup/libcgroup.spec:1.4
--- packages/libcgroup/libcgroup.spec:1.3	Wed Aug 26 09:27:08 2009
+++ packages/libcgroup/libcgroup.spec	Wed Aug 26 09:37:14 2009
@@ -1,4 +1,12 @@
 # $Revision$, $Date$
+# TODO
+# - pldize initscripts
+# warning: Installed (but unpackaged) file(s) found:
+#   /bin/cgcreate
+#   /bin/cgset
+#   /sbin/cgclear
+#   /usr/share/man/man1/cgcreate.1.gz
+#   /usr/share/man/man1/cgset.1.gz
 Summary:	Tools and libraries to control and monitor control groups
 Name:		libcgroup
 Version:	0.34
@@ -16,6 +24,9 @@
 Requires:	rc-scripts
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_exec_prefix	/
+%define		_libdir			%{_prefix}/%{_lib}
+
 %description
 Control groups infrastructure. The tools and library help manipulate,
 control, administrate and monitor control groups and the associated
@@ -35,11 +46,7 @@
 %setup -q
 
 %build
-%configure \
-	--bindir=/bin \
-	--sbindir=/sbin \
-	--libdir=/%{_lib} \
-
+%configure
 %{__make}
 
 %install
@@ -60,13 +67,12 @@
 
 # sanitize pam module, we need only pam_cgroup.so in the right directory
 install -d $RPM_BUILD_ROOT/%{_lib}/security
-mv -f $RPM_BUILD_ROOT/%{_lib}/pam_cgroup.so.*.*.* $RPM_BUILD_ROOT/%{_lib}/security/pam_cgroup.so
-rm -f $RPM_BUILD_ROOT/%{_lib}/pam_cgroup*
+mv -f $RPM_BUILD_ROOT%{_libdir}/pam_cgroup.so.*.*.* $RPM_BUILD_ROOT/%{_lib}/security/pam_cgroup.so
+rm -f $RPM_BUILD_ROOT%{_libdir}/pam_cgroup*
 
-# move the devel stuff to %{_prefix}
-install -d $RPM_BUILD_ROOT%{_libdir}
-mv -f $RPM_BUILD_ROOT/%{_lib}/libcgroup.la $RPM_BUILD_ROOT%{_libdir}
-rm -f $RPM_BUILD_ROOT/%{_lib}/libcgroup.so
+# move library to /%{_lib}
+install -d $RPM_BUILD_ROOT/%{_lib}
+mv $RPM_BUILD_ROOT%{_libdir}/libcgroup.so.* $RPM_BUILD_ROOT/%{_lib}
 ln -snf ../../%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libcgroup.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libcgroup.so
 
 %clean
@@ -123,6 +129,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2009/08/26 07:37:14  glen
+- use exec_prefix
+
 Revision 1.3  2009/08/26 07:27:08  glen
 - pldize
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libcgroup/libcgroup.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list