]>
Commit | Line | Data |
---|---|---|
c7796385 | 1 | Summary: Analyze text for style |
0bd13b52 | 2 | Summary(pl.UTF-8): Narzędzie analizujące tekst pod kątem stylu |
6eb017c2 | 3 | Name: diction |
4f2da637 | 4 | Version: 1.11 |
3a19a956 | 5 | Release: 1 |
d9d66eeb | 6 | License: GPL v2 |
6eb017c2 MM |
7 | Group: Applications/Text |
8 | Source0: http://www.moria.de/~michael/diction/%{name}-%{version}.tar.gz | |
4f2da637 | 9 | # Source0-md5: 4cbdb115c976d7141f54b223df28012e |
6eb017c2 MM |
10 | Patch1: %{name}-texi.patch |
11 | URL: http://www.moria.de/~michael/diction/ | |
12 | BuildRequires: autoconf | |
13 | BuildRequires: automake | |
b212f13d | 14 | BuildRequires: gettext-tools |
6eb017c2 MM |
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 | ||
30cb8e2f JR |
29 | %description -l pl.UTF-8 |
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 charakterystyki | |
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ń. | |
6eb017c2 | 37 | |
30cb8e2f | 38 | Obie komendy wspierają języki angielski i niemiecki. |
6eb017c2 MM |
39 | |
40 | %prep | |
41 | %setup -q | |
6eb017c2 MM |
42 | %patch1 -p1 |
43 | ||
44 | %build | |
d99dd192 | 45 | %{__autoconf} |
5abaaaed | 46 | cp -f %{_datadir}/automake/{config.*,missing} . |
6eb017c2 MM |
47 | %configure |
48 | %{__make} | |
49 | makeinfo diction.texi | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
6eb017c2 | 53 | install -d $RPM_BUILD_ROOT%{_infodir} |
2329d0be PG |
54 | |
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
6eb017c2 MM |
58 | install diction*.info $RPM_BUILD_ROOT%{_infodir} |
59 | ||
5abaaaed JB |
60 | %find_lang %{name} |
61 | ||
6eb017c2 MM |
62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
d1b7a94a ER |
65 | %post -p /sbin/postshell |
66 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
c7796385 | 67 | |
d1b7a94a ER |
68 | %postun -p /sbin/postshell |
69 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
c7796385 | 70 | |
5abaaaed | 71 | %files -f %{name}.lang |
6eb017c2 MM |
72 | %defattr(644,root,root,755) |
73 | %doc README | |
74 | %attr(755,root,root) %{_bindir}/* | |
75 | %{_datadir}/%{name} | |
76 | %{_mandir}/man?/* | |
d99dd192 | 77 | %{_infodir}/*.info* |