]>
Commit | Line | Data |
---|---|---|
e43b9c00 | 1 | %define kdeappsver 21.08.1 |
d557deda | 2 | %define kframever 5.56.0 |
9710b98d | 3 | %define qtver 5.9.0 |
40c66428 WF |
4 | %define kaname libkdcraw |
5 | Summary: Libkdcraw | |
6 | Name: ka5-%{kaname} | |
e43b9c00 | 7 | Version: 21.08.1 |
40c66428 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Libraries | |
19ef3fee | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
e43b9c00 | 12 | # Source0-md5: 0b8bc771cbb1a4adc9402001bfa4a8dd |
40c66428 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
9710b98d | 15 | BuildRequires: Qt5Gui-devel |
40c66428 | 16 | BuildRequires: cmake >= 2.8.12 |
d557deda | 17 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
9710b98d | 18 | BuildRequires: libraw-devel >= 0.18 |
11b15f7a | 19 | BuildRequires: ninja |
40c66428 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 | Libkdcraw is a C++ interface around LibRaw library used to decode RAW | |
29 | picture files. More information about LibRaw can be found at | |
30 | http://www.libraw.org. | |
31 | ||
32 | This library is used by kipi-plugins, digiKam and others kipi host | |
33 | programs. | |
34 | ||
c225e888 WF |
35 | %description -l pl.UTF-8 |
36 | Libkdcraw jest interfejsem C++ wokół biblioteki LibRaw używanej do | |
37 | dekodowania plików RAW. Więcej informacji o LibRaw można znaleźć | |
38 | na http://www.libraw.org. | |
39 | ||
40 | Tej biblioteki używają kipi-plugins, digiKam i inne programy kipi. | |
41 | ||
40c66428 WF |
42 | %package devel |
43 | Summary: Header files for %{kaname} development | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname} | |
45 | Group: X11/Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | ||
48 | %description devel | |
49 | Header files for %{kaname} 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 | install -d build | |
59 | cd build | |
60 | %cmake \ | |
11b15f7a | 61 | -G Ninja \ |
d557deda | 62 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
40c66428 WF |
63 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
64 | .. | |
11b15f7a | 65 | %ninja_build |
40c66428 WF |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
11b15f7a | 69 | %ninja_install -C build |
40c66428 WF |
70 | |
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
064e9d28 | 79 | %ghost %{_libdir}/libKF5KDcraw.so.5 |
40c66428 | 80 | %attr(755,root,root) %{_libdir}/libKF5KDcraw.so.*.*.* |
064e9d28 | 81 | %{_datadir}/qlogging-categories5/libkdcraw.categories |
40c66428 WF |
82 | |
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %{_includedir}/KF5/KDCRAW | |
86 | %{_includedir}/KF5/libkdcraw_version.h | |
87 | %{_libdir}/cmake/KF5KDcraw | |
064e9d28 | 88 | %{_libdir}/libKF5KDcraw.so |