[packages/libsvgtiny] pass our CC, fix bad make commandline

glen glen at pld-linux.org
Sat Apr 27 16:52:54 CEST 2013


commit 85695d633c30c4fc205d6038b08359e6ed48a242
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Apr 27 17:52:43 2013 +0300

    pass our CC, fix bad make commandline

 libsvgtiny.spec | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/libsvgtiny.spec b/libsvgtiny.spec
index 1ab6135..7e28f2b 100644
--- a/libsvgtiny.spec
+++ b/libsvgtiny.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	static_libs	# don't build static library
-#
+
 Summary:	Implementation of SVG Tiny
 Name:		libsvgtiny
 Version:	0.1.0
@@ -55,33 +55,32 @@ Statyczna biblioteka libsvgtiny.
 %setup -q
 
 %build
-CFLAGS="%{rpmcflags}"
-LDFLAGS="%{rpmldflags}"
-export CFLAGS
-export LDFLAGS
+export CC="%{__cc}"
+export CFLAGS="%{rpmcflags}"
+export LDFLAGS="%{rpmldflags}"
+
+%{__make} Q= \
+	PREFIX=%{_prefix} \
+	COMPONENT_TYPE=lib-shared
 
-%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q='' \
-	-Iinclude -Isrc"
 %if %{with static_libs}
-%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q='' \
-	-Iinclude -Isrc"
+%{__make} Q= \
+	PREFIX=%{_prefix} \
+	COMPONENT_TYPE=lib-static
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
+%{__make} install Q= \
 	PREFIX=%{_prefix} \
 	COMPONENT_TYPE=lib-shared \
-	Q=''
+	DESTDIR=$RPM_BUILD_ROOT
 
 %if %{with static_libs}
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
+%{__make} install Q= \
 	PREFIX=%{_prefix} \
 	COMPONENT_TYPE=lib-static \
-	Q=''
+	DESTDIR=$RPM_BUILD_ROOT
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsvgtiny.git/commitdiff/85695d633c30c4fc205d6038b08359e6ed48a242



More information about the pld-cvs-commit mailing list