!1 Init package
From: @misaka00251 Reviewed-by: @panchenbo Signed-off-by: @panchenbo
This commit is contained in:
commit
4881f090c0
BIN
qqc2-desktop-style-5.97.0.tar.xz
Normal file
BIN
qqc2-desktop-style-5.97.0.tar.xz
Normal file
Binary file not shown.
74
qqc2-desktop-style.spec
Normal file
74
qqc2-desktop-style.spec
Normal file
@ -0,0 +1,74 @@
|
||||
%global framework qqc2-desktop-style
|
||||
|
||||
Name: %{framework}
|
||||
Version: 5.97.0
|
||||
Release: 1
|
||||
Summary: QtQuickControls2 style for consistency between QWidget and QML apps
|
||||
License: (LGPLv3 or GPLv3) and LGPLv2+
|
||||
URL: https://invent.kde.org/frameworks/%{framework}
|
||||
|
||||
%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
|
||||
BuildRequires: extra-cmake-modules >= %{majmin}
|
||||
BuildRequires: kf5-rpm-macros
|
||||
BuildRequires: kf5-kirigami2-devel >= %{majmin}
|
||||
Requires: kf5-kirigami2%{?_isa} >= %{majmin}
|
||||
BuildRequires: kf5-kconfigwidgets-devel >= %{majmin}
|
||||
BuildRequires: kf5-kiconthemes-devel >= %{majmin}
|
||||
|
||||
BuildRequires: cmake(KF5Kirigami2)
|
||||
BuildRequires: cmake(KF5ConfigWidgets)
|
||||
BuildRequires: cmake(KF5IconThemes)
|
||||
|
||||
BuildRequires: pkgconfig(Qt5Gui)
|
||||
BuildRequires: pkgconfig(Qt5Quick)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
# Cmake need this
|
||||
BuildRequires: pkgconfig(Qt5X11Extras)
|
||||
|
||||
BuildRequires: qt5-qtquickcontrols2-devel
|
||||
Requires: qt5-qtquickcontrols2%{?_isa}
|
||||
|
||||
|
||||
%description
|
||||
This is a style for QtQuickControls 2 that uses QWidget's QStyle for
|
||||
painting, making possible to achieve an higher degree of consistency
|
||||
between QWidget-based and QML-based apps.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{framework}-%{version} -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}
|
||||
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSES/*.txt
|
||||
%dir %{_kf5_plugindir}/kirigami/
|
||||
%{_kf5_plugindir}/kirigami/org.kde.desktop.so
|
||||
%{_qt5_qmldir}/QtQuick/Controls.2/org.kde.desktop/
|
||||
%{_qt5_qmldir}/org/kde/qqc2desktopstyle/
|
||||
%{_kf5_libdir}/cmake/KF5QQC2DeskopStyle/
|
||||
%{_kf5_libdir}/cmake/KF5QQC2DesktopStyle/
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 5.97.0-1
|
||||
- Init package
|
||||
4
qqc2-desktop-style.yaml
Normal file
4
qqc2-desktop-style.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/qqc2-desktop-style
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user