]>
Commit | Line | Data |
---|---|---|
e1975f73 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
df478441 | 4 | %define kdeframever 5.113 |
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} |
df478441 | 10 | Version: 5.113.0 |
28aea785 | 11 | Release: 1 |
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 |
df478441 | 15 | # Source0-md5: fcff19090cf18c03cc492768da8b62b4 |
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} | |
707aac31 | 23 | BuildRequires: cmake >= 3.16 |
f33b1a58 | 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 | |
707aac31 WF |
61 | %cmake -B build \ |
62 | -G Ninja \ | |
e1975f73 | 63 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
707aac31 WF |
64 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
65 | ||
66 | %ninja_build -C build | |
f33b1a58 | 67 | |
e1975f73 | 68 | %if %{with tests} |
707aac31 | 69 | %ninja_build -C build test |
e1975f73 WF |
70 | %endif |
71 | ||
72 | ||
f33b1a58 WF |
73 | %install |
74 | rm -rf $RPM_BUILD_ROOT | |
85335b37 | 75 | %ninja_install -C build |
f33b1a58 WF |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc README.md | |
6cf3e9d2 | 86 | %{_datadir}/qlogging-categories5/kemoticons.categories |
c97745ed | 87 | %ghost %{_libdir}/libKF5Emoticons.so.5 |
b07ed399 | 88 | %attr(755,root,root) %{_libdir}/libKF5Emoticons.so.*.* |
f33b1a58 | 89 | %dir %{qt5dir}/plugins/kf5/emoticonsthemes |
b07ed399 | 90 | %attr(755,root,root) %{qt5dir}/plugins/kf5/KEmoticonsIntegrationPlugin.so |
f33b1a58 WF |
91 | %attr(755,root,root) %{qt5dir}/plugins/kf5/emoticonsthemes/adium.so |
92 | %attr(755,root,root) %{qt5dir}/plugins/kf5/emoticonsthemes/kde.so | |
93 | %attr(755,root,root) %{qt5dir}/plugins/kf5/emoticonsthemes/pidgin.so | |
94 | %attr(755,root,root) %{qt5dir}/plugins/kf5/emoticonsthemes/xmpp.so | |
95 | %{_datadir}/kservices5/emoticonstheme_adium.desktop | |
96 | %{_datadir}/kservices5/emoticonstheme_kde.desktop | |
97 | %{_datadir}/kservices5/emoticonstheme_pidgin.desktop | |
98 | %{_datadir}/kservices5/emoticonstheme_xmpp.desktop | |
99 | %{_datadir}/kservicetypes5/kemoticonsTheme.desktop | |
4c5ba6a5 | 100 | %{_datadir}/emoticons/Breeze |
bd89a838 | 101 | %{_datadir}/emoticons/EmojiOne |
bd89a838 | 102 | %{_datadir}/emoticons/Konqi |
0ecdd8e2 | 103 | %{_datadir}/qlogging-categories5/kemoticons.renamecategories |
f33b1a58 WF |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %{_includedir}/KF5/KEmoticons | |
f33b1a58 | 108 | %{_libdir}/cmake/KF5Emoticons |
c97745ed | 109 | %{_libdir}/libKF5Emoticons.so |
f33b1a58 | 110 | %{qt5dir}/mkspecs/modules/qt_KEmoticons.pri |