--- /dev/null
+Summary: analyze text for style
+Name: diction
+Version: 1.02
+Release: 1
+License: GPL
+Group: Applications/Text
+Source0: http://www.moria.de/~michael/diction/%{name}-%{version}.tar.gz
+Patch0: %{name}-DESTDIR.patch
+Patch1: %{name}-texi.patch
+URL: http://www.moria.de/~michael/diction/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: texinfo
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GNU diction and style are free implementations of old standard unix
+commands, that are not available on many modern systems, because they
+have been unbundled. Diction prints wordy and commonly misused
+phrases. Style analyses surface characteristics of a document, e.g.
+sentence length and various readability measures, but unlike the
+original code, it lacks sentence type, word usage and most sentence
+beginning processing.
+
+Both commands support English and German documents.
+
+%description -l pl
+GNU diction oraz style s± otwartymi implementacjami starych,
+standardowych komend uniksowych, które nie s± dostêpne na wielu
+nowoczesnych systemach. Diction wypisuje czêste pomy³ki s³owne i ¼le
+u¿yte wyra¿enia. Style analizuje powierzchniowe charakterystki
+dokumentu, np. d³ugo¶æ zdañ oraz ró¿ne wska¼niki czytelno¶ci, jednak w
+przeciwieñstwie do oryginalnej wersji nie przeprowadza analizy typu
+zdañ, u¿ycia s³ów oraz pocz±tkó³ zdañ.
+
+Obie komendy wspieraj± jêzyki angielski i niemiecki.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+autoconf
+cp -f %{_datadir}/automake/{config.,missing}* .
+%configure
+%{__make}
+makeinfo diction.texi
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} DESTDIR=$RPM_BUILD_ROOT install
+install -d $RPM_BUILD_ROOT%{_infodir}
+install diction*.info $RPM_BUILD_ROOT%{_infodir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/%{name}
+%{_mandir}/man?/*
+%{_infodir}/*