[packages/libnsfb] pass our CC, fix bad copy paste
glen
glen at pld-linux.org
Sat Apr 27 16:46:45 CEST 2013
commit 44f1a65680423f63b2c30086ce16347ff263e67a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Apr 27 17:46:28 2013 +0300
pass our CC, fix bad copy paste
libnsfb.spec | 30 ++++++++++++++----------------
1 file changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/libnsfb.spec b/libnsfb.spec
index fe27855..17debe3 100644
--- a/libnsfb.spec
+++ b/libnsfb.spec
@@ -1,7 +1,7 @@
#
# Conditional build:
%bcond_without static_libs # don't build static library
-#
+
Summary: Framebuffer abstraction library
Name: libnsfb
Version: 0.1.0
@@ -69,33 +69,31 @@ Statyczna biblioteka libnsfb.
%patch0 -p1
%build
-CFLAGS="%{rpmcflags}"
-LDFLAGS="%{rpmldflags}"
-export CFLAGS
-export LDFLAGS
+export CC="%{__cc}"
+export CFLAGS="%{rpmcflags}"
+export LDFLAGS="%{rpmldflags}"
-%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q='' \
- -Iinclude -Isrc"
+%{__make} Q= \
+ PREFIX=%{_prefix} \
+ COMPONENT_TYPE=lib-shared
%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/libnsfb.git/commitdiff/44f1a65680423f63b2c30086ce16347ff263e67a
More information about the pld-cvs-commit
mailing list