]>
Commit | Line | Data |
---|---|---|
e1975f73 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
36e6bf06 | 4 | %define kdeframever 5.97 |
4cea5d29 | 5 | %define qtver 5.15.2 |
f2df170d | 6 | %define kfname kemoticons |
f33b1a58 WF |
7 | |
8 | Summary: Convert text emoticons to graphical emoticons | |
f2df170d | 9 | Name: kf5-%{kfname} |
36e6bf06 | 10 | Version: 5.97.0 |
db17135f | 11 | Release: 2 |
f33b1a58 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
071a7715 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
36e6bf06 | 15 | # Source0-md5: 18edfe35f0d2fc06bd628c515ca47bcf |
f33b1a58 | 16 | URL: http://www.kde.org/ |
f2df170d AM |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
19 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
20 | BuildRequires: Qt5Test-devel >= %{qtver} | |
21 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
22 | BuildRequires: Qt5Xml-devel >= %{qtver} | |
f33b1a58 WF |
23 | BuildRequires: cmake >= 2.8.12 |
24 | BuildRequires: gettext-devel | |
ac7f15f6 | 25 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
f33b1a58 WF |
26 | BuildRequires: kf5-karchive-devel >= %{version} |
27 | BuildRequires: kf5-kconfig-devel >= %{version} | |
28 | BuildRequires: kf5-kcoreaddons-devel >= %{version} | |
29 | BuildRequires: kf5-kdbusaddons-devel >= %{version} | |
30 | BuildRequires: kf5-ki18n-devel >= %{version} | |
31 | BuildRequires: kf5-kservice-devel >= %{version} | |
85335b37 | 32 | BuildRequires: ninja |
f33b1a58 WF |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
bd89a838 | 35 | Requires: kf5-dirs |
f33b1a58 WF |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %define qt5dir %{_libdir}/qt5 | |
39 | ||
40 | %description | |
41 | KEmoticons converts emoticons from text to a graphical representation | |
42 | with images in HTML. It supports setting different themes for | |
43 | emoticons coming from different providers. | |
44 | ||
45 | %package devel | |
f2df170d AM |
46 | Summary: Header files for %{kfname} development |
47 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
f33b1a58 WF |
48 | Group: X11/Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description devel | |
f2df170d | 52 | Header files for %{kfname} development. |
f33b1a58 WF |
53 | |
54 | %description devel -l pl.UTF-8 | |
f2df170d | 55 | Pliki nagłówkowe dla programistów używających %{kfname}. |
f33b1a58 WF |
56 | |
57 | %prep | |
f2df170d | 58 | %setup -q -n %{kfname}-%{version} |
f33b1a58 WF |
59 | |
60 | %build | |
61 | install -d build | |
62 | cd build | |
85335b37 | 63 | %cmake -G Ninja \ |
e1975f73 | 64 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
f2df170d | 65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
f33b1a58 | 66 | ../ |
85335b37 | 67 | %ninja_build |
f33b1a58 | 68 | |
e1975f73 WF |
69 | %if %{with tests} |
70 | ctest | |
71 | %endif | |
72 | ||
73 | ||
f33b1a58 WF |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
85335b37 | 76 | %ninja_install -C build |
f33b1a58 WF |
77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc README.md | |
6cf3e9d2 | 87 | %{_datadir}/qlogging-categories5/kemoticons.categories |
c97745ed | 88 | %ghost %{_libdir}/libKF5Emoticons.so.5 |
b07ed399 | 89 | %attr(755,root,root) %{_libdir}/libKF5Emoticons.so.*.* |
f33b1a58 | 90 | %dir %{qt5dir}/plugins/kf5/emoticonsthemes |
b07ed399 | 91 | %attr(755,root,root) %{qt5dir}/plugins/kf5/KEmoticonsIntegrationPlugin.so |
f33b1a58 WF |
92 | %attr(755,root,root) %{qt5dir}/plugins/kf5/emoticonsthemes/adium.so |
93 | %attr(755,root,root) %{qt5dir}/plugins/kf5/emoticonsthemes/kde.so | |
94 | %attr(755,root,root) %{qt5dir}/plugins/kf5/emoticonsthemes/pidgin.so | |
95 | %attr(755,root,root) %{qt5dir}/plugins/kf5/emoticonsthemes/xmpp.so | |
96 | %{_datadir}/kservices5/emoticonstheme_adium.desktop | |
97 | %{_datadir}/kservices5/emoticonstheme_kde.desktop | |
98 | %{_datadir}/kservices5/emoticonstheme_pidgin.desktop | |
99 | %{_datadir}/kservices5/emoticonstheme_xmpp.desktop | |
100 | %{_datadir}/kservicetypes5/kemoticonsTheme.desktop | |
4c5ba6a5 | 101 | %{_datadir}/emoticons/Breeze |
bd89a838 | 102 | %{_datadir}/emoticons/EmojiOne |
bd89a838 | 103 | %{_datadir}/emoticons/Konqi |
0ecdd8e2 | 104 | %{_datadir}/qlogging-categories5/kemoticons.renamecategories |
f33b1a58 WF |
105 | |
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %{_includedir}/KF5/KEmoticons | |
f33b1a58 | 109 | %{_libdir}/cmake/KF5Emoticons |
c97745ed | 110 | %{_libdir}/libKF5Emoticons.so |
f33b1a58 | 111 | %{qt5dir}/mkspecs/modules/qt_KEmoticons.pri |