init package
This commit is contained in:
parent
3356a2b334
commit
33732bc058
87
kf5-kidletime.spec
Normal file
87
kf5-kidletime.spec
Normal file
@ -0,0 +1,87 @@
|
||||
%global framework kidletime
|
||||
|
||||
Name: kf5-%{framework}
|
||||
Version: 5.55.0
|
||||
Release: 1%{?dist}
|
||||
Summary: KDE Frameworks 5 Tier 1 integration module for idle time detection
|
||||
|
||||
License: GPLv2+ and LGPLv2+
|
||||
URL: https://cgit.kde.org/%{framework}.git
|
||||
|
||||
%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
|
||||
|
||||
# filter plugin provides
|
||||
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
|
||||
|
||||
BuildRequires: extra-cmake-modules >= %{majmin}
|
||||
BuildRequires: kf5-rpm-macros >= %{majmin}
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qtx11extras-devel
|
||||
|
||||
BuildRequires: pkgconfig(xext)
|
||||
BuildRequires: pkgconfig(x11-xcb)
|
||||
BuildRequires: pkgconfig(xcb)
|
||||
BuildRequires: pkgconfig(xcb-sync)
|
||||
|
||||
BuildRequires: pkgconfig(xscrnsaver)
|
||||
|
||||
Requires: kf5-filesystem >= %{majmin}
|
||||
|
||||
%description
|
||||
KDE Frameworks 5 Tier 1 integration module for idle time detection.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: qt5-qtbase-devel
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{framework}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake_kf5} ..
|
||||
popd
|
||||
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license COPYING*
|
||||
%{_kf5_sysconfdir}/xdg/%{framework}.*
|
||||
%{_kf5_libdir}/libKF5IdleTime.so.*
|
||||
%dir %{_kf5_plugindir}/org.kde.kidletime.platforms/
|
||||
%{_kf5_plugindir}/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin0.so
|
||||
%{_kf5_plugindir}/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin1.so
|
||||
|
||||
%files devel
|
||||
%{_kf5_includedir}/kidletime_version.h
|
||||
%{_kf5_includedir}/KIdleTime/
|
||||
%{_kf5_libdir}/libKF5IdleTime.so
|
||||
%{_kf5_libdir}/cmake/KF5IdleTime/
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_KIdleTime.pri
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 23 2020 wangmian<wangmian@kylinos.cn> - 5.55.0-1
|
||||
- Init kf5-kidletime project
|
||||
BIN
kidletime-5.55.0.tar.xz
Normal file
BIN
kidletime-5.55.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user