File newsbeuter.spec of Package newsbeuter

# vim: set ts=4 sw=4 et:
# spec file for package newsbeuter
# Copyright (c) 2012 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:        0
Summary:        RSS/Atom Feed Reader for Text Terminals
License:        MIT
Group:          Productivity/Networking/Web/Browsers
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
# PATCH-FIX-UPSTREAM newsbeuter-gcc47.patch -- Fix build with gcc 4.7
Patch3:         newsbeuter-gcc47.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libstfl-devel
BuildRequires:  libxml2-devel
BuildRequires:  zlib-devel
%if %suse_version >= 1100
BuildRequires:  sqlite3-devel
BuildRequires:  sqlite-devel
%if %suse_version >= 1030
BuildRequires:  libcurl-devel
BuildRequires:  libopenssl-devel
BuildRequires:  curl-devel
BuildRequires:  openssl-devel
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  gettext-devel
BuildRequires:  glibc-devel
BuildRequires:  libstdc++-devel
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  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
%patch3 -p1


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

openSUSE Build Service is sponsored by