Browse Source

Fedora: exempi, libopenraw, raw-thumbnailer

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4128 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 13 years ago
parent
commit
040188ce33
3 changed files with 436 additions and 0 deletions
  1. 109 0
      e/exempi/exempi.spec
  2. 236 0
      lib/libo/libopenraw/libopenraw.spec
  3. 91 0
      r/raw-thumbnailer/raw-thumbnailer.spec

+ 109 - 0
e/exempi/exempi.spec

@@ -0,0 +1,109 @@
+Summary:	Library for easy parsing of XMP metadata
+Name:		exempi
+Version:	2.1.1
+Release:	2%{?dist}
+License:	BSD
+Group:		System Environment/Libraries
+URL:		http://libopenraw.freedesktop.org/wiki/Exempi
+Source0:	http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:	boost-devel expat-devel zlib-devel pkgconfig
+
+%description
+Exempi provides a library for easy parsing of XMP metadata. It is a port of 
+Adobe XMP SDK to work on UNIX and to be build with GNU automake.
+It includes XMPCore and XMPFiles.
+
+%package devel
+Summary:	Headers for developing programs that will use %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	pkgconfig
+
+%description devel
+This package contains the libraries and header files needed for
+developing with exempi
+
+%prep
+%setup -q
+
+%build
+%configure LDFLAGS="-L%{_libdir}" CPPFLAGS="-I%{_includedir}"
+# Disable rpath
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} install
+
+rm -rf %{buildroot}%{_libdir}/*.la
+rm -rf %{buildroot}%{_libdir}/*.a
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-, root, root, -)
+%doc AUTHORS ChangeLog COPYING README
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-, root, root, -)
+%{_includedir}/exempi-2.0/
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+
+%changelog
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Mon May  3 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1.1-1
+- Update to 2.1.1
+- Add testsuite execution
+- Removed build patch for gcc-4.4 (fixed in upstream)
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 04 2009 Deji Akingunola <dakingun@gmail.com> - 2.1.0-2
+- Add patch to build with gcc-4.4
+
+* Tue Jan 06 2009 Deji Akingunola <dakingun@gmail.com> - 2.1.0-1
+- Update to 2.1.0
+    
+* Sat May 17 2008 Deji Akingunola <dakingun@gmail.com> - 2.0.1-1
+- Update to 2.0.1
+
+* Wed Apr 02 2008 Deji Akingunola <dakingun@gmail.com> - 2.0.0-1
+- Update to 2.0.0
+
+* Fri Feb 08 2008 Deji Akingunola <dakingun@gmail.com> - 1.99.9-1
+- Update to 1.99.9
+
+* Sun Jan 13 2008 Deji Akingunola <dakingun@gmail.com> - 1.99.7-1
+- Update to 1.99.7
+
+* Mon Dec 03 2007 Deji Akingunola <dakingun@gmail.com> - 1.99.5-1
+- Update to 1.99.5
+
+* Wed Sep 05 2007 Deji Akingunola <dakingun@gmail.com> - 1.99.4-2
+- Rebuild for expat 2.0
+
+* Wed Aug 22 2007 Deji Akingunola <dakingun@gmail.com> - 1.99.4-1
+- Update tp 1.99.4
+
+* Tue Jul 10 2007 Deji Akingunola <dakingun@gmail.com> - 1.99.3-1
+- Initial packaging for Fedora

+ 236 - 0
lib/libo/libopenraw/libopenraw.spec

@@ -0,0 +1,236 @@
+Summary:	Decode camera RAW files
+Name:		libopenraw
+Version:	0.0.8
+Release:	5%{?dist}
+License:	LGPLv3+
+Group:		System Environment/Libraries
+URL:		http://libopenraw.freedesktop.org/wiki
+Source0:	http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz
+# upstream patch 1b15acdcfdc4664bc6c0be473cb6e096071a4e62 adds support
+# for certain PEF files and fixes a crash when opening such files
+Patch0:		0001-Support-partially-PEF-from-Pentax-K20D.patch
+# upstream patch 22287584fbfa4657098ee997957a6c4fc972a53b to
+# properly decompress CFA from certain cameras (patch slightly modified
+# to omit patching README)
+Patch1:		0001-Properly-decompress-CFA-from-Canon-7D-5DMkII-500D-1D.patch
+# https://bugs.freedesktop.org/show_bug.cgi?id=31088
+Patch2:		libopenraw-0.0.8-pixbufloaderdir.patch
+
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires:	libtool autoconf automake
+BuildRequires:	boost-devel
+BuildRequires:	exempi-devel >= 1.99.5
+BuildRequires:	gtk2-devel
+BuildRequires:	libcurl-devel
+BuildRequires:	libjpeg-devel
+BuildRequires:	libxml2-devel
+
+%description
+libopenraw is an ongoing project to provide a free software
+implementation for camera RAW files decoding. One of the main reason is
+that dcraw is not suited for easy integration into applications, and
+there is a need for an easy to use API to build free software digital
+image processing application.
+
+%package gnome
+Summary:	GUI components of %{name}
+Group:		System Environment/Libraries
+
+Requires:	%{name} = %{version}-%{release}
+
+%description gnome 
+The %{name}-gnome package contains gui components of %{name}.
+
+%package devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+
+Requires:	%{name} = %{version}-%{release}
+Requires:	pkgconfig
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package gnome-devel
+Summary:	Development files for %{name}-gnome
+Group:		Development/Libraries
+
+Requires:	%{name}-gnome = %{version}-%{release}
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	pkgconfig
+
+%description    gnome-devel
+The %{name}-gnome-devel package contains libraries and header files for
+developing applications that use %{name}-gnome.
+
+%package pixbuf-loader
+Summary:	RAW image loader for GTK+ applications
+Group:		System Environment/Libraries
+
+Requires:	gtk2
+Requires:	%{name} = %{version}-%{release}
+Requires(post):   gdk-pixbuf2
+Requires(postun): gdk-pixbuf2
+
+%description pixbuf-loader
+%{name}-pixbuf-loader contains a plugin to load RAW images, as created by
+digital cameras, in GTK+ applications.
+
+%prep
+%setup -q
+%patch1 -p1 -b CFA-decrompress-fix
+%patch0 -p1 -b pef-crash-fix
+%patch2 -p1 -b pixbufloaderdir
+
+%build
+autoreconf -i -f
+%configure --disable-static --enable-gnome
+
+# Omit unused direct shared library dependencies.
+sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
+
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name "*.la" -delete
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post gnome -p /sbin/ldconfig
+
+%postun gnome -p /sbin/ldconfig
+
+%post pixbuf-loader
+gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
+
+
+%postun pixbuf-loader
+gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS
+%doc ChangeLog
+%doc COPYING
+%doc NEWS
+%doc README
+%doc TODO 
+%{_libdir}/%{name}.so.*
+
+%files gnome
+%defattr(-,root,root,-)
+%{_libdir}/%{name}gnome.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/%{name}-1.0.pc
+
+%dir %{_includedir}/%{name}-1.0
+%{_includedir}/%{name}-1.0/%{name}/*.h
+
+%files gnome-devel
+%defattr(-,root,root,-)
+%{_libdir}/%{name}gnome.so
+%{_libdir}/pkgconfig/%{name}-gnome-1.0.pc
+
+%dir %{_includedir}/%{name}-1.0/%{name}-gnome
+%{_includedir}/%{name}-1.0/%{name}-gnome/gdkpixbuf.h
+
+%files pixbuf-loader
+%defattr(-,root,root,-)
+%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
+
+%changelog
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sun Oct 24 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-4
+- fix %%post and %%postun scripts and install directory for
+  pixbuf-loader
+
+* Sun Oct 24 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-3
+- add upstream patch 22287584fbfa4657098ee997957a6c4fc972a53b to
+  properly decompress CFA from certain cameras (BZ 624283)
+
+* Wed Sep 08 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-2
+- add upstream patch 1b15acdcfdc4664bc6c0be473cb6e096071a4e62
+  to support certain PEF files and to fix a crash when opening
+  such files (BZ 606898)
+
+* Sat Dec 05 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.0.8-1
+- Version bump to 0.0.8.
+  * Fixed a huge memory leak. (FreeDesktop Bugzilla #21435)
+  * cfa output should write the data in PGM as big endian.
+  * Better handling of Canon CR2 "slices" to fix crasher with Canon
+    450D/Digital Rebel XSi files (and possibly others).
+  * Added new API or_rawfile_new_from_memory() to load a Raw file from a
+    memory buffer.
+  * Added new API or_rawfile_get_typeid() and the associated consts.
+  * Added new API or_rawdata_get_minmax().
+  * Added new API or_get_file_extensions().
+  * Added new API or_rawfile_get_rendered_image() to get a rendered image.
+  * Added new API or_bitmapdata_*().
+  * New GdkPixbuf loader.
+  * Decompress NEF files.
+- License changed to LGPLv3 or later.
+- Missing includes fixed by upstream.
+- Replaced 'BuildRequires: chrpath glib2-devel' with 'BuildRequires:
+  exempi-devel libcurl-devel'.
+- Added 'Requires: gtk2' to pixbuf-loader for directory ownership.
+- Added a %%check stanza.
+
+* Fri Jul 24 2009 Release Engineering <rel-eng@fedoraproject.org> - 0.0.5-4
+- Autorebuild for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Caolán McNamara <caolanm@redhat.com> - 0.0.5-3
+- add stdio.h for fopen and friends
+
+* Wed Feb 25 2009 Release Engineering <rel-eng@fedoraproject.org> - 0.0.5-2
+- Autorebuild for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Tue Mar 04 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.5-1
+- New upstream version.
+
+* Wed Feb 20 2008 Release Engineering <rel-eng@fedoraproject.org> - 0.0.4-3
+- Autorebuild for GCC 4.3
+
+* Wed Jan 30 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.4-2
+- Added missing dependency on libxml
+
+* Wed Jan 30 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.4-1
+- New upstream version.
+
+* Fri Dec 28 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.3-1
+- New upstream version.
+- Updated license tag.
+- Fixed rpath error.
+
+* Thu May 03 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-5
+- Added unowned directory to list of files.
+- Changed license from GPL to LGPL.
+
+* Wed May 02 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-4
+- Moved gui components to a separate package.
+
+* Tue May 01 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-3
+- Added missing BuildRequirement.
+
+* Mon Apr 30 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-2
+- Added missing BuildRequirement.
+
+* Sun Apr 29 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-1
+- Inital version.

+ 91 - 0
r/raw-thumbnailer/raw-thumbnailer.spec

@@ -0,0 +1,91 @@
+Name:           raw-thumbnailer
+Version:        0.99.1
+Release:        6%{?dist}
+Summary:        Nautilus file manager thumbnailer for RAW images
+
+Group:          Applications/Multimedia
+License:        GPLv2+
+URL:            http://libopenraw.freedesktop.org/wiki/RawThumbnailer
+Source0:        http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires(pre): GConf2
+Requires(post): GConf2
+Requires(preun): GConf2
+
+BuildRequires:  libgsf-gnome-devel
+BuildRequires:  libopenraw-gnome-devel
+BuildRequires:  perl(XML::Parser)
+BuildRequires:  gnome-vfs2-devel
+BuildRequires:  gtk2-devel
+
+%description
+RawThumbnailer is a thumbnailer for RAW files that works with Nautilus.
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-schemas-install
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+if [ "$1" -gt 1 ] ; then
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-uninstall-rule \
+%{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
+fi
+
+%post
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-install-rule \
+%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
+update-mime-database %{_datadir}/mime &> /dev/null || :
+
+%preun
+if [ "$1" -eq 0 ] ; then
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-uninstall-rule \
+%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
+fi
+
+%postun
+update-mime-database %{_datadir}/mime &> /dev/null || :
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/raw-thumbnailer
+%{_datadir}/mime/packages/*.xml
+%doc AUTHORS COPYING NEWS
+%{_sysconfdir}/gconf/schemas/%{name}.schemas
+
+
+%changelog
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.1-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Mon Feb 22 2010 Victor Bogado <victor@bogado.net> - 0.99.1-5
+- License tag
+- gconf schemas don't recieve the "config" macro.
+
+* Mon Feb 08 2010 Victor Bogado <victor@bogado.net> - 0.99.1-4
+- More adjustments, fine tunnings, sugjested by ELMORABITY Mohamed in (https://bugzilla.redhat.com/show_bug.cgi?id=533887#c6).
+
+* Wed Dec 30 2009 Victor Bogado <victor@bogado.net> - 0.99.1-3
+- Fixed problems pointed out by ELMORABITY Mohamed in (https://bugzilla.redhat.com/show_bug.cgi?id=533887#c2).
+
+* Mon Nov 09 2009 Victor Bogado <victor@bogado.net> - 0.99.1-2
+- Compleated some missing some build requires.
+
+* Mon Nov 09 2009 Victor Bogado <victor@bogado.net> - 0.99.1-1
+- Initial spec file