Summary: Streaming Netscape Plugin
Summary(ja): Netscape用マルチメディアプラグイン
Name: plugger
Version: 4.0
Release: 0vl2
License: GPL
Group: Development/Languages
URL: http://www.hubbe.net/~hubbe/plugger.html
Source0: http://www.hubbe.net/~hubbe/plugger/plugger-%{version}.tar.gz
Source1: unix-sdk-3.0b5.tar.Z
Patch: plugger-4.0-vine.patch
AutoReqProv: no
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
Streaming Multimedia plugin for UNIX Netscape.

%prep
%setup -q -a 1
%patch -p1

%build
CC="gcc -fPIC" LD="gcc -shared -fPIC" make linux

%install
rm -rf %{buildroot}

%define ns_plugins /usr/lib/netscape/plugins
%define mz_plugins /usr/lib/mozilla/plugins

mkdir -p %{buildroot}/%{ns_plugins}
mkdir -p %{buildroot}/%{mz_plugins}
mkdir -p %{buildroot}%{_mandir}/man7
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}/%{_bindir}

install -m 755 plugger-4.0 %{buildroot}/%{_bindir}/
install -m 755 plugger.so %{buildroot}/%{ns_plugins}
install -m 755 plugger.so %{buildroot}/%{mz_plugins}
install -m 644 plugger.7 %{buildroot}%{_mandir}/man7
install -m 644 pluggerrc %{buildroot}/etc/pluggerrc

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/plugger*
%{ns_plugins}/plugger.so
%{mz_plugins}/plugger.so
%config %{_sysconfdir}/pluggerrc
%{_mandir}/man7/plugger.7*

%changelog
* Mon Jul 22 2002 Masaki Shinomiya <shino@pos.to> 4.0-0vl2
- directory name of mz_plugins

* Wed Feb 27 2002 Jun Nishii <jun@vinelinux.org> 4.0-0vl1
- ver.up

* Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org>
- 3.3-0vl1: use better macros

* Sun Oct 15 2000 MACHINO, Satoshi <machino@vinelinux.org> 3.2-1vl2
- fixed in %files for brp-redhat

* Sun Jan 23 2000 net_hal <net_hal@cwa.bai.ne.jp>
- Modify for Vine
