]>
Commit | Line | Data |
---|---|---|
6834ea19 AM |
1 | %define _state stable |
2 | %define orgname libkdcraw | |
0a468455 | 3 | %define qtver 4.8.1 |
6834ea19 | 4 | |
b4390c2d | 5 | Summary: KDcraw libary |
6 | Summary(pl.UTF-8): Biblioteka KDcraw | |
6f6baa4b | 7 | Name: kde4-libkdcraw |
e76397dc | 8 | Version: 4.12.0 |
5273b95f | 9 | Release: 1 |
13c4603d JB |
10 | License: GPL v2+ |
11 | Group: X11/Libraries | |
91fad9c5 | 12 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz |
e76397dc | 13 | # Source0-md5: e4f1c1a5814e6d016289a6cf38fe2a97 |
6834ea19 | 14 | URL: http://www.kde.org/ |
b4390c2d | 15 | BuildRequires: lcms-devel |
13c4603d | 16 | BuildRequires: libjpeg-devel |
e76397dc | 17 | BuildRequires: libraw-devel >= 0.15 |
b4390c2d | 18 | BuildRequires: rpmbuild(macros) >= 1.164 |
6f6baa4b | 19 | Obsoletes: libkdcraw < 4.8.0 |
b4390c2d | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | The KDcraw Library is part of the KIPI Project. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Biblioteka KDcraw jest częścią projektu KIPI. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for libkdcraw development | |
30 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających libkdcraw | |
13c4603d JB |
31 | Group: X11/Development/Libraries |
32 | Requires: %{name} = %{version}-%{release} | |
6f6baa4b | 33 | Obsoletes: libkdcraw-devel < 4.8.0 |
b4390c2d | 34 | |
35 | %description devel | |
36 | Header files for libkdcraw development. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe dla programistów używających libkdcraw. | |
40 | ||
b4390c2d | 41 | %prep |
6f6baa4b | 42 | %setup -q -n %{orgname}-%{version} |
b4390c2d | 43 | |
44 | %build | |
6834ea19 AM |
45 | install -d build |
46 | cd build | |
47 | %cmake \ | |
6834ea19 | 48 | ../ |
b4390c2d | 49 | %{__make} |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
6834ea19 AM |
54 | %{__make} -C build/ install \ |
55 | DESTDIR=$RPM_BUILD_ROOT \ | |
56 | kde_htmldir=%{_kdedocdir} | |
721b1996 | 57 | |
b4390c2d | 58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
31e9ad35 AM |
61 | %post -p /sbin/ldconfig |
62 | %postun -p /sbin/ldconfig | |
63 | ||
6834ea19 | 64 | %files |
b4390c2d | 65 | %defattr(644,root,root,755) |
6834ea19 AM |
66 | %attr(755,root,root) %ghost %{_libdir}/libkdcraw.so.?? |
67 | %attr(755,root,root) %{_libdir}/libkdcraw.so.*.*.* | |
68 | %{_datadir}/apps/libkdcraw | |
69 | %{_iconsdir}/hicolor/*x*/apps/kdcraw.png | |
b4390c2d | 70 | |
71 | %files devel | |
72 | %defattr(644,root,root,755) | |
13c4603d | 73 | %attr(755,root,root) %{_libdir}/libkdcraw.so |
b4390c2d | 74 | %{_includedir}/libkdcraw |
13c4603d | 75 | %{_pkgconfigdir}/libkdcraw.pc |