Init package
This commit is contained in:
parent
30a1d07bb1
commit
077d808f5a
BIN
kactivities-stats-5.97.0.tar.xz
Normal file
BIN
kactivities-stats-5.97.0.tar.xz
Normal file
Binary file not shown.
81
kf5-kactivities-stats.spec
Normal file
81
kf5-kactivities-stats.spec
Normal file
@ -0,0 +1,81 @@
|
||||
%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.97.0
|
||||
Release: 1
|
||||
License: LGPLv2 or LGPLv3
|
||||
URL: https://invent.kde.org/frameworks/%{framework}
|
||||
|
||||
%global majmin %(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/%{majmin}/%{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 >= %{version}
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
BuildRequires: qt5-qtdeclarative-devel
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
|
||||
%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} -p1
|
||||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%cmake_kf5 .. \
|
||||
-DBUILD_TESTING=ON
|
||||
popd
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
|
||||
|
||||
# no tests
|
||||
%check
|
||||
%ctest ||:
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc MAINTAINER README.developers TODO
|
||||
%license LICENSES/*.txt
|
||||
%{_kf5_datadir}/qlogging-categories5/%{framework}.*
|
||||
%{_kf5_libdir}/libKF5ActivitiesStats.so.*
|
||||
|
||||
%files devel
|
||||
%{_kf5_libdir}/libKF5ActivitiesStats.so
|
||||
%{_kf5_includedir}/KActivitiesStats/
|
||||
%{_kf5_libdir}/cmake/KF5ActivitiesStats/
|
||||
%{_kf5_libdir}/pkgconfig/libKActivitiesStats.pc
|
||||
%{_qt5_archdatadir}/mkspecs/modules/qt_KActivitiesStats.pri
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 5.97.0-1
|
||||
- Init package
|
||||
4
kf5-kactivities-stats.yaml
Normal file
4
kf5-kactivities-stats.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/kactivities-stats
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user