File newsbeuter.spec of Package newsbeuter
#
# spec file for package newsbeuter
#
# 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/
#
Name: newsbeuter
Version: 2.4
Release: 1
Summary: RSS/Atom Feed Reader for Text Terminals
# http://www.newsbeuter.org/downloads/newsbeuter-%{version}.tar.gz
Source: newsbeuter-%{version}.tar.bz2
# pbleser: include <ncurses.h> instead of <ncursesw/ncurses.h>
Patch1: newsbeuter-ncurses.patch
# pbleser: introduce OPTFLAGS make variable, instead of hard-coded -ggdb
Patch2: newsbeuter-makefile.patch
Url: http://www.newsbeuter.org
Group: Productivity/Networking/Web/Browsers
License: MIT/X Consortium License
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libstfl-devel
BuildRequires: zlib-devel
BuildRequires: libxml2-devel
%if %suse_version >= 1100
BuildRequires: sqlite3-devel
%else
BuildRequires: sqlite-devel
%endif
%if %suse_version >= 1030
BuildRequires: libcurl-devel libopenssl-devel
%else
BuildRequires: curl-devel openssl-devel
%endif
BuildRequires: gettext gettext-devel perl
BuildRequires: gcc gcc-c++ glibc-devel libstdc++-devel make pkgconfig
Recommends: lynx
%description
Newsbeuter is an open-source RSS/Atom feed reader for text terminals. It runs
on Linux, FreeBSD, Mac OS X and other Unix-like operating
systems. Newsbeuter's great configurability and vast number of features make
it a perfect choice for people that need a slick and fast feed reader that can
be completely controlled via keyboard.
Authors:
--------
Andreas Krennmair <ak@newsbeuter.org>
%prep
%setup -q
%patch1
%patch2
%build
./config.sh
%__make %{?jobs:-j%{jobs}} \
prefix="%{_prefix}" \
OPTFLAGS="%{optflags}"
%install
%makeinstall prefix="%{_prefix}"
%__chmod 0644 "%{buildroot}%{_mandir}"/*/*.*
%__mkdir RPM-DOC
%__mv "%{buildroot}%{_datadir}/doc/newsbeuter"/* RPM-DOC
/bin/rmdir "%{buildroot}%{_datadir}/doc/newsbeuter"
for l in zh; do
%__rm -rf "%{buildroot}%{_datadir}/locale/${l}"
done
%find_lang newsbeuter
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f newsbeuter.lang
%defattr(-,root,root)
%doc RPM-DOC/*
%doc AUTHORS CHANGES LICENSE README TODO
%{_bindir}/newsbeuter
%{_bindir}/podbeuter
%doc %{_mandir}/man1/newsbeuter.1%{ext_man}
%doc %{_mandir}/man1/podbeuter.1%{ext_man}
%changelog