You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
3.8 KiB
103 lines
3.8 KiB
## |
|
## 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 [EVAL] |
|
Group: Web |
|
License: GPL |
|
Version: 1.5.0 |
|
Release: 20040116 |
|
|
|
# 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 >= 20030927, X11, gcc |
|
PreReq: OpenPKG, openpkg >= 20030927, 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. |
|
|
|
%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 |
|
|
|
|