]>
Commit | Line | Data |
---|---|---|
74f42887 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without emacs # Emacs mode | |
4 | # | |
23871c63 | 5 | Summary: Program for learning typist |
e4b8e850 | 6 | Summary(hu.UTF-8): Program gépírás tanulásához |
8ba39976 | 7 | Summary(pl.UTF-8): Program do nauki bezwzrokowego pisania na klawiaturze |
8ab01b12 | 8 | Name: gtypist |
1301bbe2 | 9 | Version: 2.9.4 |
5e9b96d1 | 10 | Release: 1 |
74f42887 | 11 | License: GPL v3+ |
8ab01b12 | 12 | Group: Applications/Text |
b8e025c4 | 13 | Source0: http://ftp.gnu.org/gnu/gtypist/%{name}-%{version}.tar.xz |
1301bbe2 | 14 | # Source0-md5: f980d5a4bc3c0743a2235791b42fb5a2 |
b8e025c4 | 15 | Patch0: %{name}-info.patch |
fe886e4e | 16 | Patch1: %{name}-am.patch |
5bc95ca3 | 17 | URL: http://www.gnu.org/software/gtypist/ |
74f42887 JB |
18 | BuildRequires: autoconf >= 2.50 |
19 | BuildRequires: automake >= 1:1.8.2 | |
20 | %{?with_emacs:BuildRequires: emacs} | |
f87d9621 | 21 | BuildRequires: gettext-devel >= 0.18.2 |
5bc95ca3 | 22 | BuildRequires: ncurses-devel |
b8e025c4 | 23 | BuildRequires: tar >= 1:1.22 |
2f91a4c2 | 24 | BuildRequires: texinfo |
b8e025c4 | 25 | BuildRequires: xz |
5bc95ca3 | 26 | Obsoletes: typist |
2f91a4c2 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8ab01b12 | 28 | |
29 | %description | |
30 | This program came from a desire to learn 'proper' typing. | |
31 | ||
e4b8e850 ZU |
32 | %description -l hu.UTF-8 |
33 | Ez a program a gépírás tanulásához íródott. | |
34 | ||
a907f868 | 35 | %description -l pl.UTF-8 |
8ab01b12 | 36 | Program do nauki bezwzrokowego pisania na klawiaturze. Oferuje kilka |
37 | lekcji, na razie tylko po angielsku. | |
38 | ||
e4b8e850 | 39 | %package emacs |
74f42887 JB |
40 | Summary: Emacs mode for editing gtypist's .typ files |
41 | Summary(pl.UTF-8): Tryb Emacsa do edycji plików .typ gtypista | |
e4b8e850 | 42 | Group: Applications/Editors/Emacs |
74f42887 | 43 | # doesn't require gtypist itself |
e4b8e850 ZU |
44 | |
45 | %description emacs | |
74f42887 | 46 | Emacs mode for editing gtypist's .typ files. |
e4b8e850 | 47 | |
74f42887 JB |
48 | %description emacs -l pl.UTF-8 |
49 | Tryb 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 | |
68 | rm -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 |
76 | rm -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 |