File gtktalog.spec of Package gtktalog

#
# spec file for package gtktalog (Version 1.0.4)
#
# Copyright (c) 2008 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:           gtktalog
BuildRequires:  deb docbook-toys eject fdupes gcc-c++ giflib-devel gnutls-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libtiff-devel libwnck-devel libxslt update-desktop-files xmlcharent
%define prefix   /usr
%define sysconfdir /etc
License:        GPL v2 or later
Group:          Productivity/File utilities
AutoReqProv:    on
Version:        1.0.4
Release:        215
Summary:        The GNOME Disk Catalog
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.hu.po.bz2
Patch:          %{name}-%{version}-config.patch
Patch1:         %{name}-%{version}-gnome2.patch
Patch2:         gtktalog-1.0.4-gcc43.patch
Url:            http://www.nongnu.org/gtktalog/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}

%description
GTKtalog is a disk catalog, meaning you can use it to create a really
small database with images of files and folders of your CD-ROM. So you
can browse all your CDs very quickly and see contents of certain files
(such as tar.gz and rpm files). You can assign each folder and file a
category and a description. You can search for files in your database
with filename, category, description, or file information parameter and
find on which CD the file you are looking for is.



Authors:
--------
    Mathieu VILLEGAS <gtktalog@caramail.com>
    Yves Mettier <ymettier@libertysurf.fr>
    Benoit Dien <bdien@altern.org>
    David Erman <di97der@student.hk-r.se>
    Tamas Gervai <crown1@operamail.com>

%lang_package
%prep
%setup -q
%patch
%patch1 -p1
%patch2 -p1
rm -rf Docs/*/gtktalog
cp %{S:1} po/

%build
CFLAGS="$RPM_OPT_FLAGS" \
  ./configure \
    --prefix=%prefix \
    --sysconfdir=%sysconfdir \
    --mandir=%prefix/share/man \
    --libdir=%prefix/%{_lib} \
    --enable-gnome20
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
gzip -9nf $RPM_BUILD_ROOT%{prefix}/share/man/man?/*.?
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
mv $RPM_BUILD_ROOT/usr/share/gnome/apps/*/*.desktop $RPM_BUILD_ROOT/usr/share/applications
rmdir $RPM_BUILD_ROOT/usr/share/gnome/apps/* $RPM_BUILD_ROOT/usr/share/gnome/apps
%suse_update_desktop_file gtktalog FileManager
rmdir $RPM_BUILD_ROOT/usr/share/gnome/help/gtktalog/*/images
%{find_lang} gtktalog
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO Docs/README.data_representation Docs/README.catalog4
%{prefix}/bin/gtktalog
%{prefix}/%_lib/gtktalog
%doc %{prefix}/share/man/man*/*
%{prefix}/share/applications/gtktalog.desktop
%{prefix}/share/gtktalog
%{prefix}/share/pixmaps/gtktalog.png

%files lang -f gtktalog.lang

%changelog
* Mon Jan 14 2008 - ssommer@suse.de
- fixed build with gcc43
* Thu Oct 11 2007 - sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Wed Aug 08 2007 - maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Mon Jan 08 2007 - ro@suse.de
- GNOME moved to /usr
* Wed Mar 01 2006 - postadal@suse.cz
- fixed gnome2.patch which fixed gtk2 support [#153401]
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 25 2005 - mmarek@suse.cz
- Try to build with gtk2
* Thu May 05 2005 - sbrabec@suse.cz
- Rebuild documentation to prevent doubled files.
* Thu Apr 14 2005 - sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Wed Mar 23 2005 - sbrabec@suse.cz
- Moved desktop file (#73653).
* Mon Mar 15 2004 - sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Wed Feb 11 2004 - postadal@suse.cz
- updated to version 1.0.4
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Mon Sep 15 2003 - postadal@suse.cz
- added hungarian translation
* Tue Jul 29 2003 - postadal@suse.cz
- updated to version 1.0.3
  * XML reports
* Mon Jul 14 2003 - hhetter@suse.de
- %%_lib fixes
* Mon Nov 25 2002 - postadal@suse.cz
- update to 1.0.0
  * new plugin with tcprobe
  * bug fixed with MIME types and VFS
  * gnome20 support: fixed the translation pb with accents
  * added the missing 'dates' in reports
  * new icons
* Fri Sep 27 2002 - ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Mon Aug 12 2002 - postadal@suse.cz
- update to 1.0rc1
  * Reports: directories can now be splitted into columns
  * Reports: bug fixed when files were not displayed.
  * Reports: bug fixed in the experimental gnome2 support with the
  info field.
  * Fixed new bugs with the progress bar
* Tue Jul 30 2002 - postadal@suse.cz
- update to 0.99.20
  * Ogg Vorbis files are scanned for information
  * Progress bar works better when scanning a disk
  * fixes
* Fri Jul 26 2002 - adrian@suse.de
- fix neededforbuild
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Tue Jan 15 2002 - nadvornik@suse.cz
- update to 0.99.16:
  - fixes for automount/supermount
* Fri Nov 30 2001 - nadvornik@suse.cz
- update to 0.99.15: bugfix release
* Fri Aug 24 2001 - nadvornik@suse.cz
- upgate to 0.99.11: bugfix release
* Thu Aug 16 2001 - ro@suse.de
- changed neededforbuild <smpeg> to <smpeg smpeg-devel>
* Mon Aug 13 2001 - nadvornik@suse.cz
- update to 0.99.9
- fixed neededforbuild
* Tue Aug 07 2001 - ro@suse.de
- changed path to /media/cdrom
* Fri Aug 03 2001 - nadvornik@suse.cz
- update to 0.99.8
* Wed Jun 20 2001 - nadvornik@suse.cz
- new package