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