- update URL
- own %_kf5_datadir/kpackage/
- support bootstrap, add %check
epel9
Rex Dieter 9 years ago
parent 4aa0b1b21d
commit 71d90e0953

@ -1,4 +1,11 @@
%define framework kpackage
%global framework kpackage
# uncomment to enable bootstrap mode
#global bootstrap 1
%if !0%{?bootstrap}
%global tests 1
%endif
Name: kf5-%{framework}
Version: 5.21.0
@ -6,7 +13,7 @@ Release: 1%{?dist}
Summary: KDE Frameworks 5 Tier 2 library to load and install packages as plugins
License: LGPLv2+
URL: https://projects.kde.org/kpackage
URL: https://quickgit.kde.org/?p=%{framework}.git
%global versiondir %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3)
@ -25,6 +32,11 @@ BuildRequires: kf5-kdoctools-devel >= %{version}
BuildRequires: kf5-ki18n-devel >= %{version}
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: qt5-qtbase-devel
%if 0%{?tests}
BuildRequires: dbus-x11
BuildRequires: time
BuildRequires: xorg-x11-server-Xvfb
%endif
Requires: kf5-filesystem >= %{version}
@ -42,13 +54,14 @@ developing applications that use %{name}.
%prep
%setup -q -n %{framework}-%{version}
%autosetup -n %{framework}-%{version} -p1
%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}
@ -59,8 +72,19 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang kpackage5_qt --with-qt --with-man --all-name
# create/own plugindir
# create/own dirs
mkdir -p %{buildroot}%{_kf5_qtplugindir}/kpackage/packagestructure/
mkdir -p %{buildroot}%{_kf5_datadir}/kpackage/
%check
%if 0%{?tests}
export CTEST_OUTPUT_ON_FAILURE=1
xvfb-run -a \
dbus-launch --exit-with-session \
time \
make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%endif
%post -p /sbin/ldconfig
@ -71,9 +95,10 @@ mkdir -p %{buildroot}%{_kf5_qtplugindir}/kpackage/packagestructure/
%license COPYING.LIB
%{_kf5_libdir}/libKF5Package.so.*
%{_kf5_qtplugindir}/kpackage/
%{_kf5_bindir}/kpackagetool5
%{_kf5_datadir}/kpackage/
%{_kf5_datadir}/kservicetypes5/kpackage-packagestructure.desktop
%{_mandir}/man1/kpackagetool5.1.gz
%{_kf5_bindir}/kpackagetool5
%{_mandir}/man1/kpackagetool5.1*
%files devel
%{_kf5_includedir}/kpackage_version.h
@ -83,6 +108,11 @@ mkdir -p %{buildroot}%{_kf5_qtplugindir}/kpackage/packagestructure/
%changelog
* Sat Apr 30 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.21.0-2
- update URL
- own %%_kf5_datadir/kpackage/
- support bootstrap, add %%check
* Mon Apr 04 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.21.0-1
- KDE Frameworks 5.21.0

Loading…
Cancel
Save