Summary:		X Terminal Emulator
Name:			@PACKAGE_TARNAME@
Version:		@PACKAGE_VERSION@
Release:		1
License:		GPL
URL:			http://terminal.os-cillation.com/
Source0:		%{name}-%{version}.tar.gz
Group:			Applications/X11
BuildRoot:		%{_tmppath}/%{name}-root
Requires:		exo0.3 >= @EXO_REQUIRED_VERSION@
Requires:		vte >= @VTE_REQUIRED_VERSION@
BuildRequires:		exo0.3-devel >= @EXO_REQUIRED_VERSION@
BuildRequires:		vte-devel >= @VTE_REQUIRED_VERSION@

%description
This is the Terminal emulator application. Terminal is a lightweight and
easy to use terminal emulator for the X windowing system, with some new
ideas and features that makes it unique among X terminal emulators.

%prep
%setup -q

%build
%configure --enable-final --enable-xsltproc
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}

%clean
rm -rf $RPM_BUILD_ROOT

%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files
%defattr(-,root,root)
%doc README TODO ChangeLog NEWS INSTALL COPYING AUTHORS HACKING THANKS
%{_bindir}/
%{_datadir}/
%{_libexecdir}/
