[xvattr] Move Source0 to fedorapeople since upstream went away

Adam Jackson ajax at fedoraproject.org
Thu Nov 15 17:37:09 UTC 2012


commit 231a417b85e1361ff6be265207f12db9c33bc9ef
Author: Adam Jackson <ajax at redhat.com>
Date:   Thu Nov 15 12:37:07 2012 -0500

    Move Source0 to fedorapeople since upstream went away
    
    - Don't built (gtk1-based) gxvattr in RHEL

 xvattr.spec |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/xvattr.spec b/xvattr.spec
index 3e7ac48..5f5a102 100644
--- a/xvattr.spec
+++ b/xvattr.spec
@@ -1,3 +1,9 @@
+%if 0%{?rhel}
+%global gxvattr 0
+%else
+%global gxvattr 1
+%endif
+
 Summary: Utility for getting and setting Xv attributes
 Name: xvattr
 Version: 1.3
@@ -7,7 +13,9 @@ Group: Applications/System
 URL: http://www.dtek.chalmers.se/groups/dvd/
 Source: http://ajax.fedorapeople.org/%{name}/%{name}-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+%if %{gxvattr}
 BuildRequires: gtk+-devel
+%endif
 BuildRequires: libXt-devel, libXv-devel
 
 %description
@@ -32,6 +40,10 @@ iconv -f iso8859-1 -t utf-8 -o tmp xvattr.1
 
 %build
 %configure
+%if ! %{gxvattr}
+sed -i 's|bin_PROGRAMS = xvattr gxvattr|bin_PROGRAMS = xvattr|g' Makefile
+sed -i 's|bin_PROGRAMS = xvattr$(EXEEXT) gxvattr$(EXEEXT)|bin_PROGRAMS = xvattr$(EXEEXT)|g' Makefile
+%endif
 %{__make} %{?_smp_mflags}
 
 
@@ -50,14 +62,17 @@ iconv -f iso8859-1 -t utf-8 -o tmp xvattr.1
 %{_bindir}/xvattr
 %{_mandir}/man1/*
 
+%if %{gxvattr}
 %files -n gxvattr
 %defattr(-,root,root,-)
 %doc COPYING
 %{_bindir}/gxvattr
+%endif
 
 %changelog
 * Thu Nov 15 2012 Adam Jackson <ajax at redhat.com> 1.3-22
 - Move Source0 to fedorapeople since upstream went away
+- Don't built (gtk1-based) gxvattr in RHEL
 
 * Sun Jul 22 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3-21
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild


More information about the scm-commits mailing list