]>
Commit | Line | Data |
---|---|---|
6359bf43 | 1 | %define kdeappsver 21.12.1 |
52c1d6b3 | 2 | %define kframever 5.56.0 |
c39f0271 WF |
3 | %define qtver 5.9.0 |
4 | %define kaname libkexiv2 | |
5 | Summary: libkexiv2 | |
6 | Name: ka5-%{kaname} | |
6359bf43 | 7 | Version: 21.12.1 |
c39f0271 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Applications | |
d61471f3 | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
6359bf43 | 12 | # Source0-md5: c472fe1582159aa345597d3dce66133c |
c39f0271 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5Gui-devel | |
16 | BuildRequires: cmake >= 2.8.12 | |
17 | BuildRequires: exiv2-devel >= 0.24 | |
52c1d6b3 | 18 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
5f2ea8a6 | 19 | BuildRequires: ninja |
c39f0271 WF |
20 | BuildRequires: qt5-build >= %{qtver} |
21 | BuildRequires: rpmbuild(macros) >= 1.164 | |
22 | BuildRequires: shared-mime-info | |
23 | BuildRequires: tar >= 1:1.22 | |
24 | BuildRequires: xz | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Libkexiv2 is a wrapper around Exiv2. | |
29 | ||
0a9061d1 WF |
30 | %description -l pl.UTF-8 |
31 | Libkexiv2 jest wraperem wokół Exiv2. | |
32 | ||
c39f0271 WF |
33 | %package devel |
34 | Summary: Header files for %{kaname} development | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
36 | Group: X11/Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for %{kaname} development. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
44 | ||
45 | %prep | |
46 | %setup -q -n %{kaname}-%{version} | |
47 | ||
48 | %build | |
49 | install -d build | |
50 | cd build | |
51 | %cmake \ | |
5f2ea8a6 | 52 | -G Ninja \ |
52c1d6b3 | 53 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
c39f0271 WF |
54 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
55 | .. | |
5f2ea8a6 | 56 | %ninja_build |
c39f0271 WF |
57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
5f2ea8a6 | 60 | %ninja_install -C build |
c39f0271 WF |
61 | |
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %attr(755,root,root) %{_libdir}/libKF5KExiv2.so.5.*.* | |
ecc2b28a | 71 | %{_libdir}/libKF5KExiv2.so.15.*.* |
d61471f3 | 72 | %{_datadir}/qlogging-categories5/libkexiv2.categories |
c39f0271 WF |
73 | |
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %{_libdir}/libKF5KExiv2.so | |
77 | %{_includedir}/KF5/KExiv2 | |
78 | %{_includedir}/KF5/libkexiv2_version.h | |
79 | %{_libdir}/cmake/KF5KExiv2 |