]> git.pld-linux.org Git - packages/libraw.git/blame - libraw.spec
- up to 0.21.2
[packages/libraw.git] / libraw.spec
CommitLineData
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#
6Summary: LibRaw - a library for reading RAW files
7Summary(pl.UTF-8): LibRaw - biblioteka do odczytu plików RAW
029e7ab3 8Name: libraw
f96ba528 9Version: 0.21.2
58c2b007 10Release: 1
0cfd1611 11License: LGPL v2.1 or CDDL v1.0
029e7ab3 12Group: Libraries
dcb381e1 13#Source0Download: http://www.libraw.org/download#stable
499be3d0 14Source0: https://www.libraw.org/data/LibRaw-%{version}.tar.gz
f96ba528 15# Source0-md5: 0533724bad17c0fde22e642e4594e45d
18b6070a 16Patch0: int64.patch
499be3d0 17URL: https://www.libraw.org/
a45219fc
JB
18BuildRequires: autoconf >= 2.50
19BuildRequires: automake
3d12e4b8 20%{?with_openmp:BuildRequires: gcc >= 6:4.2}
2071f71c 21BuildRequires: jasper-devel
a45219fc 22BuildRequires: lcms2-devel >= 2
3d12e4b8 23%{?with_openmp:BuildRequires: libgomp-devel}
0cfd1611 24BuildRequires: libjpeg-devel >= 8
7a472efe 25BuildRequires: libstdc++-devel
a45219fc 26BuildRequires: libtool
7a472efe 27BuildRequires: pkgconfig
0cfd1611
JB
28# zlib with pkgconfig support
29%{?with_zlib:BuildRequires: zlib-devel >= 1.2.3.3}
029e7ab3
CM
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33LibRaw is a library for reading RAW files obtained from digital photo
34cameras (CRW/CR2, NEF, RAF, DNG, and others).
35
36LibRaw is based on the source codes of the dcraw utility, where part
37of drawbacks have already been eliminated and part will be fixed in
38future. The users of the library are provided with API to be built
39into their software programs.
40
7a472efe
JB
41%description -l pl.UTF-8
42LibRaw to biblioteka do odczytu plików RAW uzyskanych z cyfrowych
43aparatów fotograficznych (w formacie CRW/CR2, NEF, RAF, DNG i innych).
44
45LibRaw jest oparty na kodzie źródłowym dcraw, z którego część wad
46została już wyeliminowana, a część zostanie poprawiona w przyszłości.
47
a20b088a 48%package samples
7a472efe
JB
49Summary: LibRaw sample programs
50Summary(pl.UTF-8): Programy przykładowe do LibRaw
51Group: Applications/Graphics
a20b088a
JK
52
53%description samples
54LibRaw sample programs.
55
7a472efe
JB
56%description samples -l pl.UTF-8
57Programy przykładowe do LibRaw.
58
029e7ab3 59%package devel
a20b088a 60Summary: Header files for LibRaw
7a472efe 61Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibRaw
029e7ab3 62Group: Development/Libraries
696c095a 63Requires: %{name} = %{version}-%{release}
7a472efe 64Requires: jasper-devel
a45219fc 65Requires: lcms2-devel >= 2
42b66beb 66%{?with_openmp:Requires: libgomp-devel}
0cfd1611 67Requires: libjpeg-devel >= 8
7a472efe 68Requires: libstdc++-devel
0cfd1611 69%{?with_zlib:Requires: zlib-devel >= 1.2.3.3}
029e7ab3
CM
70
71%description devel
7a472efe
JB
72Header files for LibRaw.
73
74%description devel -l pl.UTF-8
75Pliki nagłówkowe biblioteki LibRaw.
029e7ab3
CM
76
77%package static
7a472efe
JB
78Summary: Static LibRaw library
79Summary(pl.UTF-8): Statyczna biblioteka LibRaw
029e7ab3
CM
80Group: Development/Libraries
81Requires: %{name}-devel = %{version}-%{release}
82
83%description static
7a472efe
JB
84Static LibRaw library.
85
86%description static -l pl.UTF-8
87Statyczna 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
105rm -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
117rm -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
This page took 0.134546 seconds and 4 git commands to generate.