63f6d3
Summary:	Decode camera RAW files
63f6d3
Name:		libopenraw
63f6d3
Version:	0.0.9
63f6d3
Release:	7%{?dist}
63f6d3
License:	LGPLv3+
63f6d3
URL:		http://libopenraw.freedesktop.org/wiki
63f6d3
Source0:	http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
63f6d3
Patch0: handle_close_error.patch
63f6d3
63f6d3
BuildRequires:	libtool autoconf automake
63f6d3
BuildRequires:	boost-devel
63f6d3
BuildRequires:	exempi-devel >= 1.99.5
63f6d3
BuildRequires:	gtk2-devel
63f6d3
BuildRequires:	libcurl-devel
63f6d3
BuildRequires:	libjpeg-devel
63f6d3
BuildRequires:	libxml2-devel
63f6d3
63f6d3
%description
63f6d3
libopenraw is an ongoing project to provide a free software
63f6d3
implementation for camera RAW files decoding. One of the main reason is
63f6d3
that dcraw is not suited for easy integration into applications, and
63f6d3
there is a need for an easy to use API to build free software digital
63f6d3
image processing application.
63f6d3
63f6d3
%package gnome
63f6d3
Summary:	GUI components of %{name}
63f6d3
63f6d3
Requires:	%{name} = %{version}-%{release}
63f6d3
63f6d3
%description gnome 
63f6d3
The %{name}-gnome package contains gui components of %{name}.
63f6d3
63f6d3
%package devel
63f6d3
Summary:	Development files for %{name}
63f6d3
63f6d3
Requires:	%{name} = %{version}-%{release}
63f6d3
Requires:	pkgconfig
63f6d3
63f6d3
%description devel
63f6d3
The %{name}-devel package contains libraries and header files for
63f6d3
developing applications that use %{name}.
63f6d3
63f6d3
%package gnome-devel
63f6d3
Summary:	Development files for %{name}-gnome
63f6d3
63f6d3
Requires:	%{name}-gnome = %{version}-%{release}
63f6d3
Requires:	%{name}-devel = %{version}-%{release}
63f6d3
Requires:	pkgconfig
63f6d3
63f6d3
%description    gnome-devel
63f6d3
The %{name}-gnome-devel package contains libraries and header files for
63f6d3
developing applications that use %{name}-gnome.
63f6d3
63f6d3
%package pixbuf-loader
63f6d3
Summary:	RAW image loader for GTK+ applications
63f6d3
63f6d3
Requires:	gtk2
63f6d3
Requires:	%{name} = %{version}-%{release}
63f6d3
Requires(post):   gdk-pixbuf2
63f6d3
Requires(postun): gdk-pixbuf2
63f6d3
63f6d3
%description pixbuf-loader
63f6d3
%{name}-pixbuf-loader contains a plugin to load RAW images, as created by
63f6d3
digital cameras, in GTK+ applications.
63f6d3
63f6d3
%prep
63f6d3
%setup -q
63f6d3
%patch0 -p1
63f6d3
63f6d3
%build
63f6d3
%configure --disable-static --enable-gnome
63f6d3
63f6d3
# Omit unused direct shared library dependencies.
63f6d3
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
63f6d3
63f6d3
make %{?_smp_mflags}
63f6d3
63f6d3
%check
63f6d3
make check
63f6d3
63f6d3
%install
63f6d3
rm -rf $RPM_BUILD_ROOT
63f6d3
63f6d3
make install DESTDIR=$RPM_BUILD_ROOT
63f6d3
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
63f6d3
63f6d3
%post -p /sbin/ldconfig
63f6d3
63f6d3
%postun -p /sbin/ldconfig
63f6d3
63f6d3
%post gnome -p /sbin/ldconfig
63f6d3
63f6d3
%postun gnome -p /sbin/ldconfig
63f6d3
63f6d3
%post pixbuf-loader
63f6d3
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
63f6d3
63f6d3
63f6d3
%postun pixbuf-loader
63f6d3
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
63f6d3
63f6d3
%files
63f6d3
%doc AUTHORS
63f6d3
%doc ChangeLog
63f6d3
%doc COPYING
63f6d3
%doc NEWS
63f6d3
%doc README
63f6d3
%doc TODO 
63f6d3
%{_libdir}/%{name}.so.*
63f6d3
63f6d3
%files gnome
63f6d3
%{_libdir}/%{name}gnome.so.*
63f6d3
63f6d3
%files devel
63f6d3
%{_libdir}/%{name}.so
63f6d3
%{_libdir}/pkgconfig/%{name}-1.0.pc
63f6d3
63f6d3
%dir %{_includedir}/%{name}-1.0
63f6d3
%{_includedir}/%{name}-1.0/%{name}/*.h
63f6d3
63f6d3
%files gnome-devel
63f6d3
%{_libdir}/%{name}gnome.so
63f6d3
%{_libdir}/pkgconfig/%{name}-gnome-1.0.pc
63f6d3
63f6d3
%dir %{_includedir}/%{name}-1.0/%{name}-gnome
63f6d3
%{_includedir}/%{name}-1.0/%{name}-gnome/gdkpixbuf.h
63f6d3
63f6d3
%files pixbuf-loader
63f6d3
%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
63f6d3
63f6d3
%changelog
63f6d3
* Thu Jan 14 2016 Wim Taymans <wtaymans@redhat.com> - 0.0.9-7
63f6d3
- Handle errors in the close function
63f6d3
- Resolves: rhbz#1279153
63f6d3
63f6d3
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.0.9-6
63f6d3
- Mass rebuild 2014-01-24
63f6d3
63f6d3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.0.9-5
63f6d3
- Mass rebuild 2013-12-27
63f6d3
63f6d3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9-4
63f6d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
63f6d3
63f6d3
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.0.9-3
63f6d3
- rebuild due to "jpeg8-ABI" feature drop
63f6d3
63f6d3
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.0.9-2
63f6d3
- rebuild against new libjpeg
63f6d3
63f6d3
* Sun Sep 30 2012 Julian Sikorski <belegdol@fedoraproject.org> - 0.0.9-1
63f6d3
- Updated to 0.0.9
63f6d3
- Dropped obsolete Group, Buildroot, %%clean and %%defattr
63f6d3
- Switched to .bz2 sources
63f6d3
- Dropped included patches
63f6d3
63f6d3
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-8
63f6d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
63f6d3
63f6d3
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-7
63f6d3
- Rebuilt for c++ ABI breakage
63f6d3
63f6d3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-6
63f6d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
63f6d3
63f6d3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-5
63f6d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
63f6d3
63f6d3
* Sun Oct 24 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-4
63f6d3
- fix %%post and %%postun scripts and install directory for
63f6d3
  pixbuf-loader
63f6d3
63f6d3
* Sun Oct 24 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-3
63f6d3
- add upstream patch 22287584fbfa4657098ee997957a6c4fc972a53b to
63f6d3
  properly decompress CFA from certain cameras (BZ 624283)
63f6d3
63f6d3
* Wed Sep 08 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-2
63f6d3
- add upstream patch 1b15acdcfdc4664bc6c0be473cb6e096071a4e62
63f6d3
  to support certain PEF files and to fix a crash when opening
63f6d3
  such files (BZ 606898)
63f6d3
63f6d3
* Sat Dec 05 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.0.8-1
63f6d3
- Version bump to 0.0.8.
63f6d3
  * Fixed a huge memory leak. (FreeDesktop Bugzilla #21435)
63f6d3
  * cfa output should write the data in PGM as big endian.
63f6d3
  * Better handling of Canon CR2 "slices" to fix crasher with Canon
63f6d3
    450D/Digital Rebel XSi files (and possibly others).
63f6d3
  * Added new API or_rawfile_new_from_memory() to load a Raw file from a
63f6d3
    memory buffer.
63f6d3
  * Added new API or_rawfile_get_typeid() and the associated consts.
63f6d3
  * Added new API or_rawdata_get_minmax().
63f6d3
  * Added new API or_get_file_extensions().
63f6d3
  * Added new API or_rawfile_get_rendered_image() to get a rendered image.
63f6d3
  * Added new API or_bitmapdata_*().
63f6d3
  * New GdkPixbuf loader.
63f6d3
  * Decompress NEF files.
63f6d3
- License changed to LGPLv3 or later.
63f6d3
- Missing includes fixed by upstream.
63f6d3
- Replaced 'BuildRequires: chrpath glib2-devel' with 'BuildRequires:
63f6d3
  exempi-devel libcurl-devel'.
63f6d3
- Added 'Requires: gtk2' to pixbuf-loader for directory ownership.
63f6d3
- Added a %%check stanza.
63f6d3
63f6d3
* Fri Jul 24 2009 Release Engineering <rel-eng@fedoraproject.org> - 0.0.5-4
63f6d3
- Autorebuild for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
63f6d3
63f6d3
* Wed Feb 25 2009 Caolán McNamara <caolanm@redhat.com> - 0.0.5-3
63f6d3
- add stdio.h for fopen and friends
63f6d3
63f6d3
* Wed Feb 25 2009 Release Engineering <rel-eng@fedoraproject.org> - 0.0.5-2
63f6d3
- Autorebuild for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
63f6d3
63f6d3
* Tue Mar 04 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.5-1
63f6d3
- New upstream version.
63f6d3
63f6d3
* Wed Feb 20 2008 Release Engineering <rel-eng@fedoraproject.org> - 0.0.4-3
63f6d3
- Autorebuild for GCC 4.3
63f6d3
63f6d3
* Wed Jan 30 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.4-2
63f6d3
- Added missing dependency on libxml
63f6d3
63f6d3
* Wed Jan 30 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.4-1
63f6d3
- New upstream version.
63f6d3
63f6d3
* Fri Dec 28 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.3-1
63f6d3
- New upstream version.
63f6d3
- Updated license tag.
63f6d3
- Fixed rpath error.
63f6d3
63f6d3
* Thu May 03 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-5
63f6d3
- Added unowned directory to list of files.
63f6d3
- Changed license from GPL to LGPL.
63f6d3
63f6d3
* Wed May 02 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-4
63f6d3
- Moved gui components to a separate package.
63f6d3
63f6d3
* Tue May 01 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-3
63f6d3
- Added missing BuildRequirement.
63f6d3
63f6d3
* Mon Apr 30 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-2
63f6d3
- Added missing BuildRequirement.
63f6d3
63f6d3
* Sun Apr 29 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-1
63f6d3
- Inital version.