File epiphany-extensions.spec of Package epiphany-extensions

#
# spec file for package epiphany-extensions
#
# 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:           epiphany-extensions
Version:        2.32.0
Release:        3
License:        GPLv2+ ; LGPLv2.1+
Summary:        Extensions Collection for Epiphany
Url:            http://www.gnome.org/projects/epiphany/
Group:          Productivity/Networking/Web/Browsers
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/2.20/%{name}-%{version}.tar.bz2
%define api_version %(pkg-config --variable extensionsdir %{_libdir}/pkgconfig/epiphany-*.pc | sed "s,^%{_libdir}/epiphany/,,;s,/extensions$,,")
BuildRequires:  dbus-1-glib-devel
BuildRequires:  epiphany
BuildRequires:  epiphany-devel >= 2.29.0
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  libwebkitgtk-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

%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
translation-update-upstream

%build
%configure \
    --disable-static \
    --with-extensions=all,greasemonkey,gestures,rss \
    --enable-compile-warnings=yes \
    --disable-scrollkeeper
%__make %{?jobs:-j%jobs}

%install
%makeinstall
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
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}

%clean
rm -rf %{buildroot}

%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/hicolor/*/status/*.*
%{_libdir}/epiphany/%{api_version}/extensions

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by