File xzgv.spec of Package xzgv

#
# spec file for package xzgv (Version 0.8)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           xzgv
BuildRequires:  gcc-c++ gtk-devel imlib-devel libpng-devel libtiff-devel update-desktop-files xorg-x11
URL:            http://rus.members.beeb.net/xzgv.html
Version:        0.8
Release:        175
Group:          Productivity/Graphics/Viewers
License:        GNU General Public License (GPL)
Summary:        A Fast Picture Viewer for the X Window System
Source:         xzgv-0.8.tar.gz
Source1:        %name.desktop
Patch:          xzgv.diff
Patch1:         xzgv-mmx.diff
Patch2:         xzgv-secfix.diff
Patch3:         xzgv-fixgcc4.diff
Patch4:         xzgv-jpegdetect.diff
Patch5:         xzgv-cmyk-ycc-fix.diff
Patch6:         xzgv-build.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Xzgv is a picture viewer for the X Window System with a thumbnail-based
file selector. It uses GTK+ and Imlib. Most file formats are supported,
and the thumbnails used are compatible with xv, zgv, and the Gimp. It
can also be used with `xzgv file(s)', to effectively bypass the file
selector. For more on how xzgv works and how to use it, do `info xzgv'
or `man xzgv' once it is installed.



Authors:
--------
    Russell Marks <russell.marks@ntlworld.com>

%prep
%setup -q -n xzgv-0.8
%patch
%ifarch %ix86
%patch1
%endif
%patch2
%patch3
%patch4
%patch5
%patch6

%build
sed -e "s/^CFLAGS=.*/CFLAGS=$RPM_OPT_FLAGS/;" < config.mk > config.mk.tmp
mv config.mk.tmp config.mk
make

%install
rm -rf $RPM_BUILD_ROOT
make PREFIX=$RPM_BUILD_ROOT/usr install
%suse_update_desktop_file -i %name Graphics Viewer

%files
%defattr(-,root,root)
%doc README AUTHORS COPYING NEWS TODO
/usr/bin/xzgv
/usr/share/applications/xzgv.desktop
%doc %{_mandir}/man1/xzgv.1.gz
%doc %{_infodir}/xzgv.gz
%doc %{_infodir}/xzgv-1.gz
%doc %{_infodir}/xzgv-2.gz
%doc %{_infodir}/xzgv-3.gz

%changelog
* Fri Apr 20 2007 - aj@suse.de
- Cleanup build requirements.
- Use RPM_OPT_FLAGS everywhere.
* Tue Mar 28 2006 - jreuter@suse.de
- fix CVE-2006-1060: JPEG CMYK/YCCK heap overflow (#159699)
* Tue Feb 14 2006 - jreuter@suse.de
- fix broken JPEG detection introduced with fixes for gcc4 (#150534)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jul 01 2005 - jreuter@suse.de
- fix gcc4 warnings and missing includes of <string.h>
* Tue Nov 09 2004 - jreuter@suse.de
- fix integer multiplication overflows (#47677)
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Thu Sep 25 2003 - jreuter@suse.de
- update to version 0.8
* Fri Aug 15 2003 - adrian@suse.de
- add desktop file
* Thu May 15 2003 - coolo@suse.de
- use BuildRoot
* Wed Dec 04 2002 - ro@suse.de
- fix multiline string problem for gcc-3.3
* Tue Aug 20 2002 - ro@suse.de
- removed %%post
* Fri Jul 05 2002 - kukuk@suse.de
- Use %%ix86 macro
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Fri Nov 02 2001 - jreuter@suse.de
- upgraded to most recent version, works correctly on non-Intel
  platforms now
* Tue Nov 07 2000 - jreuter@suse.de
- Initial checkin
openSUSE Build Service is sponsored by