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