diff --git a/.gitignore b/.gitignore index e69de29..b79e3d9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/kactivities-stats-5.21.0.tar.xz diff --git a/kf5-kactivities-stats.spec b/kf5-kactivities-stats.spec new file mode 100644 index 0000000..d3c7290 --- /dev/null +++ b/kf5-kactivities-stats.spec @@ -0,0 +1,91 @@ +%global framework kactivities-stats + +Name: kf5-%{framework} +Summary: A KDE Frameworks 5 Tier 3 library for accessing the usage data collected by the activities system +Version: 5.21.0 +Release: 2%{?dist} + +# KDE e.V. may determine that future GPL versions are accepted +License: LGPLv2 or LGPLv3 +URL: https://quickgit.kde.org/?p=kactivities-stats.git + +%global versiondir %(echo %{version} | cut -d. -f1-2) +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz + +BuildRequires: boost-devel +BuildRequires: extra-cmake-modules >= %{version} +BuildRequires: kf5-kactivities-devel >= %{version} +BuildRequires: kf5-kconfig-devel >= %{version} +BuildRequires: kf5-rpm-macros +BuildRequires: pkgconfig + +Requires: kf5-filesystem + +%description +%{summary}. + +%package devel +Summary: Developer files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: qt5-qtbase-devel +%description devel +%{summary}. + + +%prep +%autosetup -n %{framework}-%{version} + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. \ + -DBUILD_TESTING=ON +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +# Currently includes no tests +%check +make test -C %{_target_platform} + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc MAINTAINER README.developers TODO +%license COPYING* +%{_kf5_libdir}/libKF5ActivitiesStats.so.* + +%files devel +%{_kf5_libdir}/libKF5ActivitiesStats.so +%{_kf5_includedir}/KActivitiesStats/ +%{_kf5_includedir}/kactivitiesstats_version.h +%{_kf5_libdir}/cmake/KF5ActivitiesStats/ +%{_kf5_libdir}/pkgconfig/libKActivitiesStats.pc +%{_qt5_archdatadir}/mkspecs/modules/qt_KActivitiesStats.pri + + +%changelog +* Sat Apr 16 2016 Rex Dieter - 5.21.0-2 +- add %%check section (mostly nothing right now) +- fix summary +- more %%doc's +- Requires: kf5-filesystem +- -devel: Requires: qt5-qtbase-devel + +* Mon Apr 04 2016 Rex Dieter - 5.21.0-1 +- kactivities-stats-5.21.0 + diff --git a/sources b/sources index e69de29..0402f38 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3698b95f2dae16a041445872607ccf0b kactivities-stats-5.21.0.tar.xz