3 %bcond_without gomp # OpenMP support
5 Summary: LibRaw - a library for reading RAW files
6 Summary(pl.UTF-8): LibRaw - biblioteka do odczytu plików RAW
10 License: LGPL v2.1 or CDDL v1.0 or LibRaw Software License
12 Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
13 # Source0-md5: 8b622d82c927d8975c22ee4316584ebd
14 URL: http://www.libraw.org/
15 %{?with_gomp:BuildRequires: gcc >= 6:4.2}
16 BuildRequires: jasper-devel
17 BuildRequires: lcms2-devel
18 %{?with_gomp:BuildRequires: libgomp-devel}
19 BuildRequires: libjpeg-devel
20 BuildRequires: libstdc++-devel
21 BuildRequires: pkgconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 LibRaw is a library for reading RAW files obtained from digital photo
26 cameras (CRW/CR2, NEF, RAF, DNG, and others).
28 LibRaw is based on the source codes of the dcraw utility, where part
29 of drawbacks have already been eliminated and part will be fixed in
30 future. The users of the library are provided with API to be built
31 into their software programs.
33 %description -l pl.UTF-8
34 LibRaw to biblioteka do odczytu plików RAW uzyskanych z cyfrowych
35 aparatów fotograficznych (w formacie CRW/CR2, NEF, RAF, DNG i innych).
37 LibRaw jest oparty na kodzie źródłowym dcraw, z którego część wad
38 została już wyeliminowana, a część zostanie poprawiona w przyszłości.
41 Summary: LibRaw sample programs
42 Summary(pl.UTF-8): Programy przykładowe do LibRaw
43 Group: Applications/Graphics
46 LibRaw sample programs.
48 %description samples -l pl.UTF-8
49 Programy przykładowe do LibRaw.
52 Summary: Header files for LibRaw
53 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibRaw
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
56 Requires: jasper-devel
58 %{?with_gomp:Requires: libgomp-devel}
59 Requires: libjpeg-devel
60 Requires: libstdc++-devel
63 Header files for LibRaw.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki LibRaw.
69 Summary: Static LibRaw library
70 Summary(pl.UTF-8): Statyczna biblioteka LibRaw
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 Static LibRaw library.
77 %description static -l pl.UTF-8
78 Statyczna biblioteka LibRaw.
81 %setup -q -n LibRaw-%{version}
85 %{!?with_gomp:--disable-openmp}
88 %{?with_gomp:lib_libraw_la_LIBADD=-lgomp lib_libraw_r_la_LIBADD=-lgomp}
91 rm -rf $RPM_BUILD_ROOT
94 DESTDIR=$RPM_BUILD_ROOT
97 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %doc COPYRIGHT Changelog.txt LICENSE.LibRaw.pdf README README.demosaic-packs
108 %lang(ru) %doc Changelog.rus README.demosaic-packs.rus
109 %ghost %attr(755,root,root) %{_libdir}/libraw.so.5
110 %attr(755,root,root) %{_libdir}/libraw.so.5.*
111 %ghost %attr(755,root,root) %{_libdir}/libraw_r.so.5
112 %attr(755,root,root) %{_libdir}/libraw_r.so.5.*
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/4channels
117 %attr(755,root,root) %{_bindir}/dcraw_emu
118 %attr(755,root,root) %{_bindir}/dcraw_half
119 %attr(755,root,root) %{_bindir}/half_mt
120 %attr(755,root,root) %{_bindir}/mem_image
121 %attr(755,root,root) %{_bindir}/multirender_test
122 %attr(755,root,root) %{_bindir}/postprocessing_benchmark
123 %attr(755,root,root) %{_bindir}/raw-identify
124 %attr(755,root,root) %{_bindir}/simple_dcraw
125 %attr(755,root,root) %{_bindir}/unprocessed_raw
128 %defattr(644,root,root,755)
129 %doc doc/{index.html,*-eng.html}
130 %lang(ru) %doc doc/*-rus.html
131 %attr(755,root,root) %{_libdir}/libraw.so
132 %attr(755,root,root) %{_libdir}/libraw_r.so
134 %{_libdir}/libraw_r.la
135 %{_includedir}/libraw
136 %{_pkgconfigdir}/libraw.pc
137 %{_pkgconfigdir}/libraw_r.pc
140 %defattr(644,root,root,755)
142 %{_libdir}/libraw_r.a