2008-04-09 04:41:35 +02:00
|
|
|
#
|
2011-05-30 10:02:21 +02:00
|
|
|
# spec file for package libopenraw
|
2008-04-09 04:41:35 +02:00
|
|
|
#
|
2012-02-24 19:05:26 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-04-09 04:41:35 +02:00
|
|
|
#
|
2008-10-23 01:16:55 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-04-09 04:41:35 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-02-24 19:05:26 +01:00
|
|
|
|
|
|
|
|
2008-04-09 04:41:35 +02:00
|
|
|
Url: http://libopenraw.freedesktop.org/
|
2011-05-30 10:02:09 +02:00
|
|
|
Summary: A library to decode digital camera RAW files
|
2012-02-24 19:05:26 +01:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
Name: libopenraw
|
2011-11-15 14:17:41 +01:00
|
|
|
Version: 0.0.9
|
2011-12-02 20:08:30 +01:00
|
|
|
Release: 0
|
2011-11-15 14:17:41 +01:00
|
|
|
Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
|
2010-08-09 02:13:20 +02:00
|
|
|
Source99: baselibs.conf
|
2011-09-05 05:58:13 +02:00
|
|
|
# PATCH-FIX-UPSTREAM libopenraw-orf-thumbnail.patch bnc699678 glin@suse.com - Decompress otf files
|
|
|
|
Patch2: libopenraw-orf-thumbnail.patch
|
2012-05-10 07:50:52 +02:00
|
|
|
Patch3: openraw-noansiflag.patch
|
2008-04-09 04:41:35 +02:00
|
|
|
BuildRequires: boost-devel >= 1.33.1
|
2011-12-02 20:08:30 +01:00
|
|
|
BuildRequires: gcc-c++
|
2008-04-09 04:41:35 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2012-02-24 19:05:26 +01:00
|
|
|
BuildRequires: libtool
|
2010-08-09 02:13:20 +02:00
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.21
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
libopenraw is a library that aim at decoding digital camera RAW files.
|
|
|
|
|
|
|
|
%package -n libopenraw1
|
2011-05-30 10:02:09 +02:00
|
|
|
Summary: A library to decode digital camera RAW files
|
2012-02-24 19:05:26 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%description -n libopenraw1
|
|
|
|
libopenraw is a library that aim at decoding digital camera RAW files.
|
|
|
|
|
2010-08-09 02:13:20 +02:00
|
|
|
%package -n gdk-pixbuf-loader-libopenraw
|
2011-05-30 10:02:09 +02:00
|
|
|
Summary: A library to decode digital camera RAW files -- gdk-pixbuf loader
|
2012-02-24 19:05:26 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-08-09 02:13:20 +02:00
|
|
|
Supplements: packageand(libopenraw1:gdk-pixbuf)
|
|
|
|
%gdk_pixbuf_loader_requires
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2010-08-09 02:13:20 +02:00
|
|
|
%description -n gdk-pixbuf-loader-libopenraw
|
|
|
|
libopenraw is a library that aim at decoding digital camera RAW files.
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2010-08-09 02:13:20 +02:00
|
|
|
This package provides a libopenraw-based gdk-pixbuf loader.
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%package -n libopenraw-devel
|
2011-05-30 10:02:09 +02:00
|
|
|
Summary: A library to decode digital camera RAW files
|
2012-02-24 19:05:26 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-05-25 00:50:57 +02:00
|
|
|
Requires: libopenraw1 = %{version}
|
|
|
|
#include gdk-pixbuf/gdk-pixbuf.h
|
2010-08-09 02:13:20 +02:00
|
|
|
Requires: gdk-pixbuf-devel
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%description -n libopenraw-devel
|
|
|
|
libopenraw is a library that aim at decoding digital camera RAW files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-09-05 05:58:13 +02:00
|
|
|
%patch2 -p1
|
2012-05-10 07:50:52 +02:00
|
|
|
%patch3
|
2008-04-09 04:41:35 +02:00
|
|
|
%build
|
2012-02-24 19:05:26 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
export CXXFLAGS="%optflags -fvisibility-inlines-hidden"
|
2009-05-25 00:50:57 +02:00
|
|
|
%configure --disable-static --with-pic
|
2012-02-24 19:05:26 +01:00
|
|
|
%{__make} V=1 %{?jobs:-j%jobs}
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%install
|
2009-05-25 00:50:57 +02:00
|
|
|
%makeinstall
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2012-05-10 07:50:52 +02:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2009-05-25 00:50:57 +02:00
|
|
|
%post -n libopenraw1 -p /sbin/ldconfig
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2009-05-25 00:50:57 +02:00
|
|
|
%postun -n libopenraw1 -p /sbin/ldconfig
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2010-08-09 02:13:20 +02:00
|
|
|
%post -n gdk-pixbuf-loader-libopenraw
|
|
|
|
%gdk_pixbuf_loader_post
|
|
|
|
|
|
|
|
%postun -n gdk-pixbuf-loader-libopenraw
|
|
|
|
%gdk_pixbuf_loader_postun
|
|
|
|
|
2008-04-09 04:41:35 +02:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -n libopenraw1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README TODO COPYING ChangeLog
|
|
|
|
%{_libdir}/*.so.*
|
2010-08-09 02:13:20 +02:00
|
|
|
|
|
|
|
%files -n gdk-pixbuf-loader-libopenraw
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%files -n libopenraw-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%dir %{_includedir}/libopenraw-1.0
|
|
|
|
%{_includedir}/libopenraw-1.0/*
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|