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 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 - 1.3-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild