File gwget.spec of Package gwget

#
# spec file for package gwget (Version 1.0.2)
#
# 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:           gwget
BuildRequires:  epiphany-devel fdupes intltool
BuildRequires:  libglade2-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
License:        GPL v2 or later
Group:          Productivity/Networking/Web/Utilities
Requires:       wget
Version:        1.0.2
Release:        2
Summary:        GTK+ Front-End to wget
Url:            http://gnome.org/projects/gwget/
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gwget-epiphany-2.27.patch bgo585401 vuntz@novell.com -- Fix build with new epiphany
Patch0:         gwget-epiphany-2.27.patch
# PATCH-FIX-UPSTREAM gwget-schema-install.patch bgo590850 vuntz@novell.com -- Fix --disable-schemas-install
Patch1:         gwget-schema-install.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}
%gconf_schemas_prereq

%description
This package contains a graphical user interface for wget.

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

%build
autoreconf -f -i
%configure \
        --disable-static \
        --disable-schemas-install \
        --enable-epiphany-extension
make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file gwget Network FileTransfer
%find_lang %{name}
%find_gconf_schemas
# No library is installed, don't install headers:
rm -rf $RPM_BUILD_ROOT/%{_includedir}
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO THANKS
%dir %{_libdir}/epiphany/*/extensions
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/gwget
%{_datadir}/pixmaps/%{name}*.*
%{_datadir}/dbus-1/services/org.gnome.gwget.service
%{_libdir}/epiphany/*/*/*.*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by