File epiphany-extensions.spec of Package epiphany-extensions

#
# spec file for package epiphany-extensions
#
# Copyright (c) 2013 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:           epiphany-extensions
Version:        3.6.0
Release:        0
Summary:        Extensions Collection for Epiphany
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Networking/Web/Browsers
Url:            http://www.gnome.org/projects/epiphany/
Source:         http://download.gnome.org/sources/epiphany-extensions/3.6/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM epiphany-extensions-epi35api.patch bgo#681944 dimstar@opensuse.org -- Follow epiphany 3.5's API changes.
Patch1:         epiphany-extensions-epi35api.patch
%define api_version %(pkg-config --variable extensionsdir %{_libdir}/pkgconfig/epiphany-*.pc | sed "s,^%{_libdir}/epiphany/,,;s,/extensions$,,")
BuildRequires:  dbus-1-glib-devel
BuildRequires:  epiphany-devel >= 3.6
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  libwebkitgtk3-devel
BuildRequires:  libxml2-python
BuildRequires:  opensp-devel
BuildRequires:  translation-update-upstream
Recommends:     %{name}-lang
Supplements:    epiphany
Provides:       epiphany-plugins = %{version}
Obsoletes:      epiphany-plugins < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
This package contains the following Epiphany extensions: Error Viewer
and Validator, Mouse Gestures, Popup Blocker, and Tabs Move-To Menu.

%lang_package
%prep
%setup -q
%patch1 -p1
translation-update-upstream

%build
%configure \
    --disable-static \
    --enable-compile-warnings=yes \
    --disable-scrollkeeper \
    --with-extensions=actions,adblock,auto-reload,certificates,extensions-manager-ui,greasemonkey,push-scroller,soup-fly,tab-key-tab-navigate,tab-states,rss
make %{?_smp_mflags} V=1

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%find_lang %{name}-%{api_version} %{?no_lang_C} %{name}.lang
%fdupes %{buildroot}

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr (-, root, root)
%doc AUTHORS COPYING COPYING.README ChangeLog NEWS README TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_datadir}/epiphany-extensions/
%{_datadir}/epiphany/icons/
%{_datadir}/glib-2.0/schemas/org.gnome.epiphanyextensions.gschema.xml
%{_libdir}/epiphany/%{api_version}/extensions/*.ephy-extension
%{_libdir}/epiphany/%{api_version}/extensions/*.so

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by