]> git.pld-linux.org Git - packages/libraw.git/blame - libraw.spec
libraw-devel R: libraw
[packages/libraw.git] / libraw.spec
CommitLineData
029e7ab3
CM
1Summary: LibRaw is a library for reading RAW files
2Name: libraw
2071f71c 3Version: 0.14.7
696c095a 4Release: 2
029e7ab3
CM
5License: LGPL 2.1 / CDDL 1.0 / LibRaw Software License
6Group: Libraries
2071f71c
JK
7Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
8# Source0-md5: 8b622d82c927d8975c22ee4316584ebd
029e7ab3 9URL: http://www.libraw.org
3582f39d 10BuildRequires: libstdc++-devel
2071f71c
JK
11BuildRequires: libgomp-devel
12BuildRequires: jasper-devel
13BuildRequires: libjpeg-devel
14BuildRequires: lcms2-devel
029e7ab3
CM
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18LibRaw is a library for reading RAW files obtained from digital photo
19cameras (CRW/CR2, NEF, RAF, DNG, and others).
20
21LibRaw is based on the source codes of the dcraw utility, where part
22of drawbacks have already been eliminated and part will be fixed in
23future. The users of the library are provided with API to be built
24into their software programs.
25
a20b088a
JK
26%package samples
27Summary: libraw sample programs
28Group: Applications
29
30%description samples
31LibRaw sample programs.
32
029e7ab3 33%package devel
a20b088a 34Summary: Header files for LibRaw
029e7ab3 35Group: Development/Libraries
696c095a 36Requires: %{name} = %{version}-%{release}
029e7ab3
CM
37
38%description devel
a20b088a 39Static libraries and header files for LibRaw.
029e7ab3
CM
40
41%package static
42Summary: Static libraw library
43Group: Development/Libraries
44Requires: %{name}-devel = %{version}-%{release}
45
46%description static
2071f71c 47Static libraw library.
029e7ab3
CM
48
49%prep
2071f71c 50%setup -q -n LibRaw-%{version}
029e7ab3
CM
51
52%build
2071f71c
JK
53%configure \
54 LIBS="-lgomp"
029e7ab3
CM
55%{__make}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
2071f71c
JK
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT
029e7ab3 62
2071f71c 63rm -r $RPM_BUILD_ROOT/%{_docdir}/%{name}
029e7ab3
CM
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%post -p /sbin/ldconfig
69%postun -p /sbin/ldconfig
70
2071f71c
JK
71%files
72%defattr(644,root,root,755)
73%doc README* COPYRIGHT
74%ghost %attr(755,root,root) %{_libdir}/libraw.so.5
75%attr(755,root,root) %{_libdir}/libraw.so.5.*
76%ghost %attr(755,root,root) %{_libdir}/libraw_r.so.5
77%attr(755,root,root) %{_libdir}/libraw_r.so.5.*
78
a20b088a 79%files samples
029e7ab3
CM
80%defattr(644,root,root,755)
81%attr(755,root,root) %{_bindir}/*
82
83%files devel
84%defattr(644,root,root,755)
2071f71c 85%doc doc/*
029e7ab3 86%{_includedir}/libraw
a20b088a
JK
87%{_pkgconfigdir}/libraw.pc
88%{_pkgconfigdir}/libraw_r.pc
2071f71c
JK
89%{_libdir}/libraw.la
90%{_libdir}/libraw_r.la
91%{_libdir}/libraw.so
92%{_libdir}/libraw_r.so
029e7ab3
CM
93
94%files static
95%defattr(644,root,root,755)
96%{_libdir}/libraw.a
a20b088a 97%{_libdir}/libraw_r.a
2071f71c 98
This page took 0.133375 seconds and 4 git commands to generate.