LibRaw/LibRaw.spec

110 lines
3.3 KiB
RPMSpec
Raw Normal View History

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