2020-07-23 11:25:27 +08:00
|
|
|
|
%global base_name libkscreen
|
|
|
|
|
|
|
|
|
|
|
|
Name: libkscreen-qt5
|
|
|
|
|
|
Summary: KDE display configuration library
|
2023-08-04 14:33:13 +08:00
|
|
|
|
Version: 5.27.6
|
2023-08-16 17:07:12 +08:00
|
|
|
|
Release: 2
|
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
|
|
|
|
|
2023-08-04 14:33:13 +08:00
|
|
|
|
%global majmin %majmin_ver_kf5
|
|
|
|
|
|
%global stable %stable_kf5
|
2022-04-12 14:38:30 +08:00
|
|
|
|
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{base_name}-%{version}.tar.xz
|
2023-08-16 17:07:12 +08:00
|
|
|
|
Patch01: 0001-fix-build-error-of-5.27.6.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
|
2022-12-13 11:25:35 +08:00
|
|
|
|
BuildRequires: kf5-kconfig-devel
|
2023-08-04 14:33:13 +08:00
|
|
|
|
BuildRequires: qt5-qtbase-private-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
|
2023-08-16 17:07:12 +08:00
|
|
|
|
%autosetup -n %{base_name}-%{version} -p1
|
2022-04-12 14:38:30 +08:00
|
|
|
|
|
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}
|
|
|
|
|
|
|
2023-08-04 14:33:13 +08:00
|
|
|
|
%find_lang_kf5 libkscreen5_qt
|
2020-07-23 11:25:27 +08:00
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
2023-08-04 14:33:13 +08:00
|
|
|
|
%files -f libkscreen5_qt.lang
|
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.*
|
2023-08-04 14:33:13 +08:00
|
|
|
|
%{_kf5_libdir}/libKF5Screen.so.8*
|
|
|
|
|
|
%{_kf5_libdir}/libKF5ScreenDpms.so.5.*
|
|
|
|
|
|
%{_kf5_libdir}/libKF5ScreenDpms.so.8*
|
2020-07-23 11:25:27 +08:00
|
|
|
|
%{_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
|
2023-08-04 14:33:13 +08:00
|
|
|
|
%{_kf5_datadir}/zsh/site-functions/_kscreen-doctor
|
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
|
2023-08-04 14:33:13 +08:00
|
|
|
|
%{_kf5_libdir}/libKF5ScreenDpms.so
|
2020-07-23 11:25:27 +08:00
|
|
|
|
%{_kf5_libdir}/cmake/KF5Screen/
|
|
|
|
|
|
%{_libdir}/pkgconfig/kscreen2.pc
|
|
|
|
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KScreen.pri
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-08-16 17:07:12 +08:00
|
|
|
|
* Tue Aug 15 2023 peijiankang<peijiankang@kylinos.cn> - 5.27.6-2
|
|
|
|
|
|
- add 0001-fix-build-error-of-5.27.6.patch
|
|
|
|
|
|
|
2023-08-04 14:33:13 +08:00
|
|
|
|
* Fri Aug 04 2023 yajun<yajun@kylinos.cn> - 5.27.6-1
|
|
|
|
|
|
- update to upstream version 5.27.6
|
|
|
|
|
|
|
2022-12-13 11:25:35 +08:00
|
|
|
|
* Tue Dec 13 2022 lijian <lijian2@kylinos.cn> - 5.26.4-1
|
|
|
|
|
|
- update to upstream version 5.26.4
|
2022-10-09 23:03:07 -04:00
|
|
|
|
|
|
|
|
|
|
* Mon Oct 10 2022 lvfei <lvfei@kylinos.cn> - 5.25.2-2
|
2022-12-13 11:25:35 +08:00
|
|
|
|
- remove patch:libkscreen-5.6.4-rhel-nowayland.patch
|
|
|
|
|
|
- It is required by rhel and rhel<=7
|
2022-10-09 23:03:07 -04:00
|
|
|
|
|
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
|