File gpicview.spec of Package gpicview

#
# spec file for package gpicview
#
# Copyright (c) 2012 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:           gpicview
Summary:        LXDE Photo Viewer
License:        GPL-2.0
Group:          Productivity/Graphics/Viewers
Version:        0.2.3
Release:        0
Url:            http://www.lxde.org/
Source0:        %name-%version.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gettext-runtime
BuildRequires:  gettext-tools
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libjpeg-devel
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl-XML-Parser
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files

%description
An extremely fast, lightweight, yet feature-rich photo viewer.
This software is part of the LXDE Desktop Environment.

%prep
%setup -q

%build
%configure
%__make %{?jobs:-j%{jobs}} V=1

%install
%makeinstall

%suse_update_desktop_file -r gpicview GTK Graphics Viewer
%find_lang %name
%fdupes -s %{buildroot}

%clean
rm -fr %buildroot

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files -f %name.lang
%defattr(-,root,root)
%_bindir/%name
%_datadir/applications/gpicview.desktop
%dir %_datadir/gpicview
%dir %_datadir/gpicview/pixmaps
%dir %_datadir/gpicview/ui
%_datadir/gpicview/pixmaps/*.png
%_datadir/gpicview/ui/pref-dlg.ui
%_datadir/pixmaps/gpicview.png

%changelog
openSUSE Build Service is sponsored by