]> git.pld-linux.org Git - packages/libraw.git/blame - libraw.spec
- Version: 0.10.0 (stable)
[packages/libraw.git] / libraw.spec
CommitLineData
029e7ab3
CM
1# TODO:
2# - Docs
029e7ab3
CM
3# - Get upstream to include proper configure!
4
5%define _packname LibRaw
6
7Summary: LibRaw is a library for reading RAW files
8Name: libraw
a9095c77 9Version: 0.10.0
a20b088a 10Release: 1
029e7ab3
CM
11License: LGPL 2.1 / CDDL 1.0 / LibRaw Software License
12Group: Libraries
a20b088a
JK
13Source0: http://www.libraw.org/data/%{_packname}-%{version}.tar.gz
14# Source0-md5: 248456748c8310c99c3593bfa6bf71be
15Patch0: %{name}-pkgconfig.patch
029e7ab3
CM
16URL: http://www.libraw.org
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20LibRaw is a library for reading RAW files obtained from digital photo
21cameras (CRW/CR2, NEF, RAF, DNG, and others).
22
23LibRaw is based on the source codes of the dcraw utility, where part
24of drawbacks have already been eliminated and part will be fixed in
25future. The users of the library are provided with API to be built
26into their software programs.
27
a20b088a
JK
28%package samples
29Summary: libraw sample programs
30Group: Applications
31
32%description samples
33LibRaw sample programs.
34
029e7ab3 35%package devel
a20b088a 36Summary: Header files for LibRaw
029e7ab3 37Group: Development/Libraries
029e7ab3
CM
38
39%description devel
a20b088a 40Static libraries and header files for LibRaw.
029e7ab3
CM
41
42%package static
43Summary: Static libraw library
44Group: Development/Libraries
45Requires: %{name}-devel = %{version}-%{release}
46
47%description static
48Static FOO library.
49
50%prep
a20b088a
JK
51%setup -q -n %{_packname}-%{version}
52%patch0 -p1
029e7ab3
CM
53
54%build
55%{__make}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
60#%{__make} install \
61 #DESTDIR=$RPM_BUILD_ROOT
62
a20b088a
JK
63install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},%{_pkgconfigdir}}
64cp -R libraw $RPM_BUILD_ROOT%{_includedir}
65install lib/libraw{,_r}.a $RPM_BUILD_ROOT%{_libdir}
66install bin/[a-z]* $RPM_BUILD_ROOT%{_bindir}
67install *.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
029e7ab3
CM
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%post -p /sbin/ldconfig
73%postun -p /sbin/ldconfig
74
a20b088a 75%files samples
029e7ab3
CM
76%defattr(644,root,root,755)
77%attr(755,root,root) %{_bindir}/*
78
79%files devel
80%defattr(644,root,root,755)
81%{_includedir}/libraw
a20b088a
JK
82%{_pkgconfigdir}/libraw.pc
83%{_pkgconfigdir}/libraw_r.pc
84%{_libdir}/libraw.a
85%{_libdir}/libraw_r.a
029e7ab3 86
a20b088a
JK
87%if 0
88# only static library built, included in the -devel package
029e7ab3
CM
89%files static
90%defattr(644,root,root,755)
91%{_libdir}/libraw.a
a20b088a
JK
92%{_libdir}/libraw_r.a
93%endif
This page took 0.066477 seconds and 4 git commands to generate.