File pavuk.spec of Package pavuk

#
# spec file for package pavuk
#
# 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/
#

# norootforbuild


Name:           pavuk
BuildRequires:  dante-devel
BuildRequires:  db-devel
BuildRequires:  gtk2-devel
BuildRequires:  libopenssl-devel
BuildRequires:  update-desktop-files
Version:        0.9.35
Release:        158
AutoReqProv:    on
Group:          Productivity/Networking/Web/Utilities
License:        GPLv2+
Url:            http://pavuk.sourceforge.net/
Summary:        Powerful WWW or FTP Site Mirror Tool
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Patch1:         pavuk-ld-add-needed.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Pavuk is used to download or mirror Web sites or files. It transfers
document 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 a tool for
experts and much too complicated for beginners.



Authors:
--------
    Ondrejicka Stefan <ondrej@idata.sk>

%prep
%setup -q
%patch1

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

%install
make DESTDIR=$RPM_BUILD_ROOT GNOME_PREFIX=/var/tmp install
rm -rf $RPM_BUILD_ROOT/var/tmp # gnome unwanted
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
install -m 644 pavukrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/pavukrc
rm -f $RPM_BUILD_ROOT/usr/info/dir.bak.gz
%find_lang %name
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp $RPM_BUILD_ROOT%{_datadir}/icons/pavuk_32x32.xpm \
   $RPM_BUILD_ROOT%{_datadir}/pixmaps/pavuk.xpm
%suse_update_desktop_file -i %name Network FileTransfer

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%config %{_sysconfdir}/pavukrc
%doc AUTHORS BUGS COPYING CREDITS ChangeLog MAILINGLIST NEWS README TODO wget-pavuk.HOWTO
%doc %{_mandir}/man?/*
%{_bindir}/*
%{_datadir}/icons/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*.desktop

%changelog
openSUSE Build Service is sponsored by