Summary: A library for reading RAW files from digital cameras Name: libraw Version: 0.6.0 Release: 1%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://www.libraw.org/ Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch1: libraw-0.6.0-makefile.patch # -debuginfo useless for (only) static libs %define debug_package %{nil} %description LibRaw is a library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others). It is based on the source codes of the dcraw utility. The users of the library are provided with API to be built into their software programs. %package devel Summary: A library for reading RAW files from digital cameras Group: Development/Libraries Provides: %{name}-static = %{version}-%{release} %description devel LibRaw is a library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others). It is based on the source codes of the dcraw utility. The users of the library are provided with API to be built into their software programs. %prep %setup -q -n LibRaw-%{version} %patch1 -p1 -b .makefile %build CFLAGS="%{optflags} -fopenmp" \ LCMS_DEF="-DUSE_LCMS %(pkg-config --cflags lcms)" \ LCMS_LIB="%(pkg-config --libs lcms)" \ make %{?_smp_mflags} prefix=%{_prefix} %install rm -rf %{buildroot} mkdir -p %{buildroot}{%{_bindir},%{_includedir},%{_libdir}} make install\ prefix=%{buildroot}%{_prefix} \ libdir=%{buildroot}%{_libdir} %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files devel %defattr(-,root,root,-) %doc COPYRIGHT %doc Changelog.txt %doc doc/ %{_includedir}/* %{_libdir}/lib*.a %changelog * Wed Sep 24 2008 Rex Dieter 0.6.0-1 - first try