]>
Commit | Line | Data |
---|---|---|
0d89103b WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4fec192e | 4 | %define kdeframever 5.104 |
3f57eaed | 5 | %define qtver 5.15.2 |
463297e7 WF |
6 | %define kfname oxygen-icons5 |
7 | ||
8 | Summary: oxygen icons | |
9 | Name: kf5-%{kfname} | |
4fec192e | 10 | Version: 5.104.0 |
50360055 | 11 | Release: 1 |
463297e7 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
959577ac | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
4fec192e | 15 | # Source0-md5: 5937b2eb7bbf7a31237a5cb0bcf61ee8 |
463297e7 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 | |
72eba925 WF |
21 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
22 | BuildRequires: ninja | |
463297e7 WF |
23 | BuildRequires: pkgconfig |
24 | BuildRequires: qt5-linguist >= %{qtver} | |
25 | BuildRequires: rpmbuild(macros) >= 1.164 | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
28 | BuildArch: noarch | |
3ac32c12 | 29 | Requires: kf5-dirs |
463297e7 WF |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %define qt5dir %{_libdir}/qt5 | |
33 | ||
34 | %description | |
35 | Oxygen-icons is a freedesktop.org compatible icon theme. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{kfname}-%{version} | |
39 | ||
40 | %build | |
41 | install -d build | |
42 | cd build | |
72eba925 | 43 | %cmake -G Ninja \ |
0d89103b | 44 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
463297e7 WF |
45 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
46 | ../ | |
72eba925 | 47 | %ninja_build |
463297e7 | 48 | |
0d89103b WF |
49 | %if %{with tests} |
50 | ctest | |
51 | %endif | |
52 | ||
53 | ||
463297e7 WF |
54 | %install |
55 | rm -rf $RPM_BUILD_ROOT | |
72eba925 | 56 | %ninja_install -C build |
463297e7 WF |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
ce0d334b | 63 | %{_iconsdir}/oxygen |