diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | kscreen.spec | 100 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 102 insertions, 0 deletions
@@ -0,0 +1 @@ +/kscreen-5.25.5.tar.xz diff --git a/kscreen.spec b/kscreen.spec new file mode 100644 index 0000000..39a90c6 --- /dev/null +++ b/kscreen.spec @@ -0,0 +1,100 @@ +# filter plugin provides +%global __provides_exclude_from ^(%{_kf5_qtplugindir}/.*\\.so)$ + +Name: kscreen +Epoch: 1 +Version: 5.25.5 +Release: 1 +Summary: KDE Display Management software + +License: GPLv2 or GPLv3 +URL: https://invent.kde.org/plasma/%{name} + +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global majmin_ver %(echo %{version} | cut -d. -f1,2).50 +%global stable unstable +%else +%global majmin_ver %(echo %{version} | cut -d. -f1,2) +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtx11extras-devel +BuildRequires: qt5-qtdeclarative-devel +BuildRequires: qt5-qtsensors-devel + +BuildRequires: libkscreen-qt5-devel >= %{majmin_ver} +Requires: libkscreen-qt5%{?_isa} >= %{majmin_ver} + +BuildRequires: kf5-ki18n-devel +BuildRequires: kf5-kcoreaddons-devel +BuildRequires: kf5-kconfigwidgets-devel +BuildRequires: kf5-kdbusaddons-devel +BuildRequires: kf5-kxmlgui-devel +BuildRequires: kf5-kglobalaccel-devel +BuildRequires: cmake(KF5Declarative) +BuildRequires: cmake(KF5IconThemes) +BuildRequires: cmake(KF5Plasma) +BuildRequires: cmake(KF5KCMUtils) + +BuildRequires: pkgconfig(xcb-atom) +BuildRequires: pkgconfig(xi) + +Requires: qt5-qtgraphicaleffects + +%description +KCM and KDED modules for managing displays in KDE. + + +%prep +%autosetup -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd +%make_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang %{name} --with-kde --all-name + + +%files -f %{name}.lang +%license LICENSES +%{_bindir}/kscreen-console +%{_kf5_qtplugindir}/plasma/applets/plasma_applet_kscreen.so +%{_kf5_qtplugindir}/kcms/kcm_kscreen.so +%{_kf5_plugindir}/kded/kscreen.so +%{_datadir}/kservices5/plasma-applet-org.kde.kscreen.desktop +%{_datadir}/metainfo/org.kde.kscreen.appdata.xml +%{_datadir}/plasma/plasmoids/org.kde.kscreen/contents/ui/InhibitionHint.qml +%{_datadir}/plasma/plasmoids/org.kde.kscreen/contents/ui/PresentationModeItem.qml +%{_datadir}/plasma/plasmoids/org.kde.kscreen/contents/ui/ScreenLayoutSelection.qml +%{_datadir}/plasma/plasmoids/org.kde.kscreen/contents/ui/main.qml +%{_datadir}/plasma/plasmoids/org.kde.kscreen/metadata.desktop +%{_datadir}/plasma/plasmoids/org.kde.kscreen/metadata.json +%{_kf5_datadir}/kded_kscreen/qml/OsdSelector.qml +%{_kf5_datadir}/kservices5/kcm_kscreen.desktop +%{_kf5_datadir}/qlogging-categories5/kscreen.categories +%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/Orientation.qml +%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/Output.qml +%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/OutputIdentifier.qml +%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/OutputPanel.qml +%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/Panel.qml +%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/RotationButton.qml +%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/Screen.qml +%{_kf5_datadir}/kpackage/kcms/kcm_kscreen/contents/ui/main.qml + + +%changelog +* Fri Dec 16 2022 misaka00251 <liuxin@iscas.ac.cn> - 1:5.25.5-1 +- Init package @@ -0,0 +1 @@ +a31c714da72e799b7dfd36876a78992a kscreen-5.25.5.tar.xz |