Name: plain2
Version: 2.54
Release: 0vl2
Vendor: Project Vine
Distribution: Vine Linux
Packager: USAMI Kosuke <usami-k@yc5.so-net.ne.jp>
License: distributable
Group: Applications/Text
Source0: http://ftp.debian.or.jp/debian-jp/pool/main/p/plain2/plain2_2.54p1.orig.tar.gz
Patch0: http://ftp.debian.or.jp/debian-jp/pool/main/p/plain2/plain2_2.54p1-4.2.diff.gz
Patch1: http://www.asahi-net.or.jp/~vw4k-kbys/plain2/plain2-2.54-html-table.diff.gz
Patch2: plain2-2.54-plain2html.patch
Patch3: plain2-2.54-doc.patch
BuildRoot: %{_tmppath}/%{name}-root
Requires: perl tetex tcsh gawk sed ImageMagick ghostscript
Summary: plain-text converter (to LaTeX, ROFF and HTML)

%description
plain2 converts plain-text to LaTeX, ROFF and HTML.
This package used the source and patch which are kept by Debian-JP,
and used HTML table extension patch.

%description -l ja
plain2 はプレーンテキストを LaTeX，ROFF，HTML へ変換します．
本パッケージは，Debian-JP で保管されているソースとパッチを利用し，
さらにHTMLテーブル拡張パッチをあてています．

# 注意：HTMLテーブル拡張パッチを使用するためには
#       Debian-JP のソースとパッチを利用する必要がある

%prep
%setup -q -n plain2-2.54p1.orig
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
cd src
%__make BINDIR=%{buildroot}%{_bindir} LIBDIR=%{buildroot}%{_libdir}/%{name}
cd ..
%__mv debian/jverb.sty doc/
%__mv debian/jmodules doc/jmodules.obj

%install
%__rm -rf %{buildroot}
%__mkdir_p %{buildroot}%{_bindir} %{buildroot}%{_libdir}/%{name}
cd src
%makeinstall BINDIR=%{buildroot}%{_bindir} LIBDIR=%{buildroot}%{_libdir}/%{name}

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc debian/README.patch debian/README.nide debian/jverbsty.doc debian/*.ja
%doc src/README.* src/HTML-table.pln
%doc doc/
%{_bindir}/*
%{_libdir}/%{name}/

%changelog
* Thu Jul 31 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.54-0vl2
- Rebuild for new Vine.

* Tue Jun 10 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> 2.54-0vl1
- Import source and patch from Debian.
- Add html-table patch.

