]>
Commit | Line | Data |
---|---|---|
aa980ada WF |
1 | # TODO: |
2 | # - dir /usr/include/KF5 not packaged | |
3 | # /usr/share/kf5 not packaged | |
4 | %define _state stable | |
5 | %define orgname kiconthemes | |
6 | ||
7 | Summary: Icon GUI utilities | |
8 | Name: kf5-%{orgname} | |
9 | Version: 5.0.0 | |
10 | Release: 0.1 | |
11 | License: LGPL v2.1+ | |
12 | Group: X11/Libraries | |
13 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz | |
14 | # Source0-md5: 0e60f0b8f158117858b14290ab909c29 | |
15 | URL: http://www.kde.org/ | |
16 | BuildRequires: Qt5Core-devel >= 5.2.0 | |
17 | BuildRequires: Qt5DBus-devel >= 5.2.0 | |
18 | BuildRequires: Qt5Gui-devel >= 5.3.1 | |
19 | BuildRequires: Qt5Svg-devel >= 5.2.0 | |
20 | BuildRequires: Qt5Test-devel | |
21 | BuildRequires: Qt5Widgets-devel >= 5.2.0 | |
22 | BuildRequires: Qt5Xml-devel >= 5.2.0 | |
23 | BuildRequires: cmake >= 2.8.12 | |
24 | BuildRequires: gettext-devel | |
25 | BuildRequires: kf5-extra-cmake-modules >= 1.0.0 | |
26 | BuildRequires: kf5-kauth-devel >= %{version} | |
27 | BuildRequires: kf5-kcodecs-devel >= %{version} | |
28 | BuildRequires: kf5-kconfig-devel >= %{version} | |
29 | BuildRequires: kf5-kconfigwidgets-devel >= %{version} | |
30 | BuildRequires: kf5-kcoreaddons-devel >= %{version} | |
31 | BuildRequires: kf5-kguiaddons-devel >= %{version} | |
32 | BuildRequires: kf5-ki18n-devel >= %{version} | |
33 | BuildRequires: kf5-kitemviews-devel >= %{version} | |
34 | BuildRequires: kf5-kwidgetsaddons-devel >= %{version} | |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: qt5-linguist | |
37 | BuildRequires: rpmbuild(macros) >= 1.164 | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %define qt5dir %{_libdir}/qt5 | |
41 | ||
42 | %description | |
43 | This library contains classes to improve the handling of icons in | |
44 | applications using the KDE Frameworks. Provided are: | |
45 | ||
46 | - KIconDialog: Dialog class to let the user select an icon from the | |
47 | list of installed icons. | |
48 | - KIconButton: Custom button class that displays an icon. When | |
49 | clicking it, the user can change it using the icon dialog. | |
50 | - KIconEffect: Applies various colorization effects to icons, which | |
51 | can be used to create selected/disabled icon images. | |
52 | ||
53 | Other classes in this repository are used internally by the icon theme | |
54 | configuration dialogs, and should not be used by applications. | |
55 | ||
56 | %package devel | |
57 | Summary: Header files for %{orgname} development | |
58 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname} | |
59 | Group: X11/Development/Libraries | |
60 | Requires: %{name} = %{version}-%{release} | |
61 | ||
62 | %description devel | |
63 | Header files for %{orgname} development. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe dla programistów używających %{orgname}. | |
67 | ||
68 | %prep | |
69 | %setup -q -n %{orgname}-%{version} | |
70 | ||
71 | %build | |
72 | install -d build | |
73 | cd build | |
74 | %cmake \ | |
75 | -DBIN_INSTALL_DIR=%{_bindir} \ | |
76 | -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \ | |
77 | -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \ | |
78 | -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \ | |
79 | -DQML_INSTALL_DIR=%{qt5dir}/qml \ | |
80 | -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \ | |
81 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ | |
82 | -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \ | |
83 | -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \ | |
84 | -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \ | |
85 | -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \ | |
86 | -D_IMPORT_PREFIX=%{_prefix} \ | |
87 | ../ | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} -C build/ install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
96 | %find_lang %{orgname}5 | |
97 | ||
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files -f %{orgname}5.lang | |
105 | %defattr(644,root,root,755) | |
106 | %doc README.md | |
107 | %attr(755,root,root) %{_bindir}/kiconfinder5 | |
108 | %attr(755,root,root) %ghost %{_libdir}/libKF5IconThemes.so.5 | |
109 | %attr(755,root,root) %{_libdir}/libKF5IconThemes.so.5.0.0 | |
110 | ||
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %{_includedir}/KF5/KIconThemes | |
114 | %{_includedir}/KF5/kiconthemes_version.h | |
115 | %{_libdir}/cmake/KF5IconThemes | |
116 | %attr(755,root,root) %{_libdir}/libKF5IconThemes.so | |
117 | %{qt5dir}/mkspecs/modules/qt_KIconThemes.pri |