File snownews.spec of Package snownews
#
# spec file for package snownews
#
# 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/
#
# norootforbuild
Name: snownews
Version: 1.5.11
Release: 0
Summary: Lightweight Console RSS Reader
Source: http://kiza.kcore.de/software/snownews/download/snownews-%{version}.tar.bz2
Patch1: snownews-cflags.patch
Patch2: snownews-dont_strip.patch
Source1: snownews.desktop
Url: http://kiza.kcore.de/software/snownews/
Group: Productivity/Networking/Web/Frontends
License: GPL-2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc glibc-devel libxml2-devel ncurses-devel zlib-devel
BuildRequires: gettext gettext-devel make perl
BuildRequires: autoconf automake libtool update-desktop-files
%description
Snownews is a text mode RSS/RDF newsreader. It supports all versions of RSS
natively, and other feed formats via plugins. It depends on ncurses and uses
libxml2 for XML parsing.
Authors:
--------
Oliver Feiler <kiza@kcore.de>
%prep
%setup -q
%patch1
%patch2
%build
# not autoconf:
CFLAGS="%{optflags} -fno-strict-aliasing -g" \
./configure --prefix="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Network WebBrowser
echo -n > manfiles.lang
for f in %{buildroot}%{_mandir}/*/man1/*.1; do
file=${f##*/}
ff=${f%%/man1/*.1}
l=${ff##*/}
echo "%lang(${l}) %doc %{_mandir}/${l}/man1/${file}.gz" >> manfiles.lang
done
%find_lang snownews
echo '%doc %{_mandir}/nl' >> snownews.lang
echo '%doc %{_mandir}/ru_*' >> snownews.lang
cat manfiles.lang >> snownews.lang
%clean
%__rm -rf "%{buildroot}"
%files -f snownews.lang
%defattr(-,root,root)
%doc AUTHOR Changelog COPYING CREDITS README*
%{_bindir}/snownews
%{_bindir}/opml2snow
%{_bindir}/snow2opml
%doc %{_mandir}/man1/snownews.1*
%doc %{_mandir}/man1/opml2snow.1*
%doc %{_mandir}/man1/snownews.1*
%{_datadir}/applications/%{name}.desktop
%changelog