swfdec-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. %define major_version 0.9
  2. %define liboil_version 0.3.1
  3. %define gtk2_version 2.16.0
  4. %define pango_version 1.24
  5. Summary: Flash animation rendering library
  6. Summary(ja): Flash アニメーションレンダリングライブラリ
  7. Name: swfdec
  8. Version: %{major_version}.2
  9. Release: 4%{?_dist_release}
  10. Group: System Environment/Libraries
  11. License: LGPLv2+
  12. URL: http://swfdec.freedesktop.org/
  13. Source0: http://swfdec.freedesktop.org/download/%{name}/%{major_version}/%{name}-%{version}.tar.gz
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: alsa-lib-devel
  16. BuildRequires: glib2-devel >= 2.16
  17. BuildRequires: gstreamer-devel >= 0.10.11
  18. BuildRequires: gstreamer-plugins-base-devel >= 0.10.15
  19. BuildRequires: gtk2-devel >= %{gtk2_version}
  20. BuildRequires: liboil-devel >= %{liboil_version}
  21. BuildRequires: libsoup-devel >= 2.4.0
  22. BuildRequires: pango-devel >= %{pango_version}
  23. Requires(pre): /sbin/ldconfig
  24. Requires(post): /sbin/ldconfig
  25. %description
  26. swfdec is a library for rendering Adobe Flash animations. Currently it handles
  27. most Flash 3, 4 and many Flash 7 videos.
  28. %package devel
  29. Summary: Development files for %{name}
  30. Summary(ja): %{name} の開発ファイル
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. Requires: liboil-devel
  34. Requires: pango-devel
  35. Requires: pkgconfig
  36. %description devel
  37. %{name}-devel contains the files needed to build packages that depend on
  38. swfdec.
  39. %package gtk
  40. Summary: A library for easy embedding of Flash files in an application
  41. Summary(ja): Flash ファイルをアプリケーションに容易に埋め込むためのライブラリ
  42. Group: System Environment/Libraries
  43. Requires: %{name} = %{version}-%{release}
  44. Requires(pre): /sbin/ldconfig
  45. Requires(post): /sbin/ldconfig
  46. %description gtk
  47. %{name}-gtk is a library for developers that allows one to easily embed
  48. Flash videos and animations into their appplications.
  49. %package gtk-devel
  50. Summary: Development files for swfdec-gtk
  51. Summary(ja): swfdec-gtk の開発ファイル
  52. Group: Development/Libraries
  53. Requires: %{name}-gtk = %{version}-%{release}
  54. Requires: %{name}-devel = %{version}-%{release}
  55. Requires: gtk2-devel
  56. %description gtk-devel
  57. %{name}-gtk is a library for developers that allows one to easily embed
  58. Flash videos and animations into their appplications. This package contains
  59. files necessary to build packages and appplications that use %{name}-gtk.
  60. %prep
  61. %setup -q
  62. %build
  63. %configure --disable-static --with-audio=alsa
  64. # remove rpath from libtool
  65. sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  66. sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  67. make %{?_smp_mflags}
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
  71. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  72. %check
  73. # Disabling test since it will fail due to the gstreamer mp3 plugin
  74. # not being available in Fedora.
  75. #
  76. #export LD_LIBRARY_PATH=`pwd`/libswfdec/.libs:`pwd`/libswfdec-gtk/.libs
  77. #make check
  78. #unset LD_LIBRARY_PATH
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT
  81. %post -p /sbin/ldconfig
  82. %postun -p /sbin/ldconfig
  83. %post gtk -p /sbin/ldconfig
  84. %postun gtk -p /sbin/ldconfig
  85. %files
  86. %defattr(-,root,root,-)
  87. %doc AUTHORS COPYING NEWS README
  88. %{_libdir}/libswfdec-%{major_version}.so.*
  89. %files devel
  90. %defattr(-,root,root,-)
  91. %{_libdir}/pkgconfig/%{name}-%{major_version}.pc
  92. %{_libdir}/libswfdec-%{major_version}.so
  93. %dir %{_includedir}/%{name}-%{major_version}
  94. %{_includedir}/%{name}-%{major_version}/swfdec/
  95. %{_datadir}/gtk-doc/html/%{name}/
  96. %files gtk
  97. %defattr(-,root,root,-)
  98. #%{_datadir}/icons/hicolor/*/apps/%{name}.png
  99. #%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  100. %{_libdir}/libswfdec-gtk-%{major_version}.so.*
  101. %files gtk-devel
  102. %defattr(-,root,root,-)
  103. %{_libdir}/libswfdec-gtk-%{major_version}.so
  104. %{_libdir}/pkgconfig/%{name}-gtk-%{major_version}.pc
  105. %{_includedir}/%{name}-%{major_version}/swfdec-gtk/
  106. %changelog
  107. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.2-4
  108. - moved gtk subpackage to System Environment/Libraries
  109. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.2-3
  110. - rebuild with VineSeed environment
  111. * Tue Oct 05 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.2-2
  112. - rebuild with rpm-4.8.1
  113. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.2-1
  114. - new upstream release
  115. * Wed Dec 31 2008 Shu KONNO <owa@bg.wakwak.com> 0.8.4-1
  116. - new upstream release
  117. * Sat Sep 27 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.0-1
  118. - initial build for Vine Linux
  119. * Mon Sep 8 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.8.0-1
  120. - Update to 0.8.0.
  121. * Wed Jul 30 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.7.4-1
  122. - Update to 0.7.4.
  123. * Wed Jun 25 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.7.2-1
  124. - Update to 0.7.2
  125. * Wed Apr 23 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.6-1
  126. - Update to 0.6.6.
  127. - Drop memory-overwrite patch. Fixed upstream.
  128. - Drop alsa patch. Fixed upstream.
  129. * Thu Apr 10 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.4-3
  130. - Add patch to fix memory overwrite error. (#441614)
  131. * Thu Apr 10 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.4-2
  132. - Build w/ alsa backend instead of pulse audio.
  133. - Add patch to fix alsa support. (#441617).
  134. - Drop unnecessary BR on js-devel and gnome-vfs2-devel.
  135. - Add BR on glib2-devel.
  136. * Wed Apr 9 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.4-1
  137. - Update to 0.6.4.
  138. * Sat Mar 29 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-1
  139. - Update to 0.6.2.
  140. * Wed Feb 20 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.0-1
  141. - Update to 0.6.0.
  142. - Bump minimum version of gstreamer needed.
  143. - Add BR for gstreamer-plugins-base-devel.
  144. * Thu Feb 14 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.5.90-3
  145. - Rebuild for new libsoup.
  146. * Fri Feb 8 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.5.90-2
  147. - Rebuild for gcc-4.3.
  148. * Tue Jan 29 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.5.90-1
  149. - Update to 0.5.90.
  150. - Bump BR minimum versions for libsoup & pango.
  151. * Wed Dec 19 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.5-2
  152. - Build w/ pulse audio support.
  153. * Mon Dec 17 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.5-1
  154. - Update to 0.5.5.
  155. * Fri Nov 16 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.4-2
  156. - Add requires for pango-devel to devel pkg.
  157. - Keep timestamp on installed files.
  158. * Thu Nov 15 2007 Brian Pepple <bpepple@fedoraproject.org> - 0.5.4-1
  159. - Update to 0.5.4.
  160. - Use valid license tag.
  161. - Remove BR on ffmpeg & libmad, and only build gstreamer backend.
  162. * Fri Oct 12 2007 Peter Gordon <peter@thecodergeek.com> - 0.5.3-1
  163. - Update to new upstream release (0.5.3)
  164. * Wed Oct 10 2007 Peter Gordon <peter@thecodergeek.com> - 0.5.2-1
  165. - Update to new upstream release (0.5.2)
  166. * Wed Aug 15 2007 Peter Gordon <peter@thecodergeek.com> - 0.5.1-1
  167. - Update to new upstream release (0.5.1)
  168. * Thu Jul 5 2007 kwizart <kwizart at gmail.com> - 0.4.5-1
  169. - Update to 0.4.5 (bugfix)
  170. - Add BR ffmpeg-devel libmad-devel (enabled in configure)
  171. - Remove rpath (libtool method)
  172. * Sat Apr 28 2007 Peter Gordon <peter@thecodergeek.com> - 0.4.4-1
  173. - Update to new upstream release (0.4.4), which adds two new subpackages:
  174. swfdec-gtk and swfdec-gtk-devel.
  175. * Sun Mar 25 2007 Peter Gordon <peter@thecodergeek.com> - 0.4.3-2
  176. - Add js-devel to the BuildRequires to fix compilation in Mock.
  177. (Thanks to Julian Sikorski; Livna bug #1453)
  178. * Sat Mar 24 2007 Peter Gordon <peter@thecodergeek.com> - 0.4.3-1
  179. - Update to new upstream release (0.4.3), with lots of spec cleanups
  180. - Spec file based heavily on Thomas Vander Stichele's 0.3.6 stuff.
  181. * Sun Dec 03 2006 Thomas Vander Stichele <thomas at apestaart dot org>
  182. - 0.3.6-0.gst.2
  183. - fix pre/post scripts
  184. * Sun Dec 03 2006 Thomas Vander Stichele <thomas at apestaart dot org>
  185. - 0.3.6-0.gst.1
  186. - new upstream
  187. - remove swf_play
  188. - add js-devel and gimp-devel buildrequires
  189. - add gimp plugin
  190. * Fri Jun 24 2005 Thomas Vander Stichele <thomas at apestaart dot org>
  191. - 0.3.5-0.gst.1
  192. - updated to new upstream
  193. * Tue May 17 2005 Thomas Vander Stichele <thomas at apestaart dot org>
  194. - 0.3.4-0.gst.1
  195. - updated to new upstream
  196. * Thu Mar 03 2005 Thomas Vander Stichele <thomas at apestaart dot org>
  197. - 0.3.2-0.lvn.1
  198. - updated to new liboil and upstream release
  199. * Thu Nov 11 2004 Thomas Vander Stichele <thomas at apestaart dot org>
  200. - new upstream release
  201. * Thu May 20 2004 Thomas Vander Stichele <thomas at apestaart dot org>
  202. - 0.2.2-0.lvn.2
  203. - require gcc-c++ for libtool
  204. - fix pre/post req
  205. - fix gtk loaders location
  206. - work around FC2 packaging bug for SDL-devel
  207. * Tue Mar 02 2004 Thomas Vander Stichele <thomas at apestaart dot org>
  208. - 0.2.2-0.lvn.1: updated for rpm.livna.us (without mozilla plugin)
  209. * Mon May 19 2003 Thomas Vander Stichele <thomas at apestaart dot org>
  210. - Updated for 0.2.2
  211. * Wed Feb 05 2003 Christian F.K. Schaller <Uraeus@linuxrising.org>
  212. - Update spec to handle pixbuf loader
  213. * Sat Oct 26 2002 Christian F.K. Schaller <Uraeus@linuxrising.org>
  214. - First attempt at spec