]>
Commit | Line | Data |
---|---|---|
f95a7add WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
b4184212 | 4 | %define kdeframever 5.97 |
b9a7d868 | 5 | %define qtver 5.15.2 |
9c5a809c | 6 | %define kfname kiconthemes |
aa980ada WF |
7 | |
8 | Summary: Icon GUI utilities | |
9c5a809c | 9 | Name: kf5-%{kfname} |
b4184212 | 10 | Version: 5.97.0 |
0d1d543b | 11 | Release: 1 |
aa980ada WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
3c864f8c | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
b4184212 | 15 | # Source0-md5: 798e5c986dae8e2f1e83ab0868bf1fb8 |
aa980ada | 16 | URL: http://www.kde.org/ |
b9a7d868 | 17 | BuildRequires: Qt5Core-devel >= %{qtver} |
9c5a809c AM |
18 | BuildRequires: Qt5DBus-devel >= %{qtver} |
19 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
20 | BuildRequires: Qt5Svg-devel >= %{qtver} | |
21 | BuildRequires: Qt5Test-devel >= %{qtver} | |
22 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
b9a7d868 | 23 | BuildRequires: cmake >= 3.16 |
f64d3a3d | 24 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
b1bb8102 | 25 | BuildRequires: kf5-karchive-devel >= %{version} |
aa980ada WF |
26 | BuildRequires: kf5-kconfigwidgets-devel >= %{version} |
27 | BuildRequires: kf5-kcoreaddons-devel >= %{version} | |
aa980ada WF |
28 | BuildRequires: kf5-ki18n-devel >= %{version} |
29 | BuildRequires: kf5-kitemviews-devel >= %{version} | |
30 | BuildRequires: kf5-kwidgetsaddons-devel >= %{version} | |
10079855 | 31 | BuildRequires: ninja |
aa980ada | 32 | BuildRequires: pkgconfig |
9c5a809c | 33 | BuildRequires: qt5-linguist >= %{qtver} |
8dc9848c | 34 | BuildRequires: rpmbuild(macros) >= 1.736 |
ac64d46c ER |
35 | BuildRequires: tar >= 1:1.22 |
36 | BuildRequires: xz | |
b1bb8102 JP |
37 | Requires: Qt5DBus >= %{qtver} |
38 | Requires: Qt5Gui >= %{qtver} | |
39 | Requires: Qt5Svg >= %{qtver} | |
40 | Requires: Qt5Widgets >= %{qtver} | |
7af38856 | 41 | Requires: kf5-dirs |
b1bb8102 JP |
42 | Requires: kf5-karchive >= %{version} |
43 | Requires: kf5-kconfigwidgets >= %{version} | |
44 | Requires: kf5-kcoreaddons >= %{version} | |
45 | Requires: kf5-ki18n >= %{version} | |
46 | Requires: kf5-kitemviews >= %{version} | |
47 | Requires: kf5-kwidgetsaddons >= %{version} | |
aa980ada WF |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %define qt5dir %{_libdir}/qt5 | |
51 | ||
52 | %description | |
53 | This library contains classes to improve the handling of icons in | |
54 | applications using the KDE Frameworks. Provided are: | |
55 | ||
56 | - KIconDialog: Dialog class to let the user select an icon from the | |
57 | list of installed icons. | |
58 | - KIconButton: Custom button class that displays an icon. When | |
59 | clicking it, the user can change it using the icon dialog. | |
60 | - KIconEffect: Applies various colorization effects to icons, which | |
61 | can be used to create selected/disabled icon images. | |
62 | ||
63 | Other classes in this repository are used internally by the icon theme | |
64 | configuration dialogs, and should not be used by applications. | |
65 | ||
66 | %package devel | |
9c5a809c AM |
67 | Summary: Header files for %{kfname} development |
68 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
aa980ada WF |
69 | Group: X11/Development/Libraries |
70 | Requires: %{name} = %{version}-%{release} | |
b1bb8102 | 71 | Requires: Qt5Widgets-devel >= %{qtver} |
b9a7d868 | 72 | Requires: cmake >= 3.16 |
aa980ada WF |
73 | |
74 | %description devel | |
9c5a809c | 75 | Header files for %{kfname} development. |
aa980ada WF |
76 | |
77 | %description devel -l pl.UTF-8 | |
9c5a809c | 78 | Pliki nagłówkowe dla programistów używających %{kfname}. |
aa980ada WF |
79 | |
80 | %prep | |
9c5a809c | 81 | %setup -q -n %{kfname}-%{version} |
aa980ada WF |
82 | |
83 | %build | |
84 | install -d build | |
85 | cd build | |
10079855 | 86 | %cmake -G Ninja \ |
f95a7add | 87 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
9c5a809c | 88 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
aa980ada | 89 | ../ |
10079855 | 90 | %ninja_build |
aa980ada | 91 | |
f95a7add WF |
92 | %if %{with tests} |
93 | ctest | |
94 | %endif | |
95 | ||
96 | ||
aa980ada WF |
97 | %install |
98 | rm -rf $RPM_BUILD_ROOT | |
10079855 | 99 | %ninja_install -C build |
aa980ada | 100 | |
9c5a809c | 101 | %find_lang %{kfname}5 |
aa980ada WF |
102 | |
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
9c5a809c | 109 | %files -f %{kfname}5.lang |
aa980ada WF |
110 | %defattr(644,root,root,755) |
111 | %doc README.md | |
66340cb7 | 112 | %{_datadir}/qlogging-categories5/kiconthemes.categories |
aa980ada | 113 | %attr(755,root,root) %{_bindir}/kiconfinder5 |
ce340799 | 114 | %ghost %{_libdir}/libKF5IconThemes.so.5 |
32568728 | 115 | %attr(755,root,root) %{_libdir}/libKF5IconThemes.so.*.* |
3a95eaee | 116 | %attr(755,root,root) %{_libdir}/qt5/plugins/iconengines/KIconEnginePlugin.so |
f1df017f | 117 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/kiconthemes5widgets.so |
a71c24a9 WF |
118 | %{_datadir}/qlogging-categories5/kiconthemes.renamecategories |
119 | ||
aa980ada WF |
120 | %files devel |
121 | %defattr(644,root,root,755) | |
122 | %{_includedir}/KF5/KIconThemes | |
aa980ada | 123 | %{_libdir}/cmake/KF5IconThemes |
ce340799 | 124 | %{_libdir}/libKF5IconThemes.so |
aa980ada | 125 | %{qt5dir}/mkspecs/modules/qt_KIconThemes.pri |