File suck.spec of Package suck

#
# spec file for package suck (Version 4.3.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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:        592
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
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
%patch
%patch1
%patch2
%patch3

%build
CFLAGS="-Wall $RPM_OPT_FLAGS -pipe -fno-strict-aliasing" 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

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
/usr/bin/*
%doc README* CHANGELOG sample/*
%doc %{_mandir}/man1/*

%changelog
* Mon Jun 04 2007 - dmueller@suse.de
- update BuildRequires
* Wed Feb 14 2007 - mvaner@suse.cz
- Replaced dangerous gets with fgets, bug #223615
  - fgets.patch
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 15 2006 - schwab@suse.de
- Don't strip binaries.
* Thu Apr 29 2004 - ro@suse.de
- added -fno-strict-aliasing
* Sun Jan 11 2004 - adrian@suse.de
- add %%defattr
* Thu Jul 31 2003 - ro@suse.de
- don't try to include configdata.h, it's been long obsolete
* Fri Aug 09 2002 - mls@suse.de
- made it work with threaded perl
* Thu May 02 2002 - mls@suse.de
- use inn-2.3 history format (bug reported by Harald Schreiber)
* Fri Feb 22 2002 - mls@suse.de
- Fixed linkage of dynamic perl library
* Fri Nov 23 2001 - nadvornik@suse.cz
- update to 4.3.0:
  - SSL support
  - rpost: added the -i option to ignore the 201 readonly code
  and try to post anyway
  - suck: added the -bP option to post articles to the local server
  every x number of articles, instead of waiting until all articles
  are downloaded.
* Mon May 21 2001 - nadvornik@suse.cz
- fixed cast warnings and include files for ia64
* Tue Mar 13 2001 - nadvornik@suse.cz
- update to 4.2.5
* Mon Nov 13 2000 - ro@suse.de
- use -lm for libperl on all archs
* Wed Sep 27 2000 - nadvornik@suse.cz
- default location for history file changed
  from /usr/news/db/history to /var/lib/news/history
* Wed Sep 13 2000 - schwab@suse.de
- Fix Makefile for ia64
- Include <stdlib.h> for malloc.
* Tue May 23 2000 - nadvornik@suse.cz
- update to 4.2.4
* Thu May 18 2000 - nadvornik@suse.cz
- changed Group tag
* Tue Apr 11 2000 - nadvornik@suse.cz
- added URL
* Tue Mar 21 2000 - nadvornik@suse.cz
- added BuildRoot
- fixed Makefile.in for sparc
* Fri Feb 18 2000 - fehr@suse.de
- changed to new version 4.2.3
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Sep 03 1999 - uli@suse.de
- fixed Makefile.in for PPC
- added RPM_OPT_FLAGS to CFLAGS in Makefile.Linux
* Fri Aug 27 1999 - fehr@suse.de
- update to 4.2.2
* Thu Oct 01 1998 - ro@suse.de
- update to 3.9.4
* Thu Jul 16 1998 - florian@suse.de
- update to version 3.9.3
- simplified spec-file
* Mon Mar 02 1998 - florian@suse.de
- update to version 3.9.1
* Fri Oct 10 1997 - florian@suse.de
- update to version 3.6.0
* Mon Jun 23 1997 - florian@suse.de
- update to version 3.5.1
* Tue May 27 1997 - florian@suse.de
- fix path to /var/lib/news/history
- update to version 3.4.1
* Thu Jan 02 1997 - florian@suse.de
- update to version 3.3.2
* Thu Jan 02 1997 - florian@suse.de
- Update auf neue Version 3.3.0.
- Anpassung einiger einkompilierter Pfade.
* Thu Jan 02 1997 - florian@suse.de
- update to newer version
* Thu Jan 02 1997 - bs@suse.de
  1. Version
openSUSE Build Service is sponsored by