[packages/libnsgif] do not reset CFLAGS, internal include paths are lost that way; verbose files

glen glen at pld-linux.org
Sat Apr 27 14:38:20 CEST 2013


commit 1a8afbbdbb4036008171ca07e5bb15ae1f6546c0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Apr 27 15:37:48 2013 +0300

    do not reset CFLAGS, internal include paths are lost that way; verbose files

 libnsgif.spec | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/libnsgif.spec b/libnsgif.spec
index bae4e77..2908e61 100644
--- a/libnsgif.spec
+++ b/libnsgif.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	static_libs	# don't build static library
-#
+
 Summary:	Decoding library for the GIF format
 Name:		libnsgif
 Version:	0.1.0
@@ -49,26 +49,26 @@ Statyczna biblioteka libnsgif.
 %setup -q
 
 %build
-%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q='' \
-	CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}"
+CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
+%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q=''
+
 %if %{with static_libs}
-%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q='' \
-	CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}"
+CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
+%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q=''
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
 	PREFIX=%{_prefix} \
-	COMPONENT_TYPE=lib-shared
+	COMPONENT_TYPE=lib-shared \
+	DESTDIR=$RPM_BUILD_ROOT
 
 %if %{with static_libs}
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
 	PREFIX=%{_prefix} \
-	COMPONENT_TYPE=lib-static
+	COMPONENT_TYPE=lib-static \
+	DESTDIR=$RPM_BUILD_ROOT
 %endif
 
 %clean
@@ -79,16 +79,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_libdir}/libnsgif.so.*.*.*
+%ghost %{_libdir}/libnsgif.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_includedir}/*.h
-%{_pkgconfigdir}/*pc
+%{_libdir}/libnsgif.so
+%{_includedir}/libnsgif.h
+%{_pkgconfigdir}/libnsgif.pc
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libnsgif.a
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libnsgif.git/commitdiff/1a8afbbdbb4036008171ca07e5bb15ae1f6546c0



More information about the pld-cvs-commit mailing list