]> git.pld-linux.org Git - packages/kf5-kguiaddons.git/blame - kf5-kguiaddons.spec
- updated to 5.98.0
[packages/kf5-kguiaddons.git] / kf5-kguiaddons.spec
CommitLineData
1894e6ab
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
5ea76f10 4%define kdeframever 5.98
a7a7c061 5%define qtver 5.15.2
db8cf9df 6%define kfname kguiaddons
59b7a5f5
WF
7
8Summary: Utilities for graphical user interfaces
db8cf9df 9Name: kf5-%{kfname}
5ea76f10
WF
10Version: 5.98.0
11Release: 1
59b7a5f5
WF
12License: LGPL v2.1+
13Group: X11/Libraries
d8e78e96 14Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
5ea76f10 15# Source0-md5: f6d58f99f68791cb7a3ec3f386707ba4
59b7a5f5 16URL: http://www.kde.org/
a7a7c061 17BuildRequires: Qt5Core-devel >= %{qtver}
db8cf9df
AM
18BuildRequires: Qt5Gui-devel >= %{qtver}
19BuildRequires: Qt5Test-devel >= %{qtver}
c3c53a09
JP
20BuildRequires: Qt5WaylandClient >= %{qtver}
21BuildRequires: Qt5WaylandClient-devel >= %{qtver}
db8cf9df 22BuildRequires: Qt5X11Extras-devel >= %{qtver}
a7a7c061 23BuildRequires: cmake >= 3.16
45547479 24BuildRequires: kf5-extra-cmake-modules >= %{version}
27ee5766 25BuildRequires: kf5-plasma-wayland-protocols-devel >= 1.7.0
c3c53a09 26BuildRequires: libxcb-devel
db48b781 27BuildRequires: ninja
59b7a5f5 28BuildRequires: pkgconfig
db8cf9df 29BuildRequires: qt5-linguist >= %{qtver}
bfae3def 30BuildRequires: rpmbuild(macros) >= 1.736
13edb4cb 31BuildRequires: tar >= 1:1.22
c3c53a09
JP
32BuildRequires: wayland-devel >= 1.9
33BuildRequires: xorg-lib-libX11-devel
34BuildRequires: xorg-proto-kbproto-devel
13edb4cb 35BuildRequires: xz
c3c53a09
JP
36Requires: Qt5Gui >= %{qtver}
37Requires: Qt5WaylandClient >= %{qtver}
38Requires: Qt5X11Extras >= %{qtver}
1130b8a9 39Requires: kf5-dirs
c3c53a09 40Requires: wayland >= 1.9
59b7a5f5
WF
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43%define qt5dir %{_libdir}/qt5
44
45%description
46The KDE GUI addons provide utilities for graphical user interfaces in
47the areas of colors, fonts, text, images, keyboard input.
48
49%package devel
db8cf9df
AM
50Summary: Header files for %{kfname} development
51Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
59b7a5f5
WF
52Group: X11/Development/Libraries
53Requires: %{name} = %{version}-%{release}
c3c53a09 54Requires: Qt5Gui-devel >= %{qtver}
a7a7c061 55Requires: cmake >= 3.16
59b7a5f5
WF
56
57%description devel
db8cf9df 58Header files for %{kfname} development.
59b7a5f5
WF
59
60%description devel -l pl.UTF-8
db8cf9df 61Pliki nagłówkowe dla programistów używających %{kfname}.
59b7a5f5
WF
62
63%prep
db8cf9df 64%setup -q -n %{kfname}-%{version}
59b7a5f5
WF
65
66%build
67install -d build
68cd build
db48b781 69%cmake -G Ninja \
1894e6ab 70 %{!?with_tests:-DBUILD_TESTING=OFF} \
db8cf9df 71 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
59b7a5f5 72 ../
db48b781 73%ninja_build
59b7a5f5 74
1894e6ab
WF
75%if %{with tests}
76ctest
77%endif
78
79
59b7a5f5
WF
80%install
81rm -rf $RPM_BUILD_ROOT
db48b781 82%ninja_install -C build
59b7a5f5
WF
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
89
90%files
91%defattr(644,root,root,755)
92%doc README.md
7916d07d 93%ghost %{_libdir}/libKF5GuiAddons.so.5
cbe8741c 94%attr(755,root,root) %{_libdir}/libKF5GuiAddons.so.*.*
827740c8 95%{_datadir}/qlogging-categories5/kguiaddons.categories
6e5489a1
WF
96%attr(755,root,root) %{_bindir}/kde-geo-uri-handler
97%{_desktopdir}/google-maps-geo-handler.desktop
98%{_desktopdir}/openstreetmap-geo-handler.desktop
99%{_desktopdir}/qwant-maps-geo-handler.desktop
100%{_desktopdir}/wheelmap-geo-handler.desktop
59b7a5f5
WF
101
102%files devel
103%defattr(644,root,root,755)
104%{_includedir}/KF5/KGuiAddons
59b7a5f5 105%{_libdir}/cmake/KF5GuiAddons
7916d07d 106%{_libdir}/libKF5GuiAddons.so
59b7a5f5 107%{qt5dir}/mkspecs/modules/qt_KGuiAddons.pri
This page took 0.244666 seconds and 4 git commands to generate.