raw-thumbnailer-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Name: raw-thumbnailer
  2. Version: 0.99.1
  3. Release: 1%{?_dist_release}
  4. Summary: Nautilus file manager thumbnailer for RAW images
  5. Group: Applications/Multimedia
  6. License: GPLv2+
  7. URL: http://libopenraw.freedesktop.org/wiki/RawThumbnailer
  8. Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. Requires(pre): GConf2
  11. Requires(post): GConf2
  12. Requires(preun): GConf2
  13. BuildRequires: libgsf-devel
  14. BuildRequires: libopenraw-gnome-devel
  15. BuildRequires: perl(XML::Parser)
  16. BuildRequires: gnome-vfs2-devel
  17. BuildRequires: gtk2-devel
  18. %description
  19. RawThumbnailer is a thumbnailer for RAW files that works with Nautilus.
  20. %prep
  21. %setup -q
  22. %build
  23. %configure --disable-schemas-install
  24. make %{?_smp_mflags}
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. make install DESTDIR=$RPM_BUILD_ROOT
  28. %clean
  29. rm -rf $RPM_BUILD_ROOT
  30. %pre
  31. if [ "$1" -gt 1 ] ; then
  32. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  33. gconftool-2 --makefile-uninstall-rule \
  34. %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
  35. fi
  36. %post
  37. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  38. gconftool-2 --makefile-install-rule \
  39. %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
  40. update-mime-database %{_datadir}/mime &> /dev/null || :
  41. %preun
  42. if [ "$1" -eq 0 ] ; then
  43. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  44. gconftool-2 --makefile-uninstall-rule \
  45. %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
  46. fi
  47. %postun
  48. update-mime-database %{_datadir}/mime &> /dev/null || :
  49. %files
  50. %defattr(-,root,root,-)
  51. %{_bindir}/raw-thumbnailer
  52. %{_datadir}/mime/packages/*.xml
  53. %doc AUTHORS COPYING NEWS
  54. %{_sysconfdir}/gconf/schemas/%{name}.schemas
  55. %changelog
  56. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.1-6
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  58. * Mon Feb 22 2010 Victor Bogado <victor@bogado.net> - 0.99.1-5
  59. - License tag
  60. - gconf schemas don't recieve the "config" macro.
  61. * Mon Feb 08 2010 Victor Bogado <victor@bogado.net> - 0.99.1-4
  62. - More adjustments, fine tunnings, sugjested by ELMORABITY Mohamed in (https://bugzilla.redhat.com/show_bug.cgi?id=533887#c6).
  63. * Wed Dec 30 2009 Victor Bogado <victor@bogado.net> - 0.99.1-3
  64. - Fixed problems pointed out by ELMORABITY Mohamed in (https://bugzilla.redhat.com/show_bug.cgi?id=533887#c2).
  65. * Mon Nov 09 2009 Victor Bogado <victor@bogado.net> - 0.99.1-2
  66. - Compleated some missing some build requires.
  67. * Mon Nov 09 2009 Victor Bogado <victor@bogado.net> - 0.99.1-1
  68. - Initial spec file