mozilla-mplayer.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## mozilla-mplayer.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package version
  26. %define V_dist 1.0pre2-test2
  27. %define V_opkg 1.0p2t2
  28. # package information
  29. Name: mozilla-mplayer
  30. Summary: Mozilla MPlayer Plugin
  31. URL: http://mplayerplug-in.sourceforge.net/
  32. Vendor: Kevin DeKorte
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EVAL]
  35. Group: Web
  36. License: GPL
  37. Version: %{V_opkg}
  38. Release: 20031020
  39. # list of sources
  40. Source0: http://osdn.dl.sourceforge.net/mplayerplug-in/mplayerplug-in-%{V_dist}.tar.gz
  41. Patch0: mozilla-mplayer.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20030927, X11, gcc
  46. PreReq: OpenPKG, openpkg >= 20030927, X11, mozilla, mplayer
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. This is the MPLayer Plugin for the Mozilla web browser. It allows
  51. embedded playing of Windows Media, Quicktime and MPEG video format
  52. files.
  53. %prep
  54. %setup -q -n mplayerplug-in
  55. %patch -p0
  56. %{l_shtool} subst %{l_value -s l_prefix} Source/*.c
  57. %build
  58. CC="%{l_cc}" \
  59. CFLAGS="%{l_cflags -O} %{l_cppflags} -I`%{l_prefix}/etc/rc --query x11_incdir`" \
  60. LIBS="%{l_ldflags} -L`%{l_prefix}/etc/rc --query x11_libdir`" \
  61. ./configure \
  62. --prefix=%{l_prefix} \
  63. --with-x \
  64. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  65. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir`
  66. %{l_make} %{l_mflags}
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %{l_shtool} mkdir -f -p -m 755 \
  70. $RPM_BUILD_ROOT%{l_prefix}/etc/mozilla-mplayer \
  71. $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/plugins
  72. %{l_shtool} install -c -m 755 \
  73. mplayerplug-in.so $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/plugins/
  74. %{l_shtool} install -c -m 644 \
  75. mplayerplug-in.conf mplayerplug-in.types \
  76. $RPM_BUILD_ROOT%{l_prefix}/etc/mozilla-mplayer/
  77. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  78. %{l_files_std} \
  79. '%config %{l_prefix}/etc/mozilla-mplayer/*' \
  80. '%not %dir %{l_prefix}/lib/mozilla' \
  81. '%not %dir %{l_prefix}/lib/mozilla/plugins'
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT