]>
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 |
42b66beb | 9 | Version: 0.20.2 |
a45219fc | 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 |
42b66beb | 15 | # Source0-md5: 2e5bedb59ea433e2d2ef6bbbe5253179 |
499be3d0 | 16 | URL: https://www.libraw.org/ |
a45219fc JB |
17 | BuildRequires: autoconf >= 2.50 |
18 | BuildRequires: automake | |
3d12e4b8 | 19 | %{?with_openmp:BuildRequires: gcc >= 6:4.2} |
2071f71c | 20 | BuildRequires: jasper-devel |
a45219fc | 21 | BuildRequires: lcms2-devel >= 2 |
3d12e4b8 | 22 | %{?with_openmp:BuildRequires: libgomp-devel} |
0cfd1611 | 23 | BuildRequires: libjpeg-devel >= 8 |
7a472efe | 24 | BuildRequires: libstdc++-devel |
a45219fc | 25 | BuildRequires: libtool |
7a472efe | 26 | BuildRequires: pkgconfig |
0cfd1611 JB |
27 | # zlib with pkgconfig support |
28 | %{?with_zlib:BuildRequires: zlib-devel >= 1.2.3.3} | |
029e7ab3 CM |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | LibRaw is a library for reading RAW files obtained from digital photo | |
33 | cameras (CRW/CR2, NEF, RAF, DNG, and others). | |
34 | ||
35 | LibRaw is based on the source codes of the dcraw utility, where part | |
36 | of drawbacks have already been eliminated and part will be fixed in | |
37 | future. The users of the library are provided with API to be built | |
38 | into their software programs. | |
39 | ||
7a472efe JB |
40 | %description -l pl.UTF-8 |
41 | LibRaw to biblioteka do odczytu plików RAW uzyskanych z cyfrowych | |
42 | aparatów fotograficznych (w formacie CRW/CR2, NEF, RAF, DNG i innych). | |
43 | ||
44 | LibRaw jest oparty na kodzie źródłowym dcraw, z którego część wad | |
45 | została już wyeliminowana, a część zostanie poprawiona w przyszłości. | |
46 | ||
a20b088a | 47 | %package samples |
7a472efe JB |
48 | Summary: LibRaw sample programs |
49 | Summary(pl.UTF-8): Programy przykładowe do LibRaw | |
50 | Group: Applications/Graphics | |
a20b088a JK |
51 | |
52 | %description samples | |
53 | LibRaw sample programs. | |
54 | ||
7a472efe JB |
55 | %description samples -l pl.UTF-8 |
56 | Programy przykładowe do LibRaw. | |
57 | ||
029e7ab3 | 58 | %package devel |
a20b088a | 59 | Summary: Header files for LibRaw |
7a472efe | 60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibRaw |
029e7ab3 | 61 | Group: Development/Libraries |
696c095a | 62 | Requires: %{name} = %{version}-%{release} |
7a472efe | 63 | Requires: jasper-devel |
a45219fc | 64 | Requires: lcms2-devel >= 2 |
42b66beb | 65 | %{?with_openmp:Requires: libgomp-devel} |
0cfd1611 | 66 | Requires: libjpeg-devel >= 8 |
7a472efe | 67 | Requires: libstdc++-devel |
0cfd1611 | 68 | %{?with_zlib:Requires: zlib-devel >= 1.2.3.3} |
029e7ab3 CM |
69 | |
70 | %description devel | |
7a472efe JB |
71 | Header files for LibRaw. |
72 | ||
73 | %description devel -l pl.UTF-8 | |
74 | Pliki nagłówkowe biblioteki LibRaw. | |
029e7ab3 CM |
75 | |
76 | %package static | |
7a472efe JB |
77 | Summary: Static LibRaw library |
78 | Summary(pl.UTF-8): Statyczna biblioteka LibRaw | |
029e7ab3 CM |
79 | Group: Development/Libraries |
80 | Requires: %{name}-devel = %{version}-%{release} | |
81 | ||
82 | %description static | |
7a472efe JB |
83 | Static LibRaw library. |
84 | ||
85 | %description static -l pl.UTF-8 | |
86 | Statyczna biblioteka LibRaw. | |
029e7ab3 CM |
87 | |
88 | %prep | |
42b66beb | 89 | %setup -q -n LibRaw-%{version} |
029e7ab3 CM |
90 | |
91 | %build | |
a45219fc JB |
92 | %{__libtoolize} |
93 | %{__aclocal} -I m4 | |
94 | %{__autoconf} | |
95 | %{__automake} | |
2071f71c | 96 | %configure \ |
0cfd1611 JB |
97 | %{!?with_openmp:--disable-openmp} \ |
98 | %{?with_zlib:--enable-zlib} | |
7a472efe | 99 | |
42b66beb | 100 | %{__make} |
029e7ab3 CM |
101 | |
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
2071f71c JK |
105 | %{__make} install \ |
106 | DESTDIR=$RPM_BUILD_ROOT | |
029e7ab3 | 107 | |
0cfd1611 JB |
108 | # obsoleted by pkg-config |
109 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libraw*.la | |
110 | ||
7a472efe JB |
111 | # packaged as %doc |
112 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
029e7ab3 CM |
113 | |
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post -p /sbin/ldconfig | |
118 | %postun -p /sbin/ldconfig | |
119 | ||
2071f71c JK |
120 | %files |
121 | %defattr(644,root,root,755) | |
42b66beb | 122 | %doc COPYRIGHT Changelog.txt README.md LICENSE.CDDL LICENSE.LGPL |
ecc40057 | 123 | %attr(755,root,root) %{_libdir}/libraw.so.*.*.* |
42b66beb | 124 | %attr(755,root,root) %ghost %{_libdir}/libraw.so.20 |
ecc40057 | 125 | %attr(755,root,root) %{_libdir}/libraw_r.so.*.*.* |
42b66beb | 126 | %attr(755,root,root) %ghost %{_libdir}/libraw_r.so.20 |
2071f71c | 127 | |
a20b088a | 128 | %files samples |
029e7ab3 | 129 | %defattr(644,root,root,755) |
7a472efe JB |
130 | %attr(755,root,root) %{_bindir}/4channels |
131 | %attr(755,root,root) %{_bindir}/dcraw_emu | |
132 | %attr(755,root,root) %{_bindir}/dcraw_half | |
133 | %attr(755,root,root) %{_bindir}/half_mt | |
134 | %attr(755,root,root) %{_bindir}/mem_image | |
135 | %attr(755,root,root) %{_bindir}/multirender_test | |
136 | %attr(755,root,root) %{_bindir}/postprocessing_benchmark | |
137 | %attr(755,root,root) %{_bindir}/raw-identify | |
42b66beb | 138 | %attr(755,root,root) %{_bindir}/rawtextdump |
7a472efe JB |
139 | %attr(755,root,root) %{_bindir}/simple_dcraw |
140 | %attr(755,root,root) %{_bindir}/unprocessed_raw | |
029e7ab3 CM |
141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
a45219fc | 144 | %doc doc/*.html |
7a472efe JB |
145 | %attr(755,root,root) %{_libdir}/libraw.so |
146 | %attr(755,root,root) %{_libdir}/libraw_r.so | |
029e7ab3 | 147 | %{_includedir}/libraw |
a20b088a JK |
148 | %{_pkgconfigdir}/libraw.pc |
149 | %{_pkgconfigdir}/libraw_r.pc | |
029e7ab3 CM |
150 | |
151 | %files static | |
152 | %defattr(644,root,root,755) | |
153 | %{_libdir}/libraw.a | |
a20b088a | 154 | %{_libdir}/libraw_r.a |