98 lines
2.5 KiB
RPMSpec
98 lines
2.5 KiB
RPMSpec
|
|
%global base_name libkscreen
|
|||
|
|
|
|||
|
|
Name: libkscreen-qt5
|
|||
|
|
Summary: KDE display configuration library
|
|||
|
|
Version: 5.15.5
|
|||
|
|
Release: 1%{?dist}
|
|||
|
|
|
|||
|
|
License: GPLv2+
|
|||
|
|
URL: https://cgit.kde.org/%{base_name}.git
|
|||
|
|
|
|||
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|||
|
|
%if %{revision} >= 50
|
|||
|
|
%global stable unstable
|
|||
|
|
%else
|
|||
|
|
%global stable stable
|
|||
|
|
%endif
|
|||
|
|
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{base_name}-%{version}.tar.xz
|
|||
|
|
# Patch1: libkscreen-5.6.4-rhel-nowayland.patch
|
|||
|
|
|
|||
|
|
# filter plugin provides
|
|||
|
|
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
|
|||
|
|
|
|||
|
|
BuildRequires: extra-cmake-modules
|
|||
|
|
BuildRequires: kf5-rpm-macros
|
|||
|
|
BuildRequires: kf5-kwayland-devel >= 5.22
|
|||
|
|
BuildRequires: libX11-devel
|
|||
|
|
BuildRequires: libxcb-devel
|
|||
|
|
BuildRequires: libXrandr-devel
|
|||
|
|
BuildRequires: qt5-qtbase-devel
|
|||
|
|
BuildRequires: qt5-qtx11extras-devel
|
|||
|
|
|
|||
|
|
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}
|
|||
|
|
# %if 0%{?rhel}
|
|||
|
|
# %patch1 -p1 -b .nowayland
|
|||
|
|
# %endif
|
|||
|
|
|
|||
|
|
|
|||
|
|
%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
|
|||
|
|
%license COPYING
|
|||
|
|
%{_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
|
|||
|
|
%{_sysconfdir}/xdg/libkscreen.categories
|
|||
|
|
|
|||
|
|
%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
|
|||
|
|
* Thu Jul 23 2020 Zhao Yang <yangzhao1@kylinos.cn> - 5.15.5-1
|
|||
|
|
- Initial release for OpenEuler
|