File gtypist.spec of Package gtypist

#
# spec file for package remind (Version 03.01.07)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

Summary: GNU Typist is an interactive typing tutor program
Name: gtypist
Version: 2.8.3
Release: 1
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-ru.patch
Vendor: %{vendor}
URL: http://www.gnu.org/software/gtypist/
License: GPLv2
Group: Productivity/Other
BuildRequires:	autoconf automake texinfo
BuildRequires:	gettext-devel >= 0.11
BuildRequires:	ncurses-devel
BuildRoot: %{_builddir}/%{name}-%{version}-build

%description
GNU Typist is an interactive typing tutor program.
It uses an input file to create a series of typing
tutorials, drills, and speed tests.

It is intended to be used on raw terminals without
graphics.

There are two types of typing exercises: drills
and speed tests, including "practice only"
routines and random command line practices as
"typefortune".

The program reads lessons written in an
easy-to-learn scripting language.  It is
distributed with several complete and good
lessons.

You are free to use them, modify them or create
new ones.


%prep
%setup -q
%patch0 -p1


%build
if [ -x ./configure ]; then
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
	  --disable-dependancy-tracking \
	  --disable-static
else
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
%{__make}

%debug_package


%install
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc %{_mandir}/man1/%{name}.1.gz
%doc %{_mandir}/man1/typefortune.1.gz
%doc %{_infodir}/%{name}.info.gz
%{_datadir}/%{name}
%config %{_datadir}/%{name}/*.typ
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_bindir}/typefortune


%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz


%changelog
* Fri Jun 5 2009 Mario GarcĂ­a H. <code933k@gmail.com> - 03.01.07-1
- Initial package.
openSUSE Build Service is sponsored by