File suck.spec of Package suck

#
# spec file for package suck (Version 4.3.0)
#
# Copyright (c) 2010 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:           suck
%if %suse_version > 1020
BuildRequires:  inn-devel
%else
BuildRequires:  inn
%endif
BuildRequires:  openssl-devel
License:        Public Domain, Freeware
Group:          Productivity/Networking/News/Utilities
AutoReqProv:    on
Version:        4.3.0
Release:        722
Url:            http://www.sucknews.org
Summary:        Reading News Offline
Source:         suck-%{version}.tar.bz2
Patch:          suck-%{version}.dif
Patch1:         suck-%{version}-ia64.patch
Patch2:         suck-%{version}-thrperl.dif
Patch3:         suck-%{version}-fgets.patch
Patch4:         suck-%{version}-inn3_headers_location.patch
Patch5:         suck-%{version}-codecleanup.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Suck is a program used to grab news from a remote NNTP news server and
bring it to a local machine, without having the remote server do
anything special.



Authors:
--------
    Tim Smith
    Sven Goldt <goldt@math.tu-berlin.de>
    Robert A. Yetman <bobyetman@home.com>

%prep
%setup -q
%patch
%patch1
%patch2
%patch3
%patch4
%patch5

%build
CFLAGS="-Wall $RPM_OPT_FLAGS -pipe" LDFLAGS=' ' ./configure --prefix=%_prefix
make all lpost

%install
make prefix="$RPM_BUILD_ROOT"/usr \
     bindir="$RPM_BUILD_ROOT"/usr/bin \
     mandir="$RPM_BUILD_ROOT"/%{_mandir}/man1 \
     install install_lpost

install -d %{buildroot}/%{_docdir}/%{name}/examples
install -m644 README* CHANGELOG %{buildroot}/%{_docdir}/%{name}/
install sample/* %{buildroot}/%{_docdir}/%{name}/examples

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
/usr/bin/*
%doc %{_docdir}/%{name}
%doc %{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by