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 http://bugs.opensuse.org/
#


Name:           newsbeuter
Version:        2.4
Release:        0
Summary:        RSS/Atom Feed Reader for Text Terminals
License:        MIT
Group:          Productivity/Networking/Web/Browsers
# 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
# PATCH-FIX-UPSTREAM newsbeuter-gcc47.patch dimstar@opensuse.org -- Fix build with gcc 4.7
Patch3:         newsbeuter-gcc47.patch
Url:            http://www.newsbeuter.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libstfl-devel
BuildRequires:  libxml2-devel
BuildRequires:  zlib-devel
%if %suse_version >= 1100
BuildRequires:  sqlite3-devel
%else
BuildRequires:  sqlite-devel
%endif
%if %suse_version >= 1030
BuildRequires:  libcurl-devel
BuildRequires:  libopenssl-devel
%else
BuildRequires:  curl-devel
BuildRequires:  openssl-devel
%endif
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  gettext-devel
BuildRequires:  glibc-devel
BuildRequires:  libstdc++-devel
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  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
%patch3 -p1

%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
openSUSE Build Service is sponsored by