Blame SPECS/xvattr.spec

eaf8ac
%if 0%{?rhel}
eaf8ac
%global gxvattr 0
eaf8ac
%else
eaf8ac
%global gxvattr 1
eaf8ac
%endif
eaf8ac
eaf8ac
Summary: Utility for getting and setting Xv attributes
eaf8ac
Name: xvattr
eaf8ac
Version: 1.3
eaf8ac
Release: 27%{?dist}
eaf8ac
License: GPLv2+
eaf8ac
Group: Applications/System
eaf8ac
URL: http://www.dtek.chalmers.se/groups/dvd/
eaf8ac
Source: http://ajax.fedorapeople.org/%{name}/%{name}-%{version}.tar.gz
eaf8ac
Patch0: encoding.patch
eaf8ac
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
eaf8ac
%if %{gxvattr}
eaf8ac
BuildRequires: gtk+-devel
eaf8ac
%endif
eaf8ac
BuildRequires: perl-podlators
eaf8ac
BuildRequires: libXt-devel, libXv-devel
eaf8ac
eaf8ac
%description
eaf8ac
This program is used for getting and setting Xv attributes such as
eaf8ac
XV_BRIGHTNESS, XV_CONTRAST, XV_SATURATION, XV_HUE, XV_COLORKEY, ...
eaf8ac
eaf8ac
%package -n gxvattr
eaf8ac
Summary: GTK1-based GUI for Xv attributes
eaf8ac
Group: User Interface/X
eaf8ac
eaf8ac
%description -n gxvattr
eaf8ac
GTK1-based GUI for inspecting and setting Xv attributes.
eaf8ac
eaf8ac
%prep
eaf8ac
%setup -q
eaf8ac
# Append GTK CFLAGS to CFLAGS instead of overwriting CFLAGS (optflags get used)
eaf8ac
%{__perl} -pi -e 's|^CFLAGS = (.*)|CFLAGS += $1|g' Makefile*
eaf8ac
# Convert man page to UTF-8
eaf8ac
%patch0
eaf8ac
iconv -f iso8859-1 -t utf-8 -o tmp xvattr.pod.in
eaf8ac
%{__mv} -f tmp xvattr.pod.in
eaf8ac
rm xvattr.pod xvattr.1 xvattr.html
eaf8ac
eaf8ac
eaf8ac
%build
eaf8ac
%configure
eaf8ac
%if ! %{gxvattr}
eaf8ac
sed -i 's|bin_PROGRAMS = xvattr gxvattr|bin_PROGRAMS = xvattr|g' Makefile
eaf8ac
sed -i 's|bin_PROGRAMS = xvattr$(EXEEXT) gxvattr$(EXEEXT)|bin_PROGRAMS = xvattr$(EXEEXT)|g' Makefile
eaf8ac
%endif
eaf8ac
%{__make} %{?_smp_mflags}
eaf8ac
eaf8ac
eaf8ac
%install
eaf8ac
%{__rm} -rf %{buildroot}
eaf8ac
%{__make} install DESTDIR=%{buildroot}
eaf8ac
eaf8ac
eaf8ac
%clean
eaf8ac
%{__rm} -rf %{buildroot}
eaf8ac
eaf8ac
eaf8ac
%files
eaf8ac
%defattr(-,root,root,-)
eaf8ac
%doc AUTHORS COPYING ChangeLog NEWS README
eaf8ac
%{_bindir}/xvattr
eaf8ac
%{_mandir}/man1/*
eaf8ac
eaf8ac
%if %{gxvattr}
eaf8ac
%files -n gxvattr
eaf8ac
%defattr(-,root,root,-)
eaf8ac
%doc COPYING
eaf8ac
%{_bindir}/gxvattr
eaf8ac
%endif
eaf8ac
eaf8ac
%changelog
eaf8ac
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.3-27
eaf8ac
- Mass rebuild 2014-01-24
eaf8ac
eaf8ac
* Mon Aug 19 2013 Mat Booth <fedora@matbooth.co.uk> - 1.3-26
eaf8ac
- Fix pod encoding, rhbz #993161
eaf8ac
eaf8ac
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-25
eaf8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
eaf8ac
eaf8ac
* Tue Mar 26 2013 Adam Jackson <ajax@redhat.com> 1.3-24
eaf8ac
- BuildRequires: perl-podlators for pod2man
eaf8ac
eaf8ac
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-23
eaf8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
eaf8ac
eaf8ac
* Thu Nov 15 2012 Adam Jackson <ajax@redhat.com> 1.3-22
eaf8ac
- Move Source0 to fedorapeople since upstream went away
eaf8ac
- Don't built (gtk1-based) gxvattr in RHEL
eaf8ac
eaf8ac
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-21
eaf8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eaf8ac
eaf8ac
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-20
eaf8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
eaf8ac
eaf8ac
* Mon Apr 18 2011 Adam Jackson <ajax@redhat.com> 1.3-19
eaf8ac
- Split the GTK1 (!) version to a subpackage
eaf8ac
eaf8ac
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-18
eaf8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
eaf8ac
eaf8ac
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-17
eaf8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
eaf8ac
eaf8ac
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-16
eaf8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
eaf8ac
eaf8ac
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3-15
eaf8ac
- Autorebuild for GCC 4.3
eaf8ac
eaf8ac
* Thu Aug 23 2007 Matthias Saou <http://freshrpms.net/> 1.3-14
eaf8ac
- Rebuild for new BuildID feature.
eaf8ac
- Remove dist tag, since the package will seldom change.
eaf8ac
eaf8ac
* Fri Aug  3 2007 Matthias Saou <http://freshrpms.net/> 1.3-13
eaf8ac
- Update License field.
eaf8ac
eaf8ac
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 1.3-12
eaf8ac
- Switch to using DESTDIR install method.
eaf8ac
- Convert man page to UTF-8... not?
eaf8ac
eaf8ac
* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 1.3-11
eaf8ac
- FC6 rebuild.
eaf8ac
eaf8ac
* Tue May 23 2006 Matthias Saou <http://freshrpms.net/> 1.3-10
eaf8ac
- Fix CFLAGS so that our optflags get used too (Ville, #192611).
eaf8ac
eaf8ac
* Mon Mar  6 2006 Matthias Saou <http://freshrpms.net/> 1.3-9
eaf8ac
- FC5 rebuild.
eaf8ac
eaf8ac
* Thu Feb  9 2006 Matthias Saou <http://freshrpms.net/> 1.3-8
eaf8ac
- Rebuild for new gcc/glibc and modular X.
eaf8ac
eaf8ac
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.3-7
eaf8ac
- rebuild on all arches
eaf8ac
eaf8ac
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
eaf8ac
- rebuilt
eaf8ac
eaf8ac
* Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 1.3-5
eaf8ac
- Bump release to provide Extras upgrade path.
eaf8ac
eaf8ac
* Wed Mar 24 2004 Matthias Saou <http://freshrpms.net/> 1.3-4
eaf8ac
- Remove explicit XFree86 dependency for the binary package.
eaf8ac
eaf8ac
* Fri Nov  7 2003 Matthias Saou <http://freshrpms.net/> 1.3-3
eaf8ac
- Rebuild for Fedora Core 1.
eaf8ac
eaf8ac
* Mon Mar 31 2003 Matthias Saou <http://freshrpms.net/>
eaf8ac
- Rebuilt for Red Hat Linux 9.
eaf8ac
eaf8ac
* Fri Oct 4 2002 Matthias Saou <http://freshrpms.net/>
eaf8ac
- Initial rpm release.
eaf8ac