Blame SPECS/xvattr.spec

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