]> git.pld-linux.org Git - packages/diction.git/blob - diction.spec
- use find_lang
[packages/diction.git] / diction.spec
1 Summary:        Analyze text for style
2 Summary(pl):    Narzêdzie analizuj±ce tekst pod k±tem stylu
3 Name:           diction
4 Version:        1.03
5 Release:        1
6 License:        GPL
7 Group:          Applications/Text
8 Source0:        http://www.moria.de/~michael/diction/%{name}-%{version}.tar.gz
9 # Source0-md5:  483a6f3bf0b17045d65a6973587e9ea8
10 Patch0:         %{name}-DESTDIR.patch
11 Patch1:         %{name}-texi.patch
12 URL:            http://www.moria.de/~michael/diction/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  texinfo
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 GNU diction and style are free implementations of old standard unix
20 commands, that are not available on many modern systems, because they
21 have been unbundled. Diction prints wordy and commonly misused
22 phrases. Style analyses surface characteristics of a document, e.g.
23 sentence length and various readability measures, but unlike the
24 original code, it lacks sentence type, word usage and most sentence
25 beginning processing.
26
27 Both commands support English and German documents.
28
29 %description -l pl
30 GNU diction oraz style s± otwartymi implementacjami starych,
31 standardowych komend uniksowych, które nie s± dostêpne na wielu
32 nowoczesnych systemach. Diction wypisuje czêste pomy³ki s³owne i ¼le
33 u¿yte wyra¿enia. Style analizuje powierzchniowe charakterystki
34 dokumentu, np. d³ugo¶æ zdañ oraz ró¿ne wska¼niki czytelno¶ci, jednak w
35 przeciwieñstwie do oryginalnej wersji nie przeprowadza analizy typu
36 zdañ, u¿ycia s³ów oraz pocz±tków zdañ.
37
38 Obie komendy wspieraj± jêzyki angielski i niemiecki.
39
40 %prep
41 %setup -q
42 %patch0 -p1
43 %patch1 -p1
44
45 %build
46 %{__autoconf}
47 cp -f %{_datadir}/automake/{config.*,missing} .
48 %configure
49 %{__make}
50 makeinfo diction.texi
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_infodir}
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 install diction*.info $RPM_BUILD_ROOT%{_infodir}
60
61 %find_lang %{name}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post
67 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
68
69 %postun
70 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
71
72 %files -f %{name}.lang
73 %defattr(644,root,root,755)
74 %doc README
75 %attr(755,root,root) %{_bindir}/*
76 %{_datadir}/%{name}
77 %{_mandir}/man?/*
78 %{_infodir}/*.info*
This page took 0.085912 seconds and 4 git commands to generate.