3 # - Get upstream to include proper configure!
5 %define _packname LibRaw
7 Summary: LibRaw is a library for reading RAW files
11 License: LGPL 2.1 / CDDL 1.0 / LibRaw Software License
13 Source0: http://www.libraw.org/data/%{_packname}-%{version}.tar.gz
14 # Source0-md5: 248456748c8310c99c3593bfa6bf71be
15 Patch0: %{name}-pkgconfig.patch
16 URL: http://www.libraw.org
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 LibRaw is a library for reading RAW files obtained from digital photo
21 cameras (CRW/CR2, NEF, RAF, DNG, and others).
23 LibRaw is based on the source codes of the dcraw utility, where part
24 of drawbacks have already been eliminated and part will be fixed in
25 future. The users of the library are provided with API to be built
26 into their software programs.
29 Summary: libraw sample programs
33 LibRaw sample programs.
36 Summary: Header files for LibRaw
37 Group: Development/Libraries
40 Static libraries and header files for LibRaw.
43 Summary: Static libraw library
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
51 %setup -q -n %{_packname}-%{version}
58 rm -rf $RPM_BUILD_ROOT
61 #DESTDIR=$RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},%{_pkgconfigdir}}
64 cp -R libraw $RPM_BUILD_ROOT%{_includedir}
65 install lib/libraw{,_r}.a $RPM_BUILD_ROOT%{_libdir}
66 install bin/[a-z]* $RPM_BUILD_ROOT%{_bindir}
67 install *.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
70 rm -rf $RPM_BUILD_ROOT
72 %post -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_bindir}/*
80 %defattr(644,root,root,755)
82 %{_pkgconfigdir}/libraw.pc
83 %{_pkgconfigdir}/libraw_r.pc
88 # only static library built, included in the -devel package
90 %defattr(644,root,root,755)