File frogr.spec of Package frogr

#
# spec file for package frogr
#
# 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:           frogr
Version:        0.6.1
Release:        1
License:        GPLv3
Summary:        Tool to Manage Flickr Accounts
Url:            https://live.gnome.org/Frogr
Group:          Productivity/Graphics/Other
Source:         http://download.gnome.org/sources/frogr/0.6/%{name}-%{version}.tar.bz2
BuildRequires:  gnome-doc-utils-devel >= 0.10.13
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(glib-2.0) >= 2.22
%if 0%{?favor_gtk2}
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.16
%else
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.0
%endif
BuildRequires:  pkgconfig(libexif)
BuildRequires:  pkgconfig(libsoup-2.4) >= 2.26
BuildRequires:  pkgconfig(libxml-2.0)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Frogr is a small application for the GNOME desktop that allows users to
manage their accounts in the Flickr image hosting website. It supports
all the basic Flickr features, including uploading pictures, adding
descriptions, setting tags and managing sets and groups pools.

%lang_package
%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name}
%suse_update_desktop_file frogr Viewer

%clean
%{?buildroot:rm -rf %{buildroot}}

%post
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%else
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
%endif

%postun
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%else
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
%endif

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README THANKS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/pixmaps/frogr.xpm
%{_datadir}/icons/hicolor/*/apps/frogr.*
%{_mandir}/man1/frogr.1%{ext_man}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by