File pavuk.spec of Package pavuk

#
# spec file for package pavuk
#
# Copyright (c) 2014 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:           pavuk
BuildRequires:  dante-devel
BuildRequires:  db-devel
BuildRequires:  gtk2-devel
BuildRequires:  libopenssl-devel
BuildRequires:  update-desktop-files
Version:        0.9.35
Release:        0
Url:            http://www.pavuk.org/
Summary:        Powerful WWW or FTP site mirror tool
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Utilities
Summary(de):    Mächtiges Programm zum Spiegeln von Webseiten
Source0:        %{name}-%{version}.tar.bz2
Patch1:         pavuk-ld-add-needed.patch
Patch2:         pavuk-nossl2.patch
Patch3:         pavuk-bugs.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Pavuk is used to download or mirror web sites or files. It transfers documents
from HTTP, FTP, Gopher and optionally from HTTPS (HTTP over SSL) servers. An
optional GTK GUI allows easy configuration. Many options allow fine-tuning for
the usage scenario. This is an tool for experts and much to complicated for
beginners.

%description -l de
Pavuk wird genutzt, um Webseiten oder Dateien herunterzuladen oder zu spiegeln.
Es kann Dokumente von HTTP-, FTP-, Gopher- und optional HTTPS-Servern (HTTP
über SSL) laden. Eine optionale GTK-Oberfläche erlaubt einfaches konfigurieren.
Viele Optionen ermöglichen eine Feinanpassung an die Aufgabenstellung. Dieses
Programm ist für Anfänger sehr kompliziert und eher für Experten gedacht.

%prep
%setup -q
%patch1
%patch2 -p1
%patch3 -p1

%build
CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG -Wall" ./configure \
        --disable-gnome \
        --enable-utf-8 \
        --prefix=%{_prefix} \
        --sysconfdir=%{_sysconfdir} \
        --mandir=%{_mandir}
make %{?jobs:-j%jobs}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm $RPM_BUILD_ROOT%{_bindir}/*.sh
%find_lang %name
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
ln -s ../icons/pavuk_32x32.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/pavuk.xpm
iconv %{name}.desktop -f iso-8859-1 -t utf-8 >$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
echo "Encoding=UTF-8" >>$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
echo "X-SuSE-translate=false" >>$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS BUGS ChangeLog COPYING CREDITS MAILINGLIST NEWS README TODO wget-pavuk.HOWTO
%doc %{_mandir}/man?/*
%doc pavukrc.sample
%{_bindir}/*
%{_datadir}/icons/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*.desktop
#%{_prefix}/share/locale/*/LC_MESSAGES/%{name}.mo

%changelog
openSUSE Build Service is sponsored by