File gtktalog.spec of Package gtktalog
#
# spec file for package gtktalog
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gtktalog
Version: 1.0.4
Release: 0
Summary: The GNOME Disk Catalog
License: GPL-2.0+
Group: Productivity/File utilities
Url: http://www.nongnu.org/%{name}/
Source0: %{name}-%{version}.tar.xz
Patch0: %{name}-config.patch
Patch1: %{name}-gnome.patch
Patch2: %{name}-iostream.patch
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libgnomeui-devel
BuildRequires: update-desktop-files
%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.
%lang_package
%prep
%setup -q
%patch0
%patch1
%patch2
%build
/usr/bin/autoreconf --install --force
%configure --enable-gnome20
%{__make} %{?_smp_mflags}
%{__strip} -s src/%{name}/%{name}
%install
%makeinstall
%{__install} -d -m 0755 %{buildroot}%{_datadir}/applications
%{__mv} %{buildroot}%{_datadir}/gnome/apps/*/*.desktop %{buildroot}%{_datadir}/applications
%{__gzip} %{buildroot}%{_mandir}/man?/*.?
/usr/bin/rmdir %{buildroot}%{_datadir}/gnome/apps/*
/usr/bin/rmdir %{buildroot}%{_datadir}/gnome/apps
/usr/bin/rmdir %{buildroot}%{_datadir}/gnome/help/%{name}/*/images
%suse_update_desktop_file %{name} FileManager
%{find_lang} %{name}
%fdupes %{buildroot}%{_datadir}
%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1%{?ext_man}
%doc AUTHORS BUGS ChangeLog NEWS README TODO
%license COPYING
%files lang -f %{name}.lang
%changelog