2020-07-23 11:25:27 +08:00
|
|
|
|
%global base_name libkscreen
|
|
|
|
|
|
|
|
|
|
|
|
Name: libkscreen-qt5
|
|
|
|
|
|
Summary: KDE display configuration library
|
2022-07-05 17:50:15 +08:00
|
|
|
|
Version: 5.25.2
|
2022-02-17 01:57:55 +08:00
|
|
|
|
Release: 1
|
2020-07-23 11:25:27 +08:00
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
2022-04-12 14:38:30 +08:00
|
|
|
|
URL: https://invent.kde.org/plasma/%{base_name}
|
2020-07-23 11:25:27 +08:00
|
|
|
|
|
|
|
|
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
|
|
|
|
%if %{revision} >= 50
|
|
|
|
|
|
%global stable unstable
|
|
|
|
|
|
%else
|
|
|
|
|
|
%global stable stable
|
|
|
|
|
|
%endif
|
2022-04-12 14:38:30 +08:00
|
|
|
|
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{base_name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
Patch1: libkscreen-5.6.4-rhel-nowayland.patch
|
2020-07-23 11:25:27 +08:00
|
|
|
|
|
|
|
|
|
|
# filter plugin provides
|
|
|
|
|
|
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
|
|
BuildRequires: kf5-rpm-macros
|
2022-04-12 14:38:30 +08:00
|
|
|
|
BuildRequires: systemd
|
2020-07-23 11:25:27 +08:00
|
|
|
|
BuildRequires: kf5-kwayland-devel >= 5.22
|
|
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
|
|
BuildRequires: libxcb-devel
|
|
|
|
|
|
BuildRequires: libXrandr-devel
|
2022-04-12 14:38:30 +08:00
|
|
|
|
BuildRequires: plasma-wayland-protocols-devel
|
2020-07-23 11:25:27 +08:00
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
2022-04-12 14:38:30 +08:00
|
|
|
|
BuildRequires: qt5-qtwayland-devel
|
2020-07-23 11:25:27 +08:00
|
|
|
|
BuildRequires: qt5-qtx11extras-devel
|
2022-04-12 14:38:30 +08:00
|
|
|
|
BuildRequires: wayland-devel
|
2020-07-23 11:25:27 +08:00
|
|
|
|
|
|
|
|
|
|
Requires: kf5-filesystem
|
|
|
|
|
|
|
|
|
|
|
|
Provides: kf5-kscreen%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
Provides: kf5-kscreen = %{version}-%{release}
|
|
|
|
|
|
Obsoletes: kf5-kscreen <= 1:5.2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
LibKScreen is a library that provides access to current configuration
|
|
|
|
|
|
of connected displays and ways to change the configuration.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
Provides: kf5-kscreen-devel = %{version}-%{release}
|
|
|
|
|
|
Provides: kf5-kscreen-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
Obsoletes: kf5-kscreen-devel <= 1:5.2.0
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
%setup -q -n %{base_name}-%{version}
|
|
|
|
|
|
|
2022-04-12 14:38:30 +08:00
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
|
%patch1 -p1 -b .nowayland
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
2020-07-23 11:25:27 +08:00
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
|
|
pushd %{_target_platform}
|
|
|
|
|
|
%{cmake_kf5} ..
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2022-04-12 14:38:30 +08:00
|
|
|
|
%license LICENSES/*
|
2020-07-23 11:25:27 +08:00
|
|
|
|
%{_kf5_bindir}/kscreen-doctor
|
|
|
|
|
|
%{_kf5_libexecdir}/kscreen_backend_launcher
|
|
|
|
|
|
%{_kf5_libdir}/libKF5Screen.so.5.*
|
|
|
|
|
|
%{_kf5_libdir}/libKF5Screen.so.7*
|
|
|
|
|
|
%{_kf5_plugindir}/kscreen/
|
|
|
|
|
|
%{_datadir}/dbus-1/services/org.kde.kscreen.service
|
2022-02-17 01:57:55 +08:00
|
|
|
|
%{_kf5_datadir}/qlogging-categories5/libkscreen.categories
|
2022-04-12 14:38:30 +08:00
|
|
|
|
%{_userunitdir}/plasma-kscreen.service
|
2020-07-23 11:25:27 +08:00
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
%{_kf5_includedir}/KScreen/
|
|
|
|
|
|
%{_kf5_includedir}/kscreen_version.h
|
|
|
|
|
|
%{_kf5_libdir}/libKF5Screen.so
|
|
|
|
|
|
%{_kf5_libdir}/cmake/KF5Screen/
|
|
|
|
|
|
%{_libdir}/pkgconfig/kscreen2.pc
|
|
|
|
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KScreen.pri
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-07-05 17:50:15 +08:00
|
|
|
|
* Tue Jul 5 2022 peijiankang<peijiankang@kylinos.cn> - 5.25.2-1
|
|
|
|
|
|
- update to upstream version 5.25.2
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 12 2022 peijiankang<peijiankang@kylinos.cn> - 5.24.4-1
|
2022-04-12 14:38:30 +08:00
|
|
|
|
- update to upstream version 5.24.4
|
|
|
|
|
|
|
2022-07-05 17:50:15 +08:00
|
|
|
|
* Thu Feb 17 2022 peijiankang<peijiankang@kylinos.cn> - 5.20.90-1
|
2022-02-17 01:57:55 +08:00
|
|
|
|
- update to upstream version 5.20.90
|
|
|
|
|
|
|
2021-12-13 02:45:59 +00:00
|
|
|
|
* Mon Dec 13 2021 heyitao <heyitao@uniontech.com> - 5.15.5-2
|
|
|
|
|
|
- Remove the dist tag in the version.
|
|
|
|
|
|
|
2020-07-23 11:25:27 +08:00
|
|
|
|
* Thu Jul 23 2020 Zhao Yang <yangzhao1@kylinos.cn> - 5.15.5-1
|
|
|
|
|
|
- Initial release for OpenEuler
|