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