LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gnome-web-photo.spec of Package gnome-web-photo (Project openSUSE:Factory)

# 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
BuildRequires:  translation-update-upstream
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires:  xz
%if 0%{?favor_gtk2}
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(webkit-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(webkitgtk-3.0)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?favor_gtk2}

GNOME Web Photographer is a tool to generate full-size image files and
thumbnails from HTML files and web pages.

%setup -q

%configure \
%if 0%{?favor_gtk2}
make %{?_smp_mflags}

%find_lang %{name} %{?no_lang_C}
%if 0%{?favor_gtk2}

rm -rf %{buildroot}

%if 0%{?favor_gtk2}

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%if 0%{?favor_gtk2}

%files -f %{name}.schemas_list

%defattr (-, root, root)
%if ! (0%{?favor_gtk2})
%dir %{_datadir}/thumbnailers

%files lang -f %{name}.lang