mozilla-plugger.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. ##
  2. ## mozilla-plugger.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 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 information
  26. Name: mozilla-plugger
  27. Summary: Mozilla Generic Plugin
  28. URL: http://mozplugger.mozdev.org/
  29. Vendor: F. Hubinette, L. Bavoil
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: EVAL
  33. Group: Web
  34. License: GPL
  35. Version: 1.6.1
  36. Release: 20040819
  37. # list of sources
  38. Source0: http://mozdev.mirrors.nyphp.org/mozplugger/mozplugger-%{version}.tar.gz
  39. Source1: mozpluggerrc
  40. Patch0: mozilla-plugger.patch
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040130, X11, gcc
  45. PreReq: OpenPKG, openpkg >= 20040130, X11, mozilla
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. MozPlugger is a generic Mozilla Plugin which registers itself for
  50. handling media files of configured MIME types and file extensions.
  51. It then can try to run one or more applications in sequence in order
  52. to present the media file, including embedded viewing ("swallowing")
  53. if the application supports this.
  54. %track
  55. prog mozilla-plugger = {
  56. version = %{version}
  57. url = http://mozplugger.mozdev.org/
  58. regex = mozplugger-(__VER__)\.tar\.gz
  59. }
  60. %prep
  61. %setup -q -n mozplugger-%{version}
  62. %patch -p0
  63. exit 0
  64. %{l_shtool} subst \
  65. %{l_value -s l_prefix} \
  66. mozplugger.c
  67. %build
  68. case "%{l_platform -t}" in
  69. *-freebsd* ) platform="freebsd" ;;
  70. *-linux* ) platform="linux" ;;
  71. *-sunos* ) platform="solaris-gcc" ;;
  72. * ) echo "Platform \"%{l_platform -t}\" not supported" 1>&2; exit 1 ;;
  73. esac
  74. %{l_make} %{l_mflags} $platform
  75. %{l_bzip2} -d mozplugger.7.bz2
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. %{l_shtool} mkdir -f -p -m 755 \
  79. $RPM_BUILD_ROOT%{l_prefix}/etc/mozilla-plugger \
  80. $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/plugins \
  81. $RPM_BUILD_ROOT%{l_prefix}/man/man7
  82. %{l_shtool} install -c -m 755 \
  83. mozplugger.so $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/plugins/
  84. %{l_shtool} install -c -m 644 \
  85. mozplugger.7 \
  86. $RPM_BUILD_ROOT%{l_prefix}/man/man7/
  87. %{l_shtool} install -c -m 644 \
  88. mozpluggerrc \
  89. $RPM_BUILD_ROOT%{l_prefix}/etc/mozilla-plugger/mozpluggerrc.sample
  90. %{l_shtool} install -c -m 644 %{l_value -s l_prefix} \
  91. %{SOURCE mozpluggerrc} \
  92. $RPM_BUILD_ROOT%{l_prefix}/etc/mozilla-plugger/
  93. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  94. %{l_files_std} \
  95. '%config %{l_prefix}/etc/mozilla-plugger/mozpluggerrc' \
  96. '%not %dir %{l_prefix}/lib/mozilla' \
  97. '%not %dir %{l_prefix}/lib/mozilla/plugins'
  98. %files -f files
  99. %clean
  100. rm -rf $RPM_BUILD_ROOT