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