]> git.pld-linux.org Git - packages/gtypist.git/blame - gtypist.spec
- updated to 2.9.4
[packages/gtypist.git] / gtypist.spec
CommitLineData
74f42887
JB
1#
2# Conditional build:
3%bcond_without emacs # Emacs mode
4#
23871c63 5Summary: Program for learning typist
e4b8e850 6Summary(hu.UTF-8): Program gépírás tanulásához
8ba39976 7Summary(pl.UTF-8): Program do nauki bezwzrokowego pisania na klawiaturze
8ab01b12 8Name: gtypist
1301bbe2 9Version: 2.9.4
5e9b96d1 10Release: 1
74f42887 11License: GPL v3+
8ab01b12 12Group: Applications/Text
b8e025c4 13Source0: http://ftp.gnu.org/gnu/gtypist/%{name}-%{version}.tar.xz
1301bbe2 14# Source0-md5: f980d5a4bc3c0743a2235791b42fb5a2
b8e025c4 15Patch0: %{name}-info.patch
fe886e4e 16Patch1: %{name}-am.patch
5bc95ca3 17URL: http://www.gnu.org/software/gtypist/
74f42887
JB
18BuildRequires: autoconf >= 2.50
19BuildRequires: automake >= 1:1.8.2
20%{?with_emacs:BuildRequires: emacs}
f87d9621 21BuildRequires: gettext-devel >= 0.18.2
5bc95ca3 22BuildRequires: ncurses-devel
b8e025c4 23BuildRequires: tar >= 1:1.22
2f91a4c2 24BuildRequires: texinfo
b8e025c4 25BuildRequires: xz
5bc95ca3 26Obsoletes: typist
2f91a4c2 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8ab01b12 28
29%description
30This program came from a desire to learn 'proper' typing.
31
e4b8e850
ZU
32%description -l hu.UTF-8
33Ez a program a gépírás tanulásához íródott.
34
a907f868 35%description -l pl.UTF-8
8ab01b12 36Program do nauki bezwzrokowego pisania na klawiaturze. Oferuje kilka
37lekcji, na razie tylko po angielsku.
38
e4b8e850 39%package emacs
74f42887
JB
40Summary: Emacs mode for editing gtypist's .typ files
41Summary(pl.UTF-8): Tryb Emacsa do edycji plików .typ gtypista
e4b8e850 42Group: Applications/Editors/Emacs
74f42887 43# doesn't require gtypist itself
e4b8e850
ZU
44
45%description emacs
74f42887 46Emacs mode for editing gtypist's .typ files.
e4b8e850 47
74f42887
JB
48%description emacs -l pl.UTF-8
49Tryb Emacsa do edycji plików .typ gtypista.
e4b8e850 50
8ab01b12 51%prep
520e4f3f 52%setup -q
8ab01b12 53%patch0 -p1
fe886e4e 54%patch1 -p1
e3174d3b 55
74f42887 56%{__rm} po/stamp-po
8ab01b12 57
58%build
ef064843 59%{__gettextize}
96b164d7 60%{__aclocal} -I m4
f7dade86 61%{__autoconf}
62%{__automake}
8ab01b12 63%configure
a6100b06
JB
64# info creation fails randomly with big -j
65%{__make} -j1
8ab01b12 66
67%install
68rm -rf $RPM_BUILD_ROOT
69
70%{__make} install \
6762080f 71 DESTDIR=$RPM_BUILD_ROOT
8ab01b12 72
8ab01b12 73%find_lang %{name}
74
6762080f
JB
75%clean
76rm -rf $RPM_BUILD_ROOT
77
74f42887 78%post -p /sbin/postshell
2363d9fc 79-/usr/sbin/fix-info-dir -c %{_infodir}
8ab01b12 80
74f42887 81%postun -p /sbin/postshell
2363d9fc 82-/usr/sbin/fix-info-dir -c %{_infodir}
8ab01b12 83
8ab01b12 84%files -f %{name}.lang
85%defattr(644,root,root,755)
74f42887
JB
86%doc AUTHORS ChangeLog NEWS QUESTIONS README THANKS TODO
87%attr(755,root,root) %{_bindir}/gtypist
88%attr(755,root,root) %{_bindir}/typefortune
8ab01b12 89%{_datadir}/%{name}
74f42887
JB
90%{_mandir}/man1/gtypist.1*
91%{_mandir}/man1/typefortune.1*
92%{_infodir}/gtypist.info*
93%lang(cs) %{_infodir}/gtypist.cs.info*
b8e025c4 94%lang(es) %{_infodir}/gtypist.es.info*
e4b8e850 95
74f42887 96%if %{with emacs}
e4b8e850
ZU
97%files emacs
98%defattr(644,root,root,755)
74f42887
JB
99%{_datadir}/emacs/site-lisp/gtypist-mode.el*
100%endif
This page took 0.071851 seconds and 4 git commands to generate.