]>
Commit | Line | Data |
---|---|---|
fb37cf08 WF |
1 | %define kdeappsver 18.12.0 |
2 | %define qtver 5.9.0 | |
b1b94462 WF |
3 | %define kaname libkipi |
4 | ||
5 | Summary: Kipi library | |
6 | Summary(pl.UTF-8): Biblioteka kipi | |
7 | Name: ka5-%{kaname} | |
fb37cf08 | 8 | Version: 18.12.0 |
b1b94462 WF |
9 | Release: 1 |
10 | License: GPL v2+ | |
11 | Group: X11/Libraries | |
12 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
fb37cf08 | 13 | # Source0-md5: 36542096568f918cf58c57c5c3c9004f |
b1b94462 | 14 | URL: http://www.kde.org/ |
fb37cf08 WF |
15 | BuildRequires: Qt5Core-devel |
16 | BuildRequires: Qt5Gui-devel | |
17 | BuildRequires: Qt5Widgets-devel | |
18 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
19 | BuildRequires: kf5-kconfig-devel >= 5.1.0 | |
20 | BuildRequires: kf5-kservice-devel >= 5.1.0 | |
21 | BuildRequires: kf5-kxmlgui-devel >= 5.1.0 | |
22 | BuildRequires: libjpeg-devel | |
23 | BuildRequires: libpng-devel | |
24 | BuildRequires: libtiff-devel | |
b1b94462 WF |
25 | BuildRequires: rpmbuild(macros) >= 1.164 |
26 | Obsoletes: libkipi <= 4.8.0 | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | kipi library. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Biblioteka kipi. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for libkipi development | |
fb37cf08 | 37 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} |
b1b94462 WF |
38 | Group: X11/Development/Libraries |
39 | Requires: %{name} = %{version}-%{release} | |
40 | Obsoletes: kde4-kdegraphics-devel < 4.6.99 | |
41 | Obsoletes: libkipi-devel <= 4.8.0 | |
42 | ||
43 | %description devel | |
44 | Header files for libkipi development. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
fb37cf08 | 47 | Pliki nagłówkowe dla programistów używających %{kaname}. |
b1b94462 WF |
48 | |
49 | %prep | |
50 | %setup -q -n %{kaname}-%{version} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
56 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
57 | .. | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | %{__make} -C build install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %post -p /sbin/ldconfig | |
69 | %postun -p /sbin/ldconfig | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %{_libdir}/libKF5Kipi.so.32.0.0 | |
74 | %{_libdir}/libKF5Kipi.so.5.2.0 | |
75 | %{_libdir}/qt5/plugins/kipiplugin_kxmlhelloworld.so | |
76 | %{_iconsdir}/hicolor/128x128/apps/kipi.png | |
77 | %{_iconsdir}/hicolor/16x16/apps/kipi.png | |
78 | %{_iconsdir}/hicolor/22x22/apps/kipi.png | |
79 | %{_iconsdir}/hicolor/32x32/apps/kipi.png | |
80 | %{_iconsdir}/hicolor/48x48/apps/kipi.png | |
81 | %{_datadir}/kservices5/kipiplugin_kxmlhelloworld.desktop | |
82 | %{_datadir}/kservicetypes5/kipiplugin.desktop | |
83 | %dir %{_datadir}/kxmlgui5/kipi | |
84 | %{_datadir}/kxmlgui5/kipi/kipiplugin_kxmlhelloworldui.rc | |
85 | ||
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %{_includedir}/KF5/KIPI | |
90 | %{_includedir}/KF5/libkipi_version.h | |
91 | %{_libdir}/cmake/KF5Kipi | |
92 | %{_libdir}/libKF5Kipi.so |