1b03749
# No point in trying to build a debuginfo package since
1b03749
# the package only has static libraries and find-debuginfo.sh
1b03749
# does not grok them
1b03749
%global debug_package %{nil}
1b03749
1b03749
Summary: Library for reading RAW files obtained from digital photo cameras
1b03749
Name: LibRaw
1b03749
Version: 0.9.1
Siddhesh Poyarekar 3e1cc66
Release: 9%{?dist}
1b03749
License: LGPLv2 or CDDL
1b03749
Group: Development/Libraries
1b03749
URL: http://www.libraw.org
1b03749
1b03749
#BuildRequires: lcms-devel >= 1.0
1b03749
1b03749
Source0: http://www.libraw.org/data/%{name}-%{version}.tar.gz
1b03749
1b03749
# Configuration support. Patch sent upstream
1b03749
Patch0: %{name}-0.9.1-configure.patch
1b03749
1b03749
# Use optflags for build
1b03749
Patch1: %{name}-0.9.1-configure-optflags.patch
1b03749
1b03749
# Don't impose -O4 and -w
1b03749
Patch2: %{name}-0.9.1-configure-default-cflags.patch
1b03749
1b03749
%description
1b03749
LibRaw is a library for reading RAW files obtained from digital photo
1b03749
cameras (CRW/CR2, NEF, RAF, DNG, and others).
1b03749
1b03749
LibRaw is based on the source codes of the dcraw utility, where part of
1b03749
drawbacks have already been eliminated and part will be fixed in future.
1b03749
1b03749
%package devel
1b03749
Provides: LibRaw-static = %{version}-%{release}
1b03749
Summary: LibRaw development libraries
1b03749
Group: Development/Libraries
1b03749
#Requires: lcms-devel >= 1.0
1b03749
1b03749
%description devel
1b03749
LibRaw development libraries
1b03749
1b03749
This package contains static libraries that applications can use to build
1b03749
against LibRaw. LibRaw does not provide dynamic libraries.
1b03749
1b03749
%prep
1b03749
%setup -q
1b03749
1b03749
%patch0 -p1 -b .configure
1b03749
%patch1 -p1 -b .configure-optflags
1b03749
%patch2 -p1 -b .configure-default-cflags
1b03749
1b03749
%build
1b03749
# This is not the autotools generated configure script
Siddhesh Poyarekar 3e1cc66
CFLAGS="%{optflags} -fPIC" sh configure -P %{_prefix}
1b03749
make %{?_smp_mflags}
1b03749
1b03749
%install
1b03749
cp -pr doc manual
1b03749
1b03749
# The source tree has these with execute permissions for some reason
1b03749
chmod 644 LICENSE.CDDL LICENSE.LGPL LICENSE.LibRaw.pdf
1b03749
1b03749
# The Libraries
1b03749
make install DESTDIR=%{buildroot} LIBDIR=%{_lib}
1b03749
1b03749
%files devel
1b03749
%defattr(-,root,root,-)
1b03749
1b03749
%doc LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt Changelog.rus
1b03749
%doc manual
1b03749
1b03749
%dir %{_includedir}/libraw
1b03749
%{_includedir}/libraw/*.h
1b03749
%{_libdir}/libraw.a
1b03749
%{_libdir}/libraw_r.a
1b03749
1b03749
%changelog
Siddhesh Poyarekar 3e1cc66
* Sat Nov 13 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-9
Siddhesh Poyarekar 3e1cc66
- Build position independent object code
Siddhesh Poyarekar 3e1cc66
1b03749
* Sun Jul 08 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-8
1b03749
- Remove LibRaw license since we're not distributing LibRaw under its terms
1b03749
1b03749
* Sun Jul 07 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-7
1b03749
- Buildroot is unnecessary
1b03749
- Corrected license to LGPLv2 or CDDL
1b03749
1b03749
* Sun Jul 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-6
1b03749
- Do not impose -O4 and -w in build options
1b03749
- Change package group to Development/Libraries
1b03749
- Corrected license to LGPLv2
1b03749
- setup macro no longer needs the name and version arguments
1b03749
- Rename patches to include name and version
1b03749
1b03749
* Wed Jun 30 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-5
1b03749
- Use optflags for build
1b03749
- Install the documentation in a cleaner way
1b03749
1b03749
* Tue Jun 29 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-4
1b03749
- Use upstream package name (libRaw) instead of libraw
1b03749
1b03749
* Tue Jun 29 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-3
1b03749
- Remove the clean section since it is not needed in F-13 and later
1b03749
- Correct installation of docs into defaultdocdir instead of docdir
1b03749
1b03749
* Fri Jun 10 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-2
1b03749
- Disable lcms and openmp support by default so that we're in line with
1b03749
  upstream default
1b03749
1b03749
* Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
1b03749
- New package
1b03749