]>
Commit | Line | Data |
---|---|---|
7dbb29ce WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
9ebdd660 | 4 | %define kdeappsver 21.12.3 |
a9a668c9 | 5 | %define kframever 5.56.0 |
fb37cf08 | 6 | %define qtver 5.9.0 |
b1b94462 WF |
7 | %define kaname libkipi |
8 | ||
9 | Summary: Kipi library | |
10 | Summary(pl.UTF-8): Biblioteka kipi | |
11 | Name: ka5-%{kaname} | |
9ebdd660 | 12 | Version: 21.12.3 |
b1b94462 WF |
13 | Release: 1 |
14 | License: GPL v2+ | |
15 | Group: X11/Libraries | |
d30e4217 | 16 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
9ebdd660 | 17 | # Source0-md5: e7f93940b8bf7a24e0c6b5b119986664 |
b1b94462 | 18 | URL: http://www.kde.org/ |
fb37cf08 WF |
19 | BuildRequires: Qt5Core-devel |
20 | BuildRequires: Qt5Gui-devel | |
21 | BuildRequires: Qt5Widgets-devel | |
a9a668c9 WF |
22 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
23 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
24 | BuildRequires: kf5-kservice-devel >= %{kframever} | |
25 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
fb37cf08 WF |
26 | BuildRequires: libjpeg-devel |
27 | BuildRequires: libpng-devel | |
28 | BuildRequires: libtiff-devel | |
2afbafa5 | 29 | BuildRequires: ninja |
b1b94462 WF |
30 | BuildRequires: rpmbuild(macros) >= 1.164 |
31 | Obsoletes: libkipi <= 4.8.0 | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | kipi library. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Biblioteka kipi. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for libkipi development | |
fb37cf08 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} |
b1b94462 WF |
43 | Group: X11/Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Obsoletes: kde4-kdegraphics-devel < 4.6.99 | |
46 | Obsoletes: libkipi-devel <= 4.8.0 | |
47 | ||
48 | %description devel | |
49 | Header files for libkipi development. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
fb37cf08 | 52 | Pliki nagłówkowe dla programistów używających %{kaname}. |
b1b94462 WF |
53 | |
54 | %prep | |
55 | %setup -q -n %{kaname}-%{version} | |
56 | ||
57 | %build | |
58 | install -d build | |
59 | cd build | |
60 | %cmake \ | |
2afbafa5 | 61 | -G Ninja \ |
7dbb29ce | 62 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
a9a668c9 | 63 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
b1b94462 WF |
64 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
65 | .. | |
2afbafa5 | 66 | %ninja_build |
b1b94462 | 67 | |
7dbb29ce WF |
68 | %if %{with tests} |
69 | ctest | |
70 | %endif | |
71 | ||
72 | ||
b1b94462 WF |
73 | %install |
74 | rm -rf $RPM_BUILD_ROOT | |
2afbafa5 | 75 | %ninja_install -C build |
b1b94462 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) | |
d30e4217 WF |
85 | %attr(755,root,root) %{_libdir}/libKF5Kipi.so.32.0.0 |
86 | %attr(755,root,root) %{_libdir}/libKF5Kipi.so.5.2.0 | |
87 | %attr(755,root,root) %{_libdir}/qt5/plugins/kipiplugin_kxmlhelloworld.so | |
b1b94462 WF |
88 | %{_iconsdir}/hicolor/128x128/apps/kipi.png |
89 | %{_iconsdir}/hicolor/16x16/apps/kipi.png | |
90 | %{_iconsdir}/hicolor/22x22/apps/kipi.png | |
91 | %{_iconsdir}/hicolor/32x32/apps/kipi.png | |
92 | %{_iconsdir}/hicolor/48x48/apps/kipi.png | |
93 | %{_datadir}/kservices5/kipiplugin_kxmlhelloworld.desktop | |
94 | %{_datadir}/kservicetypes5/kipiplugin.desktop | |
95 | %dir %{_datadir}/kxmlgui5/kipi | |
96 | %{_datadir}/kxmlgui5/kipi/kipiplugin_kxmlhelloworldui.rc | |
97 | ||
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %{_includedir}/KF5/KIPI | |
102 | %{_includedir}/KF5/libkipi_version.h | |
103 | %{_libdir}/cmake/KF5Kipi | |
104 | %{_libdir}/libKF5Kipi.so |