| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- ##
- ## mozilla-plugger.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
- ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package information
- Name: mozilla-plugger
- Summary: Mozilla Generic Plugin
- URL: http://mozplugger.mozdev.org/
- Vendor: F. Hubinette, L. Bavoil
- Packager: The OpenPKG Project
- Distribution: OpenPKG
- Class: EVAL
- Group: Web
- License: GPL
- Version: 1.6.1
- Release: 20040819
- # list of sources
- Source0: http://mozdev.mirrors.nyphp.org/mozplugger/mozplugger-%{version}.tar.gz
- Source1: mozpluggerrc
- Patch0: mozilla-plugger.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, X11, gcc
- PreReq: OpenPKG, openpkg >= 20040130, X11, mozilla
- AutoReq: no
- AutoReqProv: no
- %description
- MozPlugger is a generic Mozilla Plugin which registers itself for
- handling media files of configured MIME types and file extensions.
- It then can try to run one or more applications in sequence in order
- to present the media file, including embedded viewing ("swallowing")
- if the application supports this.
- %track
- prog mozilla-plugger = {
- version = %{version}
- url = http://mozplugger.mozdev.org/
- regex = mozplugger-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -n mozplugger-%{version}
- %patch -p0
- exit 0
- %{l_shtool} subst \
- %{l_value -s l_prefix} \
- mozplugger.c
- %build
- case "%{l_platform -t}" in
- *-freebsd* ) platform="freebsd" ;;
- *-linux* ) platform="linux" ;;
- *-sunos* ) platform="solaris-gcc" ;;
- * ) echo "Platform \"%{l_platform -t}\" not supported" 1>&2; exit 1 ;;
- esac
- %{l_make} %{l_mflags} $platform
- %{l_bzip2} -d mozplugger.7.bz2
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/etc/mozilla-plugger \
- $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/plugins \
- $RPM_BUILD_ROOT%{l_prefix}/man/man7
- %{l_shtool} install -c -m 755 \
- mozplugger.so $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/plugins/
- %{l_shtool} install -c -m 644 \
- mozplugger.7 \
- $RPM_BUILD_ROOT%{l_prefix}/man/man7/
- %{l_shtool} install -c -m 644 \
- mozpluggerrc \
- $RPM_BUILD_ROOT%{l_prefix}/etc/mozilla-plugger/mozpluggerrc.sample
- %{l_shtool} install -c -m 644 %{l_value -s l_prefix} \
- %{SOURCE mozpluggerrc} \
- $RPM_BUILD_ROOT%{l_prefix}/etc/mozilla-plugger/
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} \
- '%config %{l_prefix}/etc/mozilla-plugger/mozpluggerrc' \
- '%not %dir %{l_prefix}/lib/mozilla' \
- '%not %dir %{l_prefix}/lib/mozilla/plugins'
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|