]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %define kdeappsver 23.08.4 | |
5 | %define kframever 5.94.0 | |
6 | %define qtver 5.15.2 | |
7 | %define kaname libkipi | |
8 | ||
9 | Summary: Kipi library | |
10 | Summary(pl.UTF-8): Biblioteka kipi | |
11 | Name: ka5-%{kaname} | |
12 | Version: 23.08.4 | |
13 | Release: 1 | |
14 | License: GPL v2+ | |
15 | Group: X11/Libraries | |
16 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
17 | # Source0-md5: da7ae7100ac577e0beae007a3cbfd5a5 | |
18 | URL: http://www.kde.org/ | |
19 | BuildRequires: Qt5Core-devel | |
20 | BuildRequires: Qt5Gui-devel | |
21 | BuildRequires: Qt5Widgets-devel | |
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} | |
26 | BuildRequires: libjpeg-devel | |
27 | BuildRequires: libpng-devel | |
28 | BuildRequires: libtiff-devel | |
29 | BuildRequires: ninja | |
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 | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
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 | |
52 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
53 | ||
54 | %prep | |
55 | %setup -q -n %{kaname}-%{version} | |
56 | ||
57 | %build | |
58 | %cmake \ | |
59 | -B build \ | |
60 | -G Ninja \ | |
61 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
62 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
63 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON | |
64 | %ninja_build -C build | |
65 | ||
66 | %if %{with tests} | |
67 | ctest --test-dir build | |
68 | %endif | |
69 | ||
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | %ninja_install -C build | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %{_libdir}/libKF5Kipi.so.32.0.0 | |
84 | %attr(755,root,root) %{_libdir}/libKF5Kipi.so.5.2.0 | |
85 | %{_iconsdir}/hicolor/128x128/apps/kipi.png | |
86 | %{_iconsdir}/hicolor/16x16/apps/kipi.png | |
87 | %{_iconsdir}/hicolor/22x22/apps/kipi.png | |
88 | %{_iconsdir}/hicolor/32x32/apps/kipi.png | |
89 | %{_iconsdir}/hicolor/48x48/apps/kipi.png | |
90 | %{_datadir}/kservicetypes5/kipiplugin.desktop | |
91 | %{_datadir}/qlogging-categories5/kipi.categories | |
92 | ||
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %{_includedir}/KF5/KIPI | |
96 | %{_libdir}/cmake/KF5Kipi | |
97 | %{_libdir}/libKF5Kipi.so |