File geeqie.spec of Package geeqie

#
# spec file for package geeqie
#
# Copyright (c) 2011 SUSE LINUX Products 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:           geeqie
Version:        1.0
Release:        1
License:        GPLv2+
Summary:        Lightweight Gtk+ based image viewer
Url:            http://geeqie.sourceforge.net/
Group:          Productivity/Graphics/Viewers
Source:         %{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gnome-doc-utils
BuildRequires:  intltool
BuildRequires:  lirc-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(exiv2) >= 0.11
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(lcms) >= 1.14
Recommends:     %{name}-lang
# geeqie is a fork of the last know gqview release
Obsoletes:      gqview <= 2.1.5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Geeqie is a lightweight Gtk+ based image viewer for Unix like
operating systems.

%lang_package
%prep
%setup -q

%build
%configure \
        --enable-lirc \
        --with-readmedir=%{_defaultdocdir}/%{name} \
        --with-helpdir=%{_defaultdocdir}/%{name}/html
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%doc %{_defaultdocdir}/%{name}
%{_bindir}/geeqie
%{_datadir}/applications/geeqie.desktop
%{_datadir}/geeqie/
%{_datadir}/pixmaps/geeqie.png
%{_libexecdir}/geeqie/
%doc %{_mandir}/man1/geeqie.1%{?ext_man}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by