rpms/busybox/devel busybox.spec,1.55,1.56

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Feb 19 15:22:30 UTC 2007


Author: varekova

Update of /cvs/dist/rpms/busybox/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv1292

Modified Files:
	busybox.spec 
Log Message:
- incorporate package review feedback



Index: busybox.spec
===================================================================
RCS file: /cvs/dist/rpms/busybox/devel/busybox.spec,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- busybox.spec	2 Feb 2007 09:55:06 -0000	1.55
+++ busybox.spec	19 Feb 2007 15:22:28 -0000	1.56
@@ -1,7 +1,7 @@
 Summary: Statically linked binary providing simplified versions of system commands
 Name: busybox
 Version: 1.2.2
-Release: 5%{?dist}
+Release: 6%{?dist}
 Epoch: 1
 License: GPL
 Group: System Environment/Shells
@@ -17,7 +17,7 @@
 Patch10: busybox-1.2.2-ash.patch
 Patch11: busybox-1.2.2-iptunnel.patch
 URL: http://www.busybox.net
-BuildRoot: %{_tmppath}/%{name}-root
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  
 BuildRequires: libselinux-devel >= 1.27.7-2
 BuildRequires: libsepol-devel
 
@@ -56,19 +56,19 @@
 %patch11 -b .iptunnel -p1
 
 %build
+# create static busybox - the executable is kept as busybox-static
 make defconfig
 make CC="gcc $RPM_OPT_FLAGS"
 cp busybox busybox-static
 make clean
 
-# revert the patch
-find . -name "*.static" | while read n; do
-    mv $n $(echo $n | sed 's/\.static$//')
-done
-
+# create busybox optimized for anaconda 
+# revert the static patch
+patch -R -p1 <%{PATCH0}
+# applied anaconda patch
 patch -b --suffix .anaconda -p1 < %{PATCH1}
-#patch -b --suffix .gcc111 -p1 <%{PATCH8}
-make DOLFS=y defconfig
+
+make defconfig
 make CONFIG_DEBUG=y CC="gcc $RPM_OPT_FLAGS"
 
 %install
@@ -77,21 +77,27 @@
 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
 install -m 755 busybox-static $RPM_BUILD_ROOT/sbin/busybox
 install -m 755 busybox $RPM_BUILD_ROOT/sbin/busybox.anaconda
-install -m 644 docs/BusyBox.1 $RPM_BUILD_ROOT/%{_mandir}/man1/busybox.1
+install -p docs/BusyBox.1 $RPM_BUILD_ROOT/%{_mandir}/man1/busybox.1
+chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man1/busybox.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root)
+%doc LICENSE docs/BusyBox.html
+%defattr(-,root,root,-)
 /sbin/busybox
 %{_mandir}/man1/busybox*
 
 %files anaconda
-%defattr(-,root,root)
+%doc LICENSE docs/BusyBox.html
+%defattr(-,root,root,-)
 /sbin/busybox.anaconda
 
 %changelog
+* Mon Feb 19 2007 Ivana Varekova <varekova at redhat.com> - 1:1.2.2-6
+- incorporate package review feedback
+
 * Fri Feb  2 2007 Ivana Varekova <varekova at redhat.com> - 1:1.2.2-5
 - fix id_ps patch (thanks Chris MacGregor)
 




More information about the fedora-cvs-commits mailing list