Name:		vine-tex-guide
Version:	5.9.1
Release:	1%{?_dist_release}
License:	GFDL
Group:		Applications/Documentation
Source0:	%{name}-%{version}.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
BuildArch:	noarch

Vendor:		Project Vine
Distribution:	Vine Linux
Packager:	yasumichi

Summary:	Japanese Tex guide for Vine Linux
Summary(ja):	日本語 Tex 利用ガイド

# Dependency
Requires:	vine-manual-base

BuildRequires:	vine-manual-base
BuildRequires:	vine-manual-build

Obsoletes:	Vine-manual

%description
Japanese Tex guide for Vine Linux

%description -l ja
日本語 Tex 利用ガイド

# Prepare
%prep
%setup -q

# Build
%build
%configure
%{__make} html

# Install
%install
%{__rm} -rf ${RPM_BUILD_ROOT}
%{__make} install DESTDIR=${RPM_BUILD_ROOT}
%{__make} install-html DESTDIR=${RPM_BUILD_ROOT}

# Clean
%clean
%{__rm} -rf ${RPM_BUILD_ROOT}

# after install
%post 
scrollkeeper-update > /dev/null 2>&1 || :
vine-manual-regist -p 50 %{_docdir}/Vine/tex-guide/vine-tex-guide.html
vine-manual-index-update

%postun
if [ $1 -eq 0 ]; then
	scrollkeeper-update > /dev/null 2>&1 || :
	vine-manual-regist -r %{_docdir}/Vine/tex-guide/vine-tex-guide.html
	vine-manual-index-update
fi

# File list
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_docdir}/Vine/tex-guide
%{_datadir}/omf/vine-tex-guide

# Change Log
%changelog
* Mon Aug 01 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.1-1
- update for Vine Linux 6.0.

* Tue Mar 08 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.0-1
- written first.

