File liferea.spec of Package Liferea


Name:           liferea
Version:        1.15.9c
Release:        0
Summary:        Linux Feed Reader
License:        GPL-2.0-only
Group:          Productivity/Other
URL:            https://lzone.de/liferea/
Source0:        https://github.com/lwindolf/liferea/releases/download/v%{version}/%{name}-%{version}.tar.bz2
ExclusiveArch:  x86_64
BuildRequires:  appstream-glib
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  intltool >= 0.40.0
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(glib-2.0) >= 2.28.0
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4.0
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libpeas-1.0) >= 1.0.0
BuildRequires:  pkgconfig(libpeas-gtk-1.0) >= 1.0.0
BuildRequires:  pkgconfig(libsoup-3.0) >= 3.0.0
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6.27
BuildRequires:  pkgconfig(libxslt) >= 1.1.19
BuildRequires:  pkgconfig(pango) >= 1.4.0
BuildRequires:  pkgconfig(sqlite3) >= 3.7.0
BuildRequires:  pkgconfig(webkit2gtk-4.1)
Requires:       dbus-1 >= 0.30
Requires:       python3-cairo
Requires:       python3-gobject-Gdk

%description
Liferea is an abbreviation for Linux Feed Reader. It is a news
aggregator for online news feeds. It supports a number of different
feed formats including RSS/RDF, CDF, Atom, OCS, and OPML. There are
many other news readers available, but these others are not available
for Linux or require many extra libraries to be installed. Liferea
tries to fill this gap by creating a fast, easy-to-use, easy-to-install
news aggregator for GTK and GNOME.

%lang_package

%prep
%autosetup -p1

%build
%configure --disable-static
%make_build

%install
%make_install
%suse_update_desktop_file net.sourceforge.liferea X-SuSE-RSS-News
%find_lang %{name} %{?no_lang_C}
rm doc/Makefile*
rm doc/html/Makefile*

%fdupes %{buildroot}

appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.xml

%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%icon_theme_cache_post
%glib2_gsettings_schema_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%glib2_gsettings_schema_postun
%endif

%files
%license COPYING
%doc AUTHORS ChangeLog
%{_bindir}/liferea
%{_bindir}/liferea-add-feed
%{_datadir}/applications/net.sourceforge.liferea.desktop
%{_datadir}/dbus-1/services/net.sourceforge.liferea.service
%{_datadir}/%{name}/
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/net.sourceforge.liferea.appdata.xml
%{_datadir}/GConf/gsettings/liferea.convert
%{_datadir}/glib-2.0/schemas/net.sf.liferea.gschema.xml
%{_datadir}/icons/hicolor/*/*/*.*
%{_libdir}/%{name}/
%doc %{_mandir}{,/*}/man1/liferea.1*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by