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