[Libvirt-cim] [PATCH] More rpm changes, per Fedora package review process

Dan Smith danms at us.ibm.com
Tue Nov 20 14:36:29 UTC 2007


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1195572986 28800
# Node ID 820db60ea59d76e6fc2080ba3f2851415191fc76
# Parent  f2c751be5069df9eb23a8bdbaafd5d55b3fd24e9
More rpm changes, per Fedora package review process

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r f2c751be5069 -r 820db60ea59d libcmpiutil.spec.in
--- a/libcmpiutil.spec.in	Mon Nov 19 12:57:42 2007 -0800
+++ b/libcmpiutil.spec.in	Tue Nov 20 07:36:26 2007 -0800
@@ -4,7 +4,7 @@ Name: libcmpiutil
 Name: libcmpiutil
 Version: @PACKAGE_VERSION@
 Release: 1%{?dist}%{?extra_release}
-License: LGPL
+License: LGPLv2+
 Group: Development/Libraries
 Source: libcmpiutil-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -26,6 +26,7 @@ Group: Development/Libraries
 Group: Development/Libraries
 Requires: tog-pegasus-devel
 Requires: pkgconfig
+Requires: %{name} = %{version}-%{release}
 
 %description devel
 Includes and documentations for the CMPI utility library
@@ -36,42 +37,41 @@ instance properties to standardizing met
 
 %prep
 %setup -q
+chmod -x *.c *.y *.h *.l
 
 %build
 %configure
-make
+make %{?_smp_mflags}
 
 %install
-rm -fr %{buildroot}
+rm -fr $RPM_BUILD_ROOT
 
-%makeinstall
+make DESTDIR=$RPM_BUILD_ROOT install
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 
 %clean
-rm -fr %{buildroot}
+rm -fr $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
+%post -p /sbin/ldconfig
 
-%postun
-/sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %files 
 %defattr(-, root, root)
 
-%doc doc/doxygen.conf doc/mainpage doc/SubmittingPatches README
+%doc doc/doxygen.conf doc/mainpage README
 %{_libdir}/lib*.so.*
 
 %files devel
 %defattr(-, root, root)
 
 %{_libdir}/lib*.so
-%dir %{_includedir}/
+%dir %{_includedir}/libcmpiutil
 %{_includedir}/libcmpiutil/*.h
 %{_libdir}/pkgconfig/libcmpiutil.pc
 
-%doc doc/doxygen.conf doc/mainpage doc/SubmittingPatches README
+%doc doc/SubmittingPatches
 
 %changelog
 * Fri Oct 26 2007 Daniel Veillard <veillard at redhat.com> - 0.1-1




More information about the Libvirt-cim mailing list