2006-12-29 00:03:49 +01:00
#
2011-04-21 17:55:18 +02:00
# spec file for package epiphany
2006-12-29 00:03:49 +01:00
#
2012-01-17 17:05:32 +01:00
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
2006-12-29 00:03:49 +01:00
#
2008-08-14 02:10:42 +02:00
# 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.
2006-12-29 00:03:49 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name : epiphany
2012-08-16 00:20:23 +02:00
Version : 3.4.3
2011-12-21 05:50:00 +01:00
Release : 0
2011-07-06 19:07:45 +02:00
Summary : GNOME Web Browser
2011-12-21 05:50:00 +01:00
License : GPL-2.0+
2009-09-03 15:32:34 +02:00
Group : Productivity/Networking/Web/Browsers
2011-12-21 05:50:00 +01:00
Url : http://www.gnome.org/projects/epiphany/
2012-03-28 08:24:58 +02:00
Source : http://download.gnome.org/sources/epiphany/3.4/%{name} -%{version} .tar.xz
2009-09-03 15:32:34 +02:00
# 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
2012-07-17 20:26:13 +02:00
# PATCH-FIX-UPSTREAM epiphany-fix-memory-leaks.patch bnc#771568 bgo#677720 bgo#676484 badshah400@gmail.com -- Fix several memory leaks; patches taken from upstream git commits and rebased for 3.4.2
Patch7 : epiphany-fix-memory-leaks.patch
2010-06-04 15:04:13 +02:00
BuildRequires : ca-certificates
2009-02-12 17:25:10 +01:00
BuildRequires : fdupes
BuildRequires : gnome-doc-utils-devel
BuildRequires : gnome-icon-theme
2009-08-07 16:48:13 +02:00
BuildRequires : gobject-introspection-devel
2009-02-12 17:25:10 +01:00
BuildRequires : intltool
BuildRequires : iso-codes-devel
BuildRequires : libavahi-gobject-devel
2009-12-30 00:14:30 +01:00
BuildRequires : libgnome-keyring-devel
2011-09-02 02:07:28 +02:00
BuildRequires : libnotify-devel >= 0.5.1
2011-04-21 17:55:18 +02:00
BuildRequires : libseed-gtk3-devel
2011-12-21 05:50:00 +01:00
BuildRequires : libsoup-devel >= 2.37.1
2011-10-04 09:03:07 +02:00
BuildRequires : libtool
2012-08-16 00:20:23 +02:00
BuildRequires : libwebkitgtk3-devel >= 1.8.2
2009-02-12 17:25:10 +01:00
BuildRequires : libxslt-devel
2009-09-22 22:26:15 +02:00
BuildRequires : mozilla-nss-devel
2009-03-11 20:39:07 +01:00
BuildRequires : translation-update-upstream
2009-02-12 17:25:10 +01:00
BuildRequires : update-desktop-files
2011-04-21 17:55:18 +02:00
BuildRequires : pkgconfig(gsettings-desktop-schemas)
2012-02-08 20:49:19 +01:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.3.14
2012-02-20 10:18:44 +01:00
BuildRequires : pkgconfig(ice)
BuildRequires : pkgconfig(sm)
2012-03-12 20:18:02 +01:00
BuildRequires : pkgconfig(sqlite3)
2012-02-20 10:19:48 +01:00
BuildRequires : pkgconfig(x11)
2011-07-06 19:07:45 +02:00
Requires : %{name} -branding = %{version}
2011-07-06 11:15:24 +02:00
Requires : NetworkManager
2009-09-03 15:32:34 +02:00
Requires : gnome-icon-theme
Requires : iso-codes
2011-02-13 22:05:29 +01:00
Recommends: %{name} -lang
2010-09-11 12:32:44 +02:00
Recommends: ca-certificates
2009-09-03 15:32:34 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-04-21 17:55:18 +02:00
%glib2_gsettings_schema_requires
2006-12-29 00:03:49 +01:00
%description
Epiphany is a Web browser for the GNOME Desktop. Its principles are
simplicity and standards compliance.
%package devel
2011-07-06 19:07:45 +02:00
Summary : GNOME Web Browser
2008-03-26 16:09:14 +01:00
Group : Development/Libraries/GNOME
2009-08-07 16:48:13 +02:00
Requires : %{name} = %{version}
2010-08-27 22:47:57 +02:00
Provides : %{name} -doc = %{version}
2012-03-11 18:46:25 +01:00
Provides : browser(npapi)
2010-08-27 22:47:57 +02:00
Obsoletes : %{name} -doc < %{version}
2006-12-29 00:03:49 +01:00
%description devel
Epiphany is a Web Browser for the GNOME Desktop. Its principles are
simplicity and standards compliance.
2008-08-02 03:15:52 +02:00
%package branding-upstream
2011-07-06 19:07:45 +02:00
Summary : GNOME Web Browser -- Upstream default bookmarks and user agent string
2008-08-02 03:15:52 +02:00
Group : Productivity/Networking/Web/Browsers
2011-07-06 19:07:45 +02:00
Requires : %{name} = %{version}
2008-08-02 03:15:52 +02:00
Provides : %{name} -branding = %{version}
2008-10-06 16:32:28 +02:00
Conflicts : otherproviders(%{name} -branding)
2011-07-06 19:07:45 +02:00
Supplements: packageand(%{name} :branding-upstream)
BuildArch : noarch
2008-08-02 03:15:52 +02:00
#BRAND: Provide a few files -
#BRAND: /usr/share/epiphany/default-bookmarks.rdf
2011-07-07 11:17:40 +02:00
#BRAND: the default bookmarks
#BRAND: /usr/share/epiphany/branding.conf (optional)
#BRAND: a file to change the default user agent. For instance:
#BRAND: [User Agent]
#BRAND: Vendor=SUSE
#BRAND: VendorSub=12.1
#BRAND: VendorComment=3.1.2-101.5
2008-08-02 03:15:52 +02:00
%description branding-upstream
2011-07-06 19:07:45 +02:00
Epiphany is a Web Browser for the GNOME Desktop. Its principles are
simplicity and standards compliance.
This package provides the upstream default bookmarks and user agent
string.
2008-08-02 03:15:52 +02:00
2007-08-09 18:49:02 +02:00
%lang_package
2006-12-29 00:03:49 +01:00
%prep
%setup -q
2009-03-11 20:39:07 +01:00
translation-update-upstream
2008-12-15 12:29:02 +01:00
%patch6 -p1
2012-07-17 20:26:13 +02:00
%patch7 -p1
2006-12-29 00:03:49 +01:00
%build
2008-09-24 15:19:01 +02:00
%configure \
--disable-scrollkeeper \
2010-08-27 22:47:57 +02:00
--disable-maintainer-mode \
--enable-introspection \
2008-09-24 15:19:01 +02:00
--enable-zeroconf \
2009-03-25 18:53:44 +01:00
--enable-network-manager \
2010-03-19 09:00:54 +01:00
--enable-seed \
2011-12-21 05:50:00 +01:00
--with-distributor-name=" S U S E "
2011-09-21 17:42:01 +02:00
make %{?_smp_mflags} V=1
2006-12-29 00:03:49 +01:00
%install
2008-02-15 01:19:38 +01:00
%makeinstall
2010-04-16 00:11:04 +02:00
# In case make install did not create the extensions directory; note that we
# determine this directory with the pkg-config file that got installed.
extensionsdir=`pkg-config --variable extensionsdir %{buildroot} %{_libdir} /pkgconfig/epiphany-*.pc`
if ! test -d %{buildroot} ${extensionsdir}; then
install -d -m 0755 %{buildroot} ${extensionsdir}
2009-08-07 16:48:13 +02:00
fi
2012-07-23 17:18:56 +02:00
%suse_update_desktop_file %{name}
2011-04-21 17:58:04 +02:00
# Copy the icons in hicolor, else brp-check is sad
2011-04-21 17:55:18 +02:00
for size in 8x8 16x16 22x22 24x24 32x32 48x48 256x256; do
if test -f %{_datadir} /icons/gnome/$size/apps/web-browser.png; then
mkdir -p %{buildroot} %{_datadir} /icons/hicolor/$size/apps
cp -a %{_datadir} /icons/gnome/$size/apps/web-browser.png %{buildroot} %{_datadir} /icons/hicolor/$size/apps/web-browser.png
fi
done
2011-02-13 22:05:29 +01:00
%find_lang %{name} %{?no_lang_C}
2009-09-03 15:32:34 +02:00
%fdupes %{buildroot}
2007-08-03 00:18:52 +02:00
2010-12-11 18:48:25 +01:00
%post
/sbin/ldconfig
%desktop_database_post
2011-02-13 22:05:29 +01:00
%icon_theme_cache_post
2011-04-21 17:55:18 +02:00
%glib2_gsettings_schema_post
2006-12-29 00:03:49 +01:00
2010-12-11 18:48:25 +01:00
%postun
/sbin/ldconfig
%desktop_database_postun
2011-02-13 22:05:29 +01:00
%icon_theme_cache_postun
2011-04-21 17:55:18 +02:00
%glib2_gsettings_schema_postun
2006-12-29 00:03:49 +01:00
2011-12-21 05:50:00 +01:00
%files
2006-12-29 00:03:49 +01:00
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
2011-02-13 22:05:29 +01:00
%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
2012-02-08 20:49:19 +01:00
%{_bindir} /ephy-profile-migrator
%{_bindir} /epiphany
%{_datadir} /applications/epiphany.desktop
2006-12-29 00:03:49 +01:00
%{_datadir} /dbus-1/services/org.gnome.Epiphany.service
2008-09-13 05:22:39 +02:00
%exclude %{_datadir} /epiphany/default-bookmarks.rdf
2011-02-13 22:05:29 +01:00
%{_datadir} /epiphany/
2011-04-21 17:55:18 +02:00
%{_datadir} /GConf/gsettings/epiphany.convert
%{_datadir} /glib-2.0/schemas/org.gnome.Epiphany.enums.xml
%{_datadir} /glib-2.0/schemas/org.gnome.epiphany.gschema.xml
2011-02-13 22:05:29 +01:00
%{_datadir} /icons/hicolor/*/apps/*.png
2007-01-10 17:39:58 +01:00
%{_libdir} /epiphany
2012-03-28 08:24:58 +02:00
%{_libdir} /girepository-1.0/Epiphany-3.4.typelib
2007-01-10 17:39:58 +01:00
%doc %{_mandir} /man1/epiphany.1.gz
2006-12-29 00:03:49 +01:00
2007-08-09 18:49:02 +02:00
%files lang -f %{name}.lang
2006-12-29 00:03:49 +01:00
%files devel
%defattr (-,root,root)
2010-08-27 22:47:57 +02:00
%doc %{_datadir} /gtk-doc/html/epiphany/
2007-01-10 17:39:58 +01:00
%{_datadir} /aclocal/*.m4
2010-09-24 00:27:15 +02:00
%{_datadir} /gir-1.0/*.gir
2007-01-10 17:39:58 +01:00
%{_includedir} /epiphany*
%{_libdir} /pkgconfig/*.pc
2006-12-29 00:03:49 +01:00
2008-08-02 03:15:52 +02:00
%files branding-upstream
%defattr (-,root,root)
%{_datadir} /epiphany/default-bookmarks.rdf
2007-03-13 00:43:47 +01:00
%changelog