]> git.pld-linux.org Git - packages/kf5-qqc2-desktop-style.git/blame - kf5-qqc2-desktop-style.spec
- updated to 5.116.0
[packages/kf5-qqc2-desktop-style.git] / kf5-qqc2-desktop-style.spec
CommitLineData
86754d77
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
cd4ca342 4%define kdeframever 5.116
115893de 5%define qtver 5.15.2
f6edf48d
WF
6%define kfname qqc2-desktop-style
7
8Summary: QQC2StyleBridge
9Name: kf5-%{kfname}
cd4ca342 10Version: 5.116.0
133cd662 11Release: 1
f6edf48d
WF
12License: LGPL v2.1+
13Group: X11/Libraries
133cd662 14Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
cd4ca342 15# Source0-md5: 7baba3420de2431c4290d4803a437b80
f6edf48d 16URL: http://www.kde.org/
133cd662
WF
17BuildRequires: Qt5Core-devel >= %{qtver}
18BuildRequires: Qt5Quick-controls2-devel >= %{qtver}
19BuildRequires: Qt5Test-devel >= %{qtver}
20BuildRequires: Qt5Widgets-devel >= %{qtver}
b88539f4 21BuildRequires: cmake >= 3.16
f7ede311 22BuildRequires: kf5-extra-cmake-modules >= %{version}
a84cf6a5 23BuildRequires: kf5-kconfig-devel >= %{version}
133cd662 24BuildRequires: kf5-kirigami2-devel >= %{version}
f7ede311 25BuildRequires: ninja
f6edf48d
WF
26BuildRequires: rpmbuild(macros) >= 1.164
27BuildRequires: tar >= 1:1.22
28BuildRequires: xz
29BuildRequires: zlib-devel
30Requires: kf5-dirs
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
133cd662 33%define qt5dir %{_libdir}/qt5
f6edf48d
WF
34
35%description
36This is a style for QtQuickControls 2 that uses QWidget's QStyle for
37painting, making possible to achieve an higher deree of consistency
38between QWidget-based and QML-based apps. NOTE: the application must
39be a QApplication rather than a QGuiApplication instance in order for
40this style to be used
41
42%package devel
43Summary: Header files for %{kfname} development
44Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
45Group: X11/Development/Libraries
46Requires: %{name} = %{version}-%{release}
47
48%description devel
49Header files for %{kfname} development.
50
51%description devel -l pl.UTF-8
52Pliki nagłówkowe dla programistów używających %{kfname}.
53
54%prep
55%setup -q -n %{kfname}-%{version}
56
57%build
b88539f4
WF
58%cmake -B build \
59 -G Ninja \
86754d77 60 %{!?with_tests:-DBUILD_TESTING=OFF} \
b88539f4
WF
61 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
62
63%ninja_build -C build
f6edf48d 64
86754d77 65%if %{with tests}
b88539f4 66%ninja_build -C build test
86754d77
WF
67%endif
68
69
f6edf48d
WF
70%install
71rm -rf $RPM_BUILD_ROOT
f7ede311 72%ninja_install -C build
f6edf48d
WF
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
78%defattr(644,root,root,755)
133cd662
WF
79%dir %{_libdir}/qt5/plugins/kf5/kirigami
80%{_libdir}/qt5/plugins/kf5/kirigami/org.kde.desktop.so
81%{_libdir}/qt5/qml/QtQuick/Controls.2/org.kde.desktop
82%{_libdir}/qt5/qml/org/kde/qqc2desktopstyle
f6edf48d
WF
83
84%files devel
85%defattr(644,root,root,755)
133cd662
WF
86%{_libdir}/cmake/KF5QQC2DeskopStyle
87%{_libdir}/cmake/KF5QQC2DesktopStyle
This page took 0.561399 seconds and 4 git commands to generate.