]>
Commit | Line | Data |
---|---|---|
7a472efe JB |
1 | # |
2 | # Conditional build: | |
3d12e4b8 | 3 | %bcond_without openmp # OpenMP support |
0cfd1611 | 4 | %bcond_without zlib # ZLIB for deflated DNG format support |
7a472efe JB |
5 | # |
6 | Summary: LibRaw - a library for reading RAW files | |
7 | Summary(pl.UTF-8): LibRaw - biblioteka do odczytu plików RAW | |
029e7ab3 | 8 | Name: libraw |
f96ba528 | 9 | Version: 0.21.2 |
58c2b007 | 10 | Release: 1 |
0cfd1611 | 11 | License: LGPL v2.1 or CDDL v1.0 |
029e7ab3 | 12 | Group: Libraries |
dcb381e1 | 13 | #Source0Download: http://www.libraw.org/download#stable |
499be3d0 | 14 | Source0: https://www.libraw.org/data/LibRaw-%{version}.tar.gz |
f96ba528 | 15 | # Source0-md5: 0533724bad17c0fde22e642e4594e45d |
18b6070a | 16 | Patch0: int64.patch |
499be3d0 | 17 | URL: https://www.libraw.org/ |
a45219fc JB |
18 | BuildRequires: autoconf >= 2.50 |
19 | BuildRequires: automake | |
3d12e4b8 | 20 | %{?with_openmp:BuildRequires: gcc >= 6:4.2} |
2071f71c | 21 | BuildRequires: jasper-devel |
a45219fc | 22 | BuildRequires: lcms2-devel >= 2 |
3d12e4b8 | 23 | %{?with_openmp:BuildRequires: libgomp-devel} |
0cfd1611 | 24 | BuildRequires: libjpeg-devel >= 8 |
7a472efe | 25 | BuildRequires: libstdc++-devel |
a45219fc | 26 | BuildRequires: libtool |
7a472efe | 27 | BuildRequires: pkgconfig |
0cfd1611 JB |
28 | # zlib with pkgconfig support |
29 | %{?with_zlib:BuildRequires: zlib-devel >= 1.2.3.3} | |
029e7ab3 CM |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | LibRaw is a library for reading RAW files obtained from digital photo | |
34 | cameras (CRW/CR2, NEF, RAF, DNG, and others). | |
35 | ||
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. | |
40 | ||
7a472efe JB |
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). | |
44 | ||
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. | |
47 | ||
a20b088a | 48 | %package samples |
7a472efe JB |
49 | Summary: LibRaw sample programs |
50 | Summary(pl.UTF-8): Programy przykładowe do LibRaw | |
51 | Group: Applications/Graphics | |
a20b088a JK |
52 | |
53 | %description samples | |
54 | LibRaw sample programs. | |
55 | ||
7a472efe JB |
56 | %description samples -l pl.UTF-8 |
57 | Programy przykładowe do LibRaw. | |
58 | ||
029e7ab3 | 59 | %package devel |
a20b088a | 60 | Summary: Header files for LibRaw |
7a472efe | 61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibRaw |
029e7ab3 | 62 | Group: Development/Libraries |
696c095a | 63 | Requires: %{name} = %{version}-%{release} |
7a472efe | 64 | Requires: jasper-devel |
a45219fc | 65 | Requires: lcms2-devel >= 2 |
42b66beb | 66 | %{?with_openmp:Requires: libgomp-devel} |
0cfd1611 | 67 | Requires: libjpeg-devel >= 8 |
7a472efe | 68 | Requires: libstdc++-devel |
0cfd1611 | 69 | %{?with_zlib:Requires: zlib-devel >= 1.2.3.3} |
029e7ab3 CM |
70 | |
71 | %description devel | |
7a472efe JB |
72 | Header files for LibRaw. |
73 | ||
74 | %description devel -l pl.UTF-8 | |
75 | Pliki nagłówkowe biblioteki LibRaw. | |
029e7ab3 CM |
76 | |
77 | %package static | |
7a472efe JB |
78 | Summary: Static LibRaw library |
79 | Summary(pl.UTF-8): Statyczna biblioteka LibRaw | |
029e7ab3 CM |
80 | Group: Development/Libraries |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | ||
83 | %description static | |
7a472efe JB |
84 | Static LibRaw library. |
85 | ||
86 | %description static -l pl.UTF-8 | |
87 | Statyczna biblioteka LibRaw. | |
029e7ab3 CM |
88 | |
89 | %prep | |
42b66beb | 90 | %setup -q -n LibRaw-%{version} |
18b6070a | 91 | %patch0 -p1 |
029e7ab3 CM |
92 | |
93 | %build | |
a45219fc JB |
94 | %{__libtoolize} |
95 | %{__aclocal} -I m4 | |
96 | %{__autoconf} | |
97 | %{__automake} | |
2071f71c | 98 | %configure \ |
0cfd1611 JB |
99 | %{!?with_openmp:--disable-openmp} \ |
100 | %{?with_zlib:--enable-zlib} | |
7a472efe | 101 | |
42b66beb | 102 | %{__make} |
029e7ab3 CM |
103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
2071f71c JK |
107 | %{__make} install \ |
108 | DESTDIR=$RPM_BUILD_ROOT | |
029e7ab3 | 109 | |
0cfd1611 JB |
110 | # obsoleted by pkg-config |
111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libraw*.la | |
112 | ||
7a472efe JB |
113 | # packaged as %doc |
114 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
029e7ab3 CM |
115 | |
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %post -p /sbin/ldconfig | |
120 | %postun -p /sbin/ldconfig | |
121 | ||
2071f71c JK |
122 | %files |
123 | %defattr(644,root,root,755) | |
42b66beb | 124 | %doc COPYRIGHT Changelog.txt README.md LICENSE.CDDL LICENSE.LGPL |
ecc40057 | 125 | %attr(755,root,root) %{_libdir}/libraw.so.*.*.* |
58c2b007 | 126 | %attr(755,root,root) %ghost %{_libdir}/libraw.so.23 |
ecc40057 | 127 | %attr(755,root,root) %{_libdir}/libraw_r.so.*.*.* |
58c2b007 | 128 | %attr(755,root,root) %ghost %{_libdir}/libraw_r.so.23 |
2071f71c | 129 | |
a20b088a | 130 | %files samples |
029e7ab3 | 131 | %defattr(644,root,root,755) |
7a472efe JB |
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 | |
42b66beb | 140 | %attr(755,root,root) %{_bindir}/rawtextdump |
7a472efe JB |
141 | %attr(755,root,root) %{_bindir}/simple_dcraw |
142 | %attr(755,root,root) %{_bindir}/unprocessed_raw | |
029e7ab3 CM |
143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
a45219fc | 146 | %doc doc/*.html |
7a472efe JB |
147 | %attr(755,root,root) %{_libdir}/libraw.so |
148 | %attr(755,root,root) %{_libdir}/libraw_r.so | |
029e7ab3 | 149 | %{_includedir}/libraw |
a20b088a JK |
150 | %{_pkgconfigdir}/libraw.pc |
151 | %{_pkgconfigdir}/libraw_r.pc | |
029e7ab3 CM |
152 | |
153 | %files static | |
154 | %defattr(644,root,root,755) | |
155 | %{_libdir}/libraw.a | |
a20b088a | 156 | %{_libdir}/libraw_r.a |