File newsbeuter.spec of Package newsbeuter

#
# spec file for package newsbeuter
#
# Copyright (c) 2015 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.9
Release:        0
Summary:        RSS/Atom Feed Reader for Text Terminals
License:        MIT
Group:          Productivity/Networking/Web/Browsers
Source:         http://www.newsbeuter.org/downloads/newsbeuter-%{version}.tar.gz
# pbleser: introduce OPTFLAGS make variable, instead of hard-coded -ggdb
Patch2:         newsbeuter-makefile.patch
# PATCH-FIX-UPSTREAM newsbeuter-ncurses6.patch zaitor@opensuse.org -- Fix build with ncurses 6 - patch taken from Fedora
Patch3:         newsbeuter-ncurses6.patch
# PATCH-FIX-UPSTREAM bmwiedemann -- https://github.com/akrennmair/newsbeuter/pull/550
Patch4:         reproducible.patch
# PATCH-FIX-UPSTREAM mvetter -- https://github.com/akrennmair/newsbeuter/commit/96e9506ae9e252c548665152d1b8968297128307
Patch5:         newsbeuter-2.9-CVE-2017-12904.patch
# PATCH-FIX-UPSTREAM mvetter -- https://github.com/akrennmair/newsbeuter/commit/a21139043efb3b875f3d76cddf6bf90f5cf7642c
Patch6:         newsbeuter-2.9_json-c_is_error.patch
Url:            http://www.newsbeuter.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libstfl-devel
BuildRequires:  libxml2-devel
BuildRequires:  zlib-devel
BuildRequires:  sqlite3-devel
BuildRequires:  libcurl-devel
BuildRequires:  libopenssl-devel
BuildRequires:  gcc-c++
BuildRequires:  gettext-devel
BuildRequires:  glibc-devel
BuildRequires:  libjson-c-devel
BuildRequires:  libstdc++-devel
BuildRequires:  perl
BuildRequires:  pkgconfig
Recommends:     lynx
Recommends:     %{name}-lang

%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.

%lang_package

%prep
%setup -q
%patch2
%if 0%{?suse_version} > 1320
%patch3 -p1
%endif
%patch4 -p1
%patch5 -p1
%patch6 -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

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

%files lang -f newsbeuter.lang

%changelog
openSUSE Build Service is sponsored by