SPECS: libnova.spec - separate -static subpackage - .la moved to -devel sub...

paszczus paszczus at pld-linux.org
Sat Jul 26 13:35:53 CEST 2008


Author: paszczus                     Date: Sat Jul 26 11:35:53 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separate -static subpackage
- .la moved to -devel subpackage
- proper use of CFLAGS

---- Files affected:
SPECS:
   libnova.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/libnova.spec
diff -u SPECS/libnova.spec:1.1 SPECS/libnova.spec:1.2
--- SPECS/libnova.spec:1.1	Sat Jul 26 12:50:47 2008
+++ SPECS/libnova.spec	Sat Jul 26 13:35:48 2008
@@ -22,21 +22,28 @@
 %description devel
 Libraries and includes files for developing programs based on libnova.
 
+%package static
+Summary:	Static libnova library
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libnova library.
+
 %prep
 %setup -q
 
 %build
 %configure
-%{__make} CFLAGS="%{optflags}"
+%{__make} \
+       CFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-# get rid of *.la files
-rm -f $RPM_BUILD_ROOT%{_libdir}/libnova.la
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -52,9 +59,12 @@
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/libnova
-%{_libdir}/libnova.a
+%{_libdir}/libnova.la
 %{_libdir}/libnova.so
 
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libnova.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -62,6 +72,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2008/07/26 11:35:48  paszczus
+- separate -static subpackage
+- .la moved to -devel subpackage
+- proper use of CFLAGS
+
 Revision 1.1  2008/07/26 10:50:47  paszczus
 - initial spec
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libnova.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list