194 lines
5.6 KiB
RPMSpec
194 lines
5.6 KiB
RPMSpec
|
|
# uncomment to enable bootstrap mode
|
|
%global bootstrap 1
|
|
|
|
%if !0%{?bootstrap}
|
|
%global tests 1
|
|
%endif
|
|
|
|
Name: akregator
|
|
Summary: Feed Reader
|
|
Version: 17.04.3
|
|
Release: 1%{?dist}
|
|
|
|
# code (generally) GPLv2, docs GFDL
|
|
License: GPLv2 and GFDL
|
|
URL: https://www.kde.org/applications/internet/akregator/
|
|
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
%if %{revision} >= 50
|
|
%global stable unstable
|
|
%else
|
|
%global stable stable
|
|
%endif
|
|
Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz
|
|
|
|
# handled by qt5-srpm-macros, which defines %%qt5_qtwebengine_arches
|
|
%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}}
|
|
|
|
BuildRequires: boost-devel
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: gettext
|
|
BuildRequires: libappstream-glib
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: cmake(Qt5PrintSupport)
|
|
BuildRequires: cmake(Qt5Test)
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
BuildRequires: cmake(Qt5WebEngine)
|
|
BuildRequires: cmake(Qt5WebEngineWidgets)
|
|
|
|
BuildRequires: cmake(Grantlee5)
|
|
|
|
# kf5
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: kf5-rpm-macros
|
|
BuildRequires: cmake(KF5Crash)
|
|
BuildRequires: cmake(KF5DocTools)
|
|
BuildRequires: cmake(KF5KCMUtils)
|
|
BuildRequires: cmake(KF5NotifyConfig)
|
|
BuildRequires: cmake(KF5Parts)
|
|
BuildRequires: cmake(KF5TextEditor)
|
|
BuildRequires: cmake(KF5XmlGui)
|
|
BuildRequires: cmake(KF5IconThemes)
|
|
BuildRequires: cmake(KF5Notifications)
|
|
BuildRequires: cmake(KF5WindowSystem)
|
|
|
|
# kde-apps
|
|
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
|
BuildRequires: kf5-akonadi-mime-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-grantleetheme-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-kontactinterface-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-kpimtextedit-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-libkdepim-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-libkleo-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-messagelib-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-pimcommon-devel >= %{majmin_ver}
|
|
BuildRequires: kf5-syndication-devel >= %{majmin_ver}
|
|
|
|
%if 0%{?tests}
|
|
BuildRequires: dbus-x11
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
%endif
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
%description
|
|
Akregator is a news feed reader. It enables you to follow news sites,
|
|
blogs and other RSS/Atom-enabled websites without the need to manually
|
|
check for updates using a web browser.
|
|
|
|
%package libs
|
|
Summary: Runtime libraries for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
%description libs
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
%build
|
|
mkdir %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%{cmake_kf5} .. \
|
|
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
|
popd
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
%find_lang %{name} --all-name --with-html
|
|
|
|
## unpackaged files
|
|
rm -fv %{buildroot}%{_kf5_libdir}/libakregatorinterfaces.so
|
|
|
|
|
|
%check
|
|
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop
|
|
appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/org.kde.%{name}.appdata.xml
|
|
%if 0%{?tests}
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
xvfb-run -a \
|
|
dbus-launch --exit-with-session \
|
|
make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
|
|
%endif
|
|
|
|
|
|
%post
|
|
touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
%posttrans
|
|
gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null ||:
|
|
update-desktop-database -q &> /dev/null ||:
|
|
|
|
%postun
|
|
if [ $1 -eq 0 ] ; then
|
|
touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null ||:
|
|
gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null ||:
|
|
update-desktop-database -q &> /dev/null ||:
|
|
fi
|
|
|
|
%files -f %{name}.lang
|
|
%license COPYING*
|
|
%{_kf5_sysconfdir}/xdg/akregator.*
|
|
%{_kf5_bindir}/akregatorstorageexporter
|
|
%{_kf5_bindir}/akregator
|
|
%{_kf5_datadir}/kservices5/akregator_*.desktop
|
|
%{_kf5_datadir}/kservices5/feed.protocol
|
|
%{_kf5_datadir}/kservicetypes5/akregator_plugin.desktop
|
|
%{_kf5_datadir}/config.kcfg/akregator.kcfg
|
|
%{_kf5_datadir}/appdata/org.kde.akregator.appdata.xml
|
|
%{_kf5_datadir}/applications/org.kde.akregator.desktop
|
|
%{_kf5_datadir}/icons/hicolor/*/apps/akregator.*
|
|
%{_kf5_datadir}/icons/hicolor/*/apps/akregator_empty.png
|
|
%{_kf5_datadir}/akregator/
|
|
%{_kf5_datadir}/kconf_update/akregator-15.08-kickoff.sh
|
|
%{_kf5_datadir}/kconf_update/akregator.upd
|
|
%{_kf5_datadir}/messageviewer/about/default/introduction_akregator.html
|
|
%{_datadir}/dbus-1/interfaces/org.kde.akregator.part.xml
|
|
# Kontact integration
|
|
%{_kf5_datadir}/kservices5/kontact/akregatorplugin.desktop
|
|
%{_kf5_datadir}/kontact/ksettingsdialog/akregator.setdlg
|
|
#{_kf5_docdir}/HTML/en/akregator/
|
|
%{_kf5_datadir}/knotifications5/akregator.notifyrc
|
|
%{_kf5_datadir}/kxmlgui5/akregator/
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%files libs
|
|
%{_kf5_libdir}/libakregatorinterfaces.so.*
|
|
%{_kf5_libdir}/libakregatorprivate.so.*
|
|
%{_kf5_qtplugindir}/akregatorpart.so
|
|
%{_kf5_qtplugindir}/akregator_*.so
|
|
# Kontact integration
|
|
%{_kf5_qtplugindir}/kontact_akregatorplugin.so
|
|
|
|
|
|
%changelog
|
|
* Fri Jul 28 2017 Rex Dieter <rdieter@fedoraproject.org> - 17.04.3-1
|
|
- 17.04.3
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 17.04.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Thu Jun 15 2017 Rex Dieter <rdieter@fedoraproject.org> - 17.04.2-1
|
|
- 17.04.2
|
|
|
|
* Mon May 15 2017 Rex Dieter <rdieter@fedoraproject.org> - 17.04.1-1
|
|
- 17.04.1
|
|
|
|
* Thu Mar 09 2017 Rex Dieter <rdieter@fedoraproject.org> - 16.12.3-1
|
|
- 16.12.3
|
|
|
|
* Thu Feb 09 2017 Rex Dieter <rdieter@fedoraproject.org> - 16.12.2-1
|
|
- 16.12.2
|
|
|
|
* Mon Jan 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 16.12.1-1
|
|
- akregator-16.12.1
|
|
|