|
|
|
@ -1,11 +1,20 @@
|
|
|
|
|
|
|
|
|
|
# uncomment to enable bootstrap mode
|
|
|
|
|
#global bootstrap 1
|
|
|
|
|
|
|
|
|
|
%if !0%{?bootstrap}
|
|
|
|
|
%global tests 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: dolphin
|
|
|
|
|
Summary: KDE File Manager
|
|
|
|
|
Version: 16.08.3
|
|
|
|
|
Version: 16.12.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: https://quickgit.kde.org/?p=%{name}.git
|
|
|
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
|
|
|
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
|
|
|
|
%if %{revision} >= 50
|
|
|
|
|
%global stable unstable
|
|
|
|
|
%else
|
|
|
|
@ -35,16 +44,16 @@ BuildRequires: kf5-kcompletion-devel
|
|
|
|
|
BuildRequires: kf5-ktexteditor-devel
|
|
|
|
|
BuildRequires: kf5-kwindowsystem-devel
|
|
|
|
|
BuildRequires: kf5-knotifications-devel
|
|
|
|
|
BuildRequires: kf5-kactivities-devel
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?bootstrap}
|
|
|
|
|
BuildRequires: kf5-kactivities-devel
|
|
|
|
|
BuildRequires: kf5-baloo-devel
|
|
|
|
|
BuildRequires: kf5-kfilemetadata-devel
|
|
|
|
|
BuildRequires: baloo-widgets-devel >= %{majmin_ver}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: phonon-qt5-devel
|
|
|
|
|
|
|
|
|
|
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
|
|
|
|
BuildRequires: baloo-widgets-devel >= %{majmin_ver}
|
|
|
|
|
|
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
@ -76,7 +85,8 @@ Requires: kf5-kio-devel%{?_isa}
|
|
|
|
|
%build
|
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
|
pushd %{_target_platform}
|
|
|
|
|
%{cmake_kf5} ..
|
|
|
|
|
%{cmake_kf5} .. \
|
|
|
|
|
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
@ -89,6 +99,13 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
%check
|
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/org.kde.%{name}.appdata.xml ||:
|
|
|
|
|
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop ||:
|
|
|
|
|
%if 0%{?tests}
|
|
|
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
|
|
#dbus-launch --exit-with-session \
|
|
|
|
|
xvfb-run -a \
|
|
|
|
|
make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
@ -136,6 +153,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Dec 26 2016 Rex Dieter <rdieter@math.unl.edu> - 16.12.0-1
|
|
|
|
|
- 16.12.0, support bootstrap, %%check: enable tests
|
|
|
|
|
|
|
|
|
|
* Wed Nov 30 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.08.3-1
|
|
|
|
|
- 16.08.3
|
|
|
|
|
|
|
|
|
|