[avr-libc] fix FTBFS (#1105987)

Michal Hlavinka mhlavink at fedoraproject.org
Mon Jun 9 16:27:56 UTC 2014


commit 6812adcb8a9eaca2a180ab4245a3af753afba4f4
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Mon Jun 9 18:16:33 2014 +0200

    fix FTBFS (#1105987)

 avr-libc.spec |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/avr-libc.spec b/avr-libc.spec
index 9b1895d..978e003 100644
--- a/avr-libc.spec
+++ b/avr-libc.spec
@@ -7,7 +7,7 @@
 
 Name:           avr-libc
 Version:        1.8.0
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        C library for use with GCC on Atmel AVR microcontrollers
 Group:          Development/Tools
 License:        BSD
@@ -59,7 +59,6 @@ do
   cp $i include/avr/ -v
 done
 
-
 # Add html docs
 mkdir html
 cd html/
@@ -107,8 +106,11 @@ mkdir $RPM_BUILD_ROOT%{_docdir}/%{name}/html
 install -p -m 644 html/%{name}-user-manual*/* $RPM_BUILD_ROOT%{_docdir}/%{name}/html
 
 # despite us being noarch redhat-rpm-config insists on stripping our files
-%define __os_install_post /usr/lib/rpm/redhat/brp-compress
-
+%if %{fedora}0 > 200
+%global __os_install_post /usr/lib/rpm/brp-compress
+%else
+%global __os_install_post /usr/lib/rpm/redhat/brp-compress
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -137,6 +139,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc %{_docdir}/%{name}/%{name}*.pdf
 
 %changelog
+* Mon Jun 09 2014 Michal Hlavinka <mhlavink at redhat.com> - 1.8.0-9
+- fix FTBFS (#1105987)
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.8.0-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list