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