Summary: xpbiff with animation
Summary(ja): 瞬間芸付きのxbiffです
Name: xpbiff
Version: 1.27+lx
Release: 7
Source: xpbiff1.27.tar.gz
Source1: XPbiff-vine.ad
Source2: xpbiff.1x
Patch:  xpbiff+lx.diff.gz
Patch1: xpbiff-1.27.vine.patch
Patch2: xpbiff-1.27.uwimapd.patch
Patch3: jis2euc.patch
Copyright: distributable
Group: User Interface/Desktops

Buildroot: %{_tmppath}/%{name}-root

Distribution: Vine Linux
Vendor: Project Vine
Packager: Jun Nishii <jun@vinelinux.org>

%description
Similar to xbiff. It has an animation and beep when mail arrives.  It
will also give you the subject and who your mail is from in a pop-up
window. 

%description -l ja
X 上でメールの到着を知らせてくれるソフトです. 簡単なアニメーションとビー
プ音でメールが来たことを教えてくれます. また, メールの From: と Subject:
をポップアップウィンドウで表示します. 

%prep
rm -rf %{buildroot}

%setup -c -n %{name}
%patch -p1
%patch1 -p1
%patch2 -p0
%patch3 -p0

%build
xmkmf
make depend
make

%install
mkdir -p %{buildroot}/usr/X11R6/bin/
mkdir -p %{buildroot}/usr/X11R6/lib/X11/app-defaults/
mkdir -p %{buildroot}/usr/X11R6/lib/X11/ja/app-defaults/
mkdir -p %{buildroot}/usr/X11R6/man/man1/
install -m 755 xpbiff %{buildroot}/usr/X11R6/bin/
install -m 644 XPbiff.ad %{buildroot}/usr/X11R6/lib/X11/app-defaults/XPbiff
install -m 644 %{SOURCE1} %{buildroot}/usr/X11R6/lib/X11/ja/app-defaults/XPbiff-co.ad
install -m 644 XPbiff-uj.ad %{buildroot}/usr/X11R6/lib/X11/ja/app-defaults/XPbiff-uj.ad
(cd %{buildroot}/usr/X11R6/lib/X11/ja/app-defaults/
	ln -s XPbiff-co.ad XPbiff)
install -m 644 %{SOURCE2} %{buildroot}/usr/X11R6/man/man1/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README.j XPbiff.ad
%doc arrive.bitmap heno.bitmap no.bitmap shit.bitmap
/usr/X11R6/bin/xpbiff
/usr/X11R6/lib/X11/app-defaults/XPbiff
/usr/X11R6/lib/X11/ja/app-defaults/XPbiff-uj.ad
/usr/X11R6/lib/X11/ja/app-defaults/XPbiff-co.ad
/usr/X11R6/lib/X11/ja/app-defaults/XPbiff
/usr/X11R6/man/man1/xpbiff.1x.gz

%changelog 
* Wed May  9 2001 Jun Nishii <jun@vinelinux.org> 1.27+lx-7
- added locale ja_JP.eucJP
- added forgotten %patch for uwimapd.patch
- added jis2euc patch

* Mon Jul 10 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
- 1.27+lx-6
- modified %patch1 -p1 -> %patch1 -p0
- modified %clean section

* Fri May 26 2000 Jun Nishii <jun@vinelinux.org>
- 1.27+lx-5
- added xpbiff-1.27.uwimapd.patch from fj.sources
- move resources to ja from ja_JP.ujis

* Fri Jan  7 2000 Jun Nishii <jun@vinelinux.org>
- 1.27+lx-4
- back to version number 1.27+lx to avoid trouble in upgrade from Vine-1.1
- change font setting in X-resource
- gzip man and strip bin

* Fri Nov 12 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
- 1.27_jp-2
- added %defattr(-,root,root) in the %files section

* Wed Nov 10 1999 Jun NISHII <jun@flatout.org>
- build for Vine-2.0
