File gnome-web-photo.spec of Package gnome-web-photo
#
# spec file for package gnome-web-photo
#
# 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: gnome-web-photo
Version: 0.10.6
Release: 0
Summary: GNOME Web Photographer
License: GPL-2.0+
Group: Productivity/Graphics/Viewers
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-web-photo/0.10/%{name}-%{version}.tar.xz
BuildRequires: intltool >= 0.40.6
BuildRequires: translation-update-upstream
%if 0%{?favor_gtk2}
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(webkit-1.0)
%else
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(webkitgtk-3.0)
%endif
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?favor_gtk2}
%gconf_schemas_prereq
%endif
%description
GNOME Web Photographer is a tool to generate full-size image files and
thumbnails from HTML files and web pages.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure \
%if 0%{?favor_gtk2}
--with-gtk=2.0
%else
--with-gtk=3.0
%endif
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
%if 0%{?favor_gtk2}
%find_gconf_schemas
%endif
%clean
rm -rf %{buildroot}
%if 0%{?favor_gtk2}
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%endif
%if 0%{?favor_gtk2}
%files -f %{name}.schemas_list
%else
%files
%endif
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/gnome-web-photo
%{_bindir}/gnome-web-print
%{_bindir}/gnome-web-thumbnail
%{_datadir}/gnome-web-photo/
%if ! (0%{?favor_gtk2})
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/gnome-web-photo.thumbnailer
%endif
%files lang -f %{name}.lang
%changelog