3 %bcond_without openmp # OpenMP support
4 %bcond_without zlib # ZLIB for deflated DNG format support
6 Summary: LibRaw - a library for reading RAW files
7 Summary(pl.UTF-8): LibRaw - biblioteka do odczytu plików RAW
11 License: LGPL v2.1 or CDDL v1.0
13 #Source0Download: http://www.libraw.org/download#stable
14 Source0: https://www.libraw.org/data/LibRaw-%{version}.tar.gz
15 # Source0-md5: 2942732de752f46baccd9c6d57823b7b
17 URL: https://www.libraw.org/
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 %{?with_openmp:BuildRequires: gcc >= 6:4.2}
21 BuildRequires: jasper-devel
22 BuildRequires: lcms2-devel >= 2
23 %{?with_openmp:BuildRequires: libgomp-devel}
24 BuildRequires: libjpeg-devel >= 8
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtool
27 BuildRequires: pkgconfig
28 # zlib with pkgconfig support
29 %{?with_zlib:BuildRequires: zlib-devel >= 1.2.3.3}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 LibRaw is a library for reading RAW files obtained from digital photo
34 cameras (CRW/CR2, NEF, RAF, DNG, and others).
36 LibRaw is based on the source codes of the dcraw utility, where part
37 of drawbacks have already been eliminated and part will be fixed in
38 future. The users of the library are provided with API to be built
39 into their software programs.
41 %description -l pl.UTF-8
42 LibRaw to biblioteka do odczytu plików RAW uzyskanych z cyfrowych
43 aparatów fotograficznych (w formacie CRW/CR2, NEF, RAF, DNG i innych).
45 LibRaw jest oparty na kodzie źródłowym dcraw, z którego część wad
46 została już wyeliminowana, a część zostanie poprawiona w przyszłości.
49 Summary: LibRaw sample programs
50 Summary(pl.UTF-8): Programy przykładowe do LibRaw
51 Group: Applications/Graphics
54 LibRaw sample programs.
56 %description samples -l pl.UTF-8
57 Programy przykładowe do LibRaw.
60 Summary: Header files for LibRaw
61 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibRaw
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
64 Requires: jasper-devel
65 Requires: lcms2-devel >= 2
66 %{?with_openmp:Requires: libgomp-devel}
67 Requires: libjpeg-devel >= 8
68 Requires: libstdc++-devel
69 %{?with_zlib:Requires: zlib-devel >= 1.2.3.3}
72 Header files for LibRaw.
74 %description devel -l pl.UTF-8
75 Pliki nagłówkowe biblioteki LibRaw.
78 Summary: Static LibRaw library
79 Summary(pl.UTF-8): Statyczna biblioteka LibRaw
80 Group: Development/Libraries
81 Requires: %{name}-devel = %{version}-%{release}
84 Static LibRaw library.
86 %description static -l pl.UTF-8
87 Statyczna biblioteka LibRaw.
90 %setup -q -n LibRaw-%{version}
99 %{!?with_openmp:--disable-openmp} \
100 %{?with_zlib:--enable-zlib}
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 # obsoleted by pkg-config
111 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libraw*.la
114 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
117 rm -rf $RPM_BUILD_ROOT
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
123 %defattr(644,root,root,755)
124 %doc COPYRIGHT Changelog.txt README.md LICENSE.CDDL LICENSE.LGPL
125 %attr(755,root,root) %{_libdir}/libraw.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libraw.so.23
127 %attr(755,root,root) %{_libdir}/libraw_r.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libraw_r.so.23
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_bindir}/4channels
133 %attr(755,root,root) %{_bindir}/dcraw_emu
134 %attr(755,root,root) %{_bindir}/dcraw_half
135 %attr(755,root,root) %{_bindir}/half_mt
136 %attr(755,root,root) %{_bindir}/mem_image
137 %attr(755,root,root) %{_bindir}/multirender_test
138 %attr(755,root,root) %{_bindir}/postprocessing_benchmark
139 %attr(755,root,root) %{_bindir}/raw-identify
140 %attr(755,root,root) %{_bindir}/rawtextdump
141 %attr(755,root,root) %{_bindir}/simple_dcraw
142 %attr(755,root,root) %{_bindir}/unprocessed_raw
145 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/libraw.so
148 %attr(755,root,root) %{_libdir}/libraw_r.so
149 %{_includedir}/libraw
150 %{_pkgconfigdir}/libraw.pc
151 %{_pkgconfigdir}/libraw_r.pc
154 %defattr(644,root,root,755)
156 %{_libdir}/libraw_r.a