source: projects/specs/trunk/L/LibRaw/LibRaw-vl.spec @ 1343

Revision 1343, 2.1 KB checked in by kudoh, 14 years ago (diff)
Line 
1Summary: Library for reading RAW files obtained from digital photo cameras
2Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
3Name: LibRaw
4Version: 0.9.1
5Release: 1%{?_dist_release}
6License: LGPLv2 or CDDL
7Group: System Environment/Libraries
8URL: http://www.libraw.org
9BuildRoot: %{_tmppath}/%{name}-%{version}-root
10
11Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
12
13# Configuration support. Patch sent upstream
14Patch0: %{name}-0.9.1-configure.patch
15# Use optflags for build
16Patch1: %{name}-0.9.1-configure-optflags.patch
17# Don't impose -O4 and -w
18Patch2: %{name}-0.9.1-configure-default-cflags.patch
19
20%description
21LibRaw is a library for reading RAW files obtained from digital photo
22cameras (CRW/CR2, NEF, RAF, DNG, and others).
23
24LibRaw is based on the source codes of the dcraw utility, where part of
25drawbacks have already been eliminated and part will be fixed in future.
26
27%package devel
28Summary: LibRaw development libraries
29Summary(ja): LibRaw の開発ライブラリ
30Group: Development/Libraries
31
32%description devel
33LibRaw development libraries
34
35This package contains static libraries that applications can use to build
36against libraw. LibRaw does not provide dynamic libraries.
37
38%prep
39%setup -q -n %{name}-%{version}
40
41%patch0 -p1 -b .configure
42%patch1 -p1 -b .configure-optflags
43%patch2 -p1 -b .configure-default-cflags
44
45%build
46# This is not the autotools generated configure script
47CFLAGS="%{optflags}" sh configure -P %{_prefix}
48make %{?_smp_mflags}
49
50%install
51rm -rf %{buildroot}
52cp -pr doc manual
53
54# The source tree has these with execute permissions for some reason
55chmod 644 LICENSE.CDDL LICENSE.LGPL LICENSE.LibRaw.pdf
56
57# The Libraries
58make install DESTDIR=%{buildroot} LIBDIR=%{_lib}
59
60%files devel
61%defattr(-,root,root,-)
62
63%doc LICENSE.CDDL LICENSE.LibRaw.pdf LICENSE.LGPL COPYRIGHT Changelog.txt Changelog.rus
64%doc manual
65
66%dir %{_includedir}/libraw
67%{_includedir}/libraw/*.h
68%{_libdir}/libraw.a
69%{_libdir}/libraw_r.a
70
71%changelog
72* Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
73- initial build for VineSeed
74
75* Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
76- New package
Note: See TracBrowser for help on using the repository browser.