SPECS: libacpi.spec - more fixes in Makefile patch - use optflags, ...

qboosh qboosh at pld-linux.org
Sun Jun 24 15:11:49 CEST 2007


Author: qboosh                       Date: Sun Jun 24 13:11:49 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more fixes in Makefile patch
- use optflags, install in proper libdir
- EA: x86*, ia64

---- Files affected:
SPECS:
   libacpi.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/libacpi.spec
diff -u SPECS/libacpi.spec:1.3 SPECS/libacpi.spec:1.4
--- SPECS/libacpi.spec:1.3	Sun Jun 24 14:58:50 2007
+++ SPECS/libacpi.spec	Sun Jun 24 15:11:44 2007
@@ -1,5 +1,4 @@
 # $Revision$, $Date$
-# TODO: optflags
 Summary:	A library for programs gathering ACPI data 
 Summary(pl.UTF-8):	Biblioteka dla programów pobierających dane ACPI
 Name:		libacpi
@@ -11,6 +10,7 @@
 # Source0-md5:	49ecbeae66c3dc2588cd08328c6b759a
 Patch0:		%{name}-Makefile.patch
 URL:		http://www.ngolde.de/libacpi.html
+ExclusiveArch:	%{ix86} %{x8664} ia64
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,16 +48,17 @@
 %patch0 -p1
 
 %build
-%{__make}
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} -fPIC -Wall"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags}" \
 	DESTDIR=$RPM_BUILD_ROOT \
-	PREFIX="%{_prefix}"
+	PREFIX="%{_prefix}" \
+	LIBDIR="%{_libdir}"
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -69,16 +70,17 @@
 %defattr(644,root,root,755)
 %doc AUTHORS CHANGES README doc/html/*
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.0
+%attr(755,root,root) %{_libdir}/libacpi.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_includedir}/%{name}.h
+%attr(755,root,root) %{_libdir}/libacpi.so
+%{_includedir}/libacpi.h
+%{_mandir}/man3/libacpi.3*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libacpi.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -86,6 +88,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2007/06/24 13:11:44  qboosh
+- more fixes in Makefile patch
+- use optflags, install in proper libdir
+- EA: x86*, ia64
+
 Revision 1.3  2007/06/24 12:58:50  qboosh
 - shared lib in base, .so symlink in -devel
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libacpi.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list