[1343] | 1 | Summary: Library for reading RAW files obtained from digital photo cameras |
---|
| 2 | Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ |
---|
| 3 | Name: LibRaw |
---|
| 4 | Version: 0.9.1 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 6 | License: LGPLv2 or CDDL |
---|
| 7 | Group: System Environment/Libraries |
---|
| 8 | URL: http://www.libraw.org |
---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 10 | |
---|
| 11 | Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz |
---|
| 12 | |
---|
| 13 | # Configuration support. Patch sent upstream |
---|
| 14 | Patch0: %{name}-0.9.1-configure.patch |
---|
| 15 | # Use optflags for build |
---|
| 16 | Patch1: %{name}-0.9.1-configure-optflags.patch |
---|
| 17 | # Don't impose -O4 and -w |
---|
| 18 | Patch2: %{name}-0.9.1-configure-default-cflags.patch |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | LibRaw is a library for reading RAW files obtained from digital photo |
---|
| 22 | cameras (CRW/CR2, NEF, RAF, DNG, and others). |
---|
| 23 | |
---|
| 24 | LibRaw is based on the source codes of the dcraw utility, where part of |
---|
| 25 | drawbacks have already been eliminated and part will be fixed in future. |
---|
| 26 | |
---|
| 27 | %package devel |
---|
| 28 | Summary: LibRaw development libraries |
---|
| 29 | Summary(ja): LibRaw の開発ライブラリ |
---|
| 30 | Group: Development/Libraries |
---|
| 31 | |
---|
| 32 | %description devel |
---|
| 33 | LibRaw development libraries |
---|
| 34 | |
---|
| 35 | This package contains static libraries that applications can use to build |
---|
| 36 | against 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 |
---|
| 47 | CFLAGS="%{optflags}" sh configure -P %{_prefix} |
---|
| 48 | make %{?_smp_mflags} |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | rm -rf %{buildroot} |
---|
| 52 | cp -pr doc manual |
---|
| 53 | |
---|
| 54 | # The source tree has these with execute permissions for some reason |
---|
| 55 | chmod 644 LICENSE.CDDL LICENSE.LGPL LICENSE.LibRaw.pdf |
---|
| 56 | |
---|
| 57 | # The Libraries |
---|
| 58 | make 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 |
---|