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

# norootforbuild

Name:           suck
%if %suse_version > 1020
BuildRequires:  inn-devel
BuildRequires:  inn
BuildRequires:  openssl-devel
License:        Public Domain, Freeware
Group:          Productivity/Networking/News/Utilities
AutoReqProv:    on
Version:        4.3.0
Release:        722
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

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.

    Tim Smith
    Sven Goldt <>
    Robert A. Yetman <>

%setup -q

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

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

rm -rf "$RPM_BUILD_ROOT"

%doc %{_docdir}/%{name}
%doc %{_mandir}/man1/*

openSUSE Build Service is sponsored by