[msp430-libc] Adjust to latest redhat-rpm-config changes (fixes FTBFS)

Till Maas till at fedoraproject.org
Sat Jul 5 16:49:25 UTC 2014


commit 77fcb338a980c8a022c850be34a7f2690cba022a
Author: Yaakov Selkowitz <yselkowi at redhat.com>
Date:   Sat Jul 5 18:49:08 2014 +0200

    Adjust to latest redhat-rpm-config changes (fixes FTBFS)

 msp430-libc.spec |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/msp430-libc.spec b/msp430-libc.spec
index 6dc2f98..f22abf1 100644
--- a/msp430-libc.spec
+++ b/msp430-libc.spec
@@ -4,7 +4,7 @@
 
 Name:		msp430-libc
 Version:	20120224
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	C library for use with GCC on Texas Instruments MSP430 microcontrollers
 Group:		Development/Libraries
 License:	BSD
@@ -14,7 +14,6 @@ Source0:	msp430-libc-%{version}.tar.bz2
 Patch0:		msp430-libc-20120224-sf3522752.patch
 Patch1:		msp430-libc-destdir.patch
 
-BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRequires:	msp430-gcc >= 4.6.3
 BuildRequires:	msp430mcu >= 20120406
 
@@ -39,19 +38,13 @@ cd src
 CFLAGS="%{optflags}" make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
 cd src
 make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
 
 # despite us being noarch redhat-rpm-config insists on stripping our files
-%define __os_install_post /usr/lib/rpm/redhat/brp-compress
-
-%clean
-rm -rf %{buildroot}
+%define __os_install_post /usr/lib/rpm/brp-compress
 
 %files
-%defattr(-,root,root,-)
-
 %dir %{_prefix}/msp430/include
 %dir %{_prefix}/msp430/lib
 
@@ -59,6 +52,10 @@ rm -rf %{buildroot}
 %{_prefix}/msp430/lib/*
 
 %changelog
+* Thu Jun 19 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 20120224-5
+- FTBFS with latest redhat-rpm-config (#1106247)
+- Update spec to latest packaging guidelines
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20120224-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list