rpms/sdcc/devel sdcc.spec,1.19,1.20

konradm konradm at fedoraproject.org
Mon Dec 7 03:18:18 UTC 2009


Author: konradm

Update of /cvs/pkgs/rpms/sdcc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10836

Modified Files:
	sdcc.spec 
Log Message:
* Sun Dec 6 2009 Conrad Meyer <konrad at tylerc.org> - 2.9.0-6
- Work around rpmbuild failure by disabling brp-strip.



Index: sdcc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sdcc/devel/sdcc.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -p -r1.19 -r1.20
--- sdcc.spec	11 Sep 2009 14:17:35 -0000	1.19
+++ sdcc.spec	7 Dec 2009 03:18:18 -0000	1.20
@@ -1,6 +1,6 @@
 Name:           sdcc
 Version:        2.9.0
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Small Device C Compiler
 Group:          Applications/Engineering
 License:        GPLv2+
@@ -60,25 +60,9 @@ Emacs extensions for SDCC.
 %patch3 -p1
 find -name '*.[ch]' -exec chmod -x '{}' \;
 
-# Extract %%__os_install_post into os_install_post~
-cat << \EOF > os_install_post~
-%__os_install_post
-EOF
-
-# Generate customized brp-*scripts
-cat os_install_post~ | while read a x y; do
-case $a in
-# Prevent brp-strip* from trying to handle foreign binaries
-*/brp-strip*)
-  b=$(basename $a)
-  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
-  chmod a+x $b
-  ;;
-esac
-done
-
-sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
-< os_install_post~ > os_install_post 
+# Disable brp-strip for now because it errors trying to strip foreign
+# binaries.
+%global __os_install_post /usr/lib/rpm/redhat/brp-compress
 
 
 %build
@@ -112,6 +96,10 @@ chmod 755 %{name}-$(basename $x)
 done
 popd
 
+pushd $RPM_BUILD_ROOT%{_datadir}/%{name}/lib/src/pic16
+find . -type f -name '*.a' -exec chmod 664 '{}' \;
+popd
+
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -137,6 +125,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Dec 6 2009 Conrad Meyer <konrad at tylerc.org> - 2.9.0-6
+- Work around rpmbuild failure by disabling brp-strip.
+
 * Fri Sep 11 2009 Conrad Meyer <konrad at tylerc.org> - 2.9.0-5
 - Fix a bug with single-bit types, logical NOT, and casting to char
   (I'm fuzzy on the details) that was reported by a Fedora user with the




More information about the fedora-extras-commits mailing list