swfdec-gnome-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. Summary: Programs to integrate Flash into the GNOME desktop
  2. Summary(ja): Flash を GNOME デスクトップに統合するためのプログラム
  3. Name: swfdec-gnome
  4. Version: 2.30.1
  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.30/%{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. * Tue Oct 05 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  81. - new upstream release
  82. * Wed Apr 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  83. - new upstream release
  84. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  85. - new upstream release
  86. - add patch1 to build with swfdec-0.9
  87. * Sat Sep 27 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  88. - initial build for Vine Linux
  89. * Mon Sep 8 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.23.4-1
  90. - Update to 2.23.4.
  91. * Wed Jul 30 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.23.2-1
  92. - Update to 2.23.2.
  93. - Drop configure patch. Fixed upstream.
  94. * Wed Jul 09 2008 Nikolay Vladimirov <nikolay@vladimiroff.com> - 2.22.2-1
  95. - Update to 2.22.2
  96. - Add patch to build with swfdec-0.7.*
  97. * Fri Jun 27 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.22.0-2
  98. - Rebuild for new swfdec.
  99. * Sat Mar 15 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.0-1
  100. - Update to 2.22.0
  101. * Sun Feb 24 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.21.91-1
  102. - Update to 2.21.91.
  103. * Wed Feb 20 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.21.90-3
  104. - Rebuild for new swfdec.
  105. * Fri Feb 8 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.21.90-2
  106. - Rebuild for gcc-4.3.
  107. * Tue Jan 29 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.21.90-1
  108. - Update to 2.21.90.
  109. - Add man pages.
  110. - Update version of swfdec needed.
  111. * Wed Dec 19 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.5-2
  112. - Rebuild for pulse audio enable swfdec.
  113. * Mon Dec 17 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.5-1
  114. - Update to 0.5.5.
  115. * Tue Nov 20 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.4-2
  116. - Add scriptlet to update desktop-database.
  117. - Add vendor to desktop file, even though it's not really necessary.
  118. * Thu Nov 15 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.4-1
  119. - Intial Fedora spec.