]> git.pld-linux.org Git - packages/libacpi.git/commitdiff
- more fixes in Makefile patch
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 24 Jun 2007 13:11:44 +0000 (13:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use optflags, install in proper libdir
- EA: x86*, ia64

Changed files:
    libacpi.spec -> 1.4

libacpi.spec

index c956e4a7121e800fac8e45b5f396e0c84565be2f..0ac881812415c44a8f49093090c4d59083f3e814 100644 (file)
@@ -1,4 +1,3 @@
-# TODO: optflags
 Summary:       A library for programs gathering ACPI data 
 Summary(pl.UTF-8):     Biblioteka dla programów pobierających dane ACPI
 Name:          libacpi
@@ -10,6 +9,7 @@ Source0:       http://www.ngolde.de/download/%{name}-%{version}.tar.gz
 # 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
@@ -47,16 +47,17 @@ Statyczna biblioteka libacpi.
 %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
@@ -68,13 +69,14 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.107973 seconds and 4 git commands to generate.