]>
Commit | Line | Data |
---|---|---|
2867734f WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
edbdb667 | 4 | %define kdeframever 5.97 |
706ab058 | 5 | %define qtver 5.15.2 |
405f5364 WF |
6 | %define kfname breeze-icons |
7 | ||
8 | Summary: breeze icons | |
9 | Name: kf5-%{kfname} | |
edbdb667 | 10 | Version: 5.97.0 |
84657f34 | 11 | Release: 1 |
405f5364 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
c32e56ca | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
edbdb667 | 15 | # Source0-md5: ad6ca5a1b4bcd4613fe1095b2db58a97 |
405f5364 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Test-devel >= %{qtver} | |
19 | BuildRequires: cmake >= 2.8.12 | |
20 | BuildRequires: gettext-devel | |
46ca9686 WF |
21 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
22 | BuildRequires: ninja | |
405f5364 WF |
23 | BuildRequires: pkgconfig |
24 | BuildRequires: qt5-linguist >= %{qtver} | |
25 | BuildRequires: rpmbuild(macros) >= 1.164 | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
55c3e175 | 28 | Requires: kf5-dirs |
4624432e | 29 | Obsoletes: breeze-icon-theme |
405f5364 WF |
30 | BuildArch: noarch |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %define qt5dir %{_libdir}/qt5 | |
34 | ||
35 | %description | |
36 | Breeze-icons is a freedesktop.org compatible icon theme. | |
37 | ||
38 | %prep | |
39 | %setup -q -n %{kfname}-%{version} | |
40 | ||
41 | %build | |
42 | install -d build | |
43 | cd build | |
46ca9686 | 44 | %cmake -G Ninja \ |
2867734f | 45 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
405f5364 WF |
46 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
47 | ../ | |
46ca9686 | 48 | %ninja_build |
405f5364 | 49 | |
2867734f WF |
50 | %if %{with tests} |
51 | ctest | |
52 | %endif | |
53 | ||
54 | ||
405f5364 WF |
55 | %install |
56 | rm -rf $RPM_BUILD_ROOT | |
46ca9686 | 57 | %ninja_install -C build |
405f5364 WF |
58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
ef373eb9 | 64 | %{_iconsdir}/breeze |
4624432e | 65 | %{_iconsdir}/breeze-dark |