swfdec-gnome-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. Summary: Programs to integrate Flash into the GNOME desktop
  2. Summary(ja): Flash を GNOME デスクトップに統合するためのプログラム
  3. Name: swfdec-gnome
  4. Version: 2.26.0
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Internet
  7. License: GPLv2+
  8. URL: http://swfdec.freedesktop.org/
  9. Source0: http://swfdec.freedesktop.org/download/%{name}/2.26/%{name}-%{version}.tar.bz2
  10. Patch1: swfdec-gnome-2.26.0-swfdec-0.9.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: gtk2-devel >= 2.14.0
  13. BuildRequires: swfdec-gtk-devel >= 0.9.2
  14. BuildRequires: GConf2
  15. BuildRequires: desktop-file-utils
  16. BuildRequires: gettext
  17. BuildRequires: perl(XML::Parser)
  18. Requires(pre): GConf2
  19. Requires(post): GConf2
  20. Requires(preun): GConf2
  21. %description
  22. This package contains programs to integrate Flash functionality into the GNOME
  23. desktop. It's main application is swfdec-player, a stand-alone viewer for
  24. Flash files. It also contains swfdec-thumbnailer, a program that provides
  25. screenshots for files to display in the Nautilus file manager
  26. %prep
  27. %setup -q
  28. %patch1 -p1
  29. %build
  30. %configure
  31. make %{?_smp_mflags}
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
  35. %find_lang %{name}
  36. desktop-file-install --vendor "fedora" --delete-original \
  37. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  38. $RPM_BUILD_ROOT%{_datadir}/applications/swfdec-player.desktop
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %pre
  42. if [ "$1" -gt 1 ]; then
  43. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  44. gconftool-2 --makefile-uninstall-rule \
  45. %{_sysconfdir}/gconf/schemas/swfdec-thumbnailer.schemas >/dev/null || :
  46. fi
  47. %post
  48. update-desktop-database &> /dev/null || :
  49. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  50. gconftool-2 --makefile-install-rule \
  51. %{_sysconfdir}/gconf/schemas/swfdec-thumbnailer.schemas > /dev/null || :
  52. touch --no-create %{_datadir}/icons/hicolor || :
  53. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  54. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  55. fi
  56. %postun
  57. update-desktop-database &> /dev/null || :
  58. touch --no-create %{_datadir}/icons/hicolor || :
  59. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  60. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  61. fi
  62. %preun
  63. if [ "$1" -eq 0 ]; then
  64. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  65. gconftool-2 --makefile-uninstall-rule \
  66. %{_sysconfdir}/gconf/schemas/swfdec-thumbnailer.schemas > /dev/null || :
  67. fi
  68. %files -f %{name}.lang
  69. %defattr(-,root,root,-)
  70. %doc COPYING AUTHORS NEWS README
  71. %{_bindir}/swfdec-player
  72. %{_bindir}/swfdec-thumbnailer
  73. %{_sysconfdir}/gconf/schemas/swfdec-thumbnailer.schemas
  74. %{_datadir}/applications/fedora-swfdec-player.desktop
  75. %{_datadir}/%{name}/
  76. %{_mandir}/man1/swfdec*.1.gz
  77. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  78. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  79. %changelog
  80. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  81. - new upstream release
  82. - add patch1 to build with swfdec-0.9
  83. * Sat Sep 27 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  84. - initial build for Vine Linux
  85. * Mon Sep 8 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.23.4-1
  86. - Update to 2.23.4.
  87. * Wed Jul 30 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.23.2-1
  88. - Update to 2.23.2.
  89. - Drop configure patch. Fixed upstream.
  90. * Wed Jul 09 2008 Nikolay Vladimirov <nikolay@vladimiroff.com> - 2.22.2-1
  91. - Update to 2.22.2
  92. - Add patch to build with swfdec-0.7.*
  93. * Fri Jun 27 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.22.0-2
  94. - Rebuild for new swfdec.
  95. * Sat Mar 15 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.0-1
  96. - Update to 2.22.0
  97. * Sun Feb 24 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.21.91-1
  98. - Update to 2.21.91.
  99. * Wed Feb 20 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.21.90-3
  100. - Rebuild for new swfdec.
  101. * Fri Feb 8 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.21.90-2
  102. - Rebuild for gcc-4.3.
  103. * Tue Jan 29 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.21.90-1
  104. - Update to 2.21.90.
  105. - Add man pages.
  106. - Update version of swfdec needed.
  107. * Wed Dec 19 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.5-2
  108. - Rebuild for pulse audio enable swfdec.
  109. * Mon Dec 17 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.5-1
  110. - Update to 0.5.5.
  111. * Tue Nov 20 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.4-2
  112. - Add scriptlet to update desktop-database.
  113. - Add vendor to desktop file, even though it's not really necessary.
  114. * Thu Nov 15 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.4-1
  115. - Intial Fedora spec.