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

Name:           newsbeuter
Version:        2.4
Release:        1
Summary:        RSS/Atom Feed Reader for Text Terminals
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
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
BuildRequires:  sqlite-devel
%if %suse_version >= 1030
BuildRequires:  libcurl-devel libopenssl-devel
BuildRequires:  curl-devel openssl-devel
BuildRequires:  gettext gettext-devel perl
BuildRequires:  gcc gcc-c++ glibc-devel libstdc++-devel make pkgconfig
Recommends:     lynx

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.

    Andreas Krennmair <>

%setup -q


%__make %{?jobs:-j%{jobs}} \
    	  prefix="%{_prefix}" \

%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}"

%find_lang newsbeuter

%{?buildroot:%__rm -rf "%{buildroot}"}

%files -f newsbeuter.lang
%doc RPM-DOC/*
%doc %{_mandir}/man1/newsbeuter.1%{ext_man}
%doc %{_mandir}/man1/podbeuter.1%{ext_man}