epiphany/epiphany.spec

191 lines
5.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package epiphany (Version 2.27.90)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: epiphany
BuildRequires: NetworkManager-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
BuildRequires: gir-repository
BuildRequires: gnome-common
BuildRequires: gnome-doc-utils-devel
BuildRequires: gnome-icon-theme
BuildRequires: gnome-keyring-devel
BuildRequires: gnome-themes
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: iso-codes-devel
BuildRequires: libavahi-gobject-devel
BuildRequires: libnotify-devel
BuildRequires: libseed-devel
BuildRequires: libsoup-devel
BuildRequires: libwebkit-devel
BuildRequires: libxslt-devel
BuildRequires: lsb-release
BuildRequires: startup-notification-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
Version: 2.27.90
Release: 1
%define major_version 2.27
License: GPL v2 or later
Group: Productivity/Networking/Web/Browsers
Summary: GNOME Web Browser Based on the Mozilla Rendering Engine
Source: %{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM epiphany-user-agent.patch bgo580903 vuntz@novell.com -- Set user agent with a vendor part, via a gconf key
Patch0: epiphany-user-agent.patch
# PATCH-FEATURE-OPENSUSE epiphany-safe-one-click-install.patch bnc330070 vuntz@novell.com -- Make one-click install work with one-click
Patch6: epiphany-safe-one-click-install.patch
Url: http://www.gnome.org/projects/epiphany/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: iso-codes gnome-icon-theme
Requires: %{name}-lang = %{version}
Requires: %{name}-branding
%gconf_schemas_prereq
%description
Epiphany is a Web browser for the GNOME Desktop. Its principles are
simplicity and standards compliance.
%package devel
License: GPL v2 or later
Summary: GNOME Web Browser based on the Mozilla Rendering Engine
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: gtk2-devel
Requires: libwebkit-devel
Requires: libxml2-devel
%description devel
Epiphany is a Web Browser for the GNOME Desktop. Its principles are
simplicity and standards compliance.
%package doc
License: GPL v2 or later
Summary: Developer Documentation for Epiphany
Group: Productivity/Networking/Web/Browsers
Requires: %{name} = %{version}
%description doc
Epiphany is a Web Browser for the GNOME Desktop. Its principles are
simplicity and standards compliance.
This package contains developer documentation for epiphany.
%package branding-upstream
License: GPL v2 or later
Summary: Upstream branding of Epiphany
Group: Productivity/Networking/Web/Browsers
Provides: %{name}-branding = %{version}
Conflicts: otherproviders(%{name}-branding)
Supplements: packageand(%{name}:branding-upstream)
#BRAND: Provide a few files -
#BRAND: /usr/share/epiphany/default-bookmarks.rdf
#BRAND: the default bookmarks
%description branding-upstream
This package provides upstream Look and Feel for Epiphany.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%patch6 -p1
%build
ACLOCAL="aclocal -I m4" autoreconf -f -i
%configure \
--disable-scrollkeeper \
--enable-dbus \
--enable-zeroconf \
--enable-network-manager \
--enable-introspection \
--enable-seed
%__make %{?jobs:-j%jobs}
%install
%makeinstall
mkdir $RPM_BUILD_ROOT%{_datadir}/pixmaps
ln -s ../icons/gnome/scalable/apps/web-browser.svg $RPM_BUILD_ROOT%{_datadir}/pixmaps/
# In case make install did not create the extensions folder
if ! test -d %{buildroot}%{_libdir}/epiphany/%{major_version}/extensions; then
install -d -m 0755 %{buildroot}%{_libdir}/epiphany/%{major_version}/extensions
fi
%suse_update_desktop_file -N "Epiphany" %name
%suse_update_desktop_file bme System
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post -p /sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun -p /sbin/ldconfig
%files -f %{name}.lst
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.Epiphany.service
%exclude %{_datadir}/epiphany/default-bookmarks.rdf
%{_datadir}/epiphany
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/icons/LowContrastLargePrint
%dir %{_datadir}/icons/LowContrastLargePrint/48x48
%dir %{_datadir}/icons/LowContrastLargePrint/48x48/apps
%{_datadir}/icons/*/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/pixmaps/*.svg
%{_libdir}/epiphany
%{_libdir}/girepository-1.0/*.typelib
%doc %{_mandir}/man1/epiphany.1.gz
%files lang -f %{name}.lang
%files devel
%defattr(-,root,root)
%{_datadir}/aclocal/*.m4
%{_includedir}/epiphany*
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/epiphany
%files branding-upstream
%defattr(-,root,root)
%{_datadir}/epiphany/default-bookmarks.rdf
%changelog