[packages/dracut] - use optflags - build docs in build stage instead of install

qboosh qboosh at pld-linux.org
Thu Aug 30 19:38:00 CEST 2012


commit 7f928c746f062c245211d4a53223ae6e133e84a1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Aug 30 19:38:10 2012 +0200

    - use optflags
    - build docs in build stage instead of install

 dracut.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/dracut.spec b/dracut.spec
index f1a6151..a67fbc8 100644
--- a/dracut.spec
+++ b/dracut.spec
@@ -182,14 +182,17 @@ konfiguracji maszyn.
 find modules.d -name '*.orig' | xargs -r %{__rm}
 
 %build
-%{__make}
+%{__make} all doc \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/boot/dracut,/etc/logrotate.d,/sbin} \
 	$RPM_BUILD_ROOT/var/{log,lib/{dracut/overlay,initramfs}}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT \
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
 	libdir=%{_prefix}/lib \
 	bindir=%{_bindir} \
 	systemdsystemunitdir=%{systemdunitdir} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dracut.git/commitdiff/7f928c746f062c245211d4a53223ae6e133e84a1



More information about the pld-cvs-commit mailing list