-Summary: Converter of polish character encodings with encodind recognizer
+Summary: Converter of Polish character encodings with encodind recognizer
Summary(pl): Konwerter polskich kodowañ znaków z rozpoznawaniem kodowania
Name: cpl
-Version: 2.0.6
-Release: 1
-License: freeware for noncommercial use
+Version: 2.0.7
+Release: 2
+License: Freeware for noncommercial use, not distributable without source
Group: Applications/Text
Source0: %{name}-%{version}-ELF.tar.gz
-Source0: http://ceti.com.pl/~kravietz/progs/%{name}-%{version}-ELF.tar.gz
+Source1: cpl.7.pl
+Source2: cpn.7.pl
+Source3: qpl.7.pl
URL: http://ceti.com.pl/~kravietz/cpl.html
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-cpl - Universal converter of polish character encodings. Things that
+cpl - Universal converter of Polish character encodings. Things that
distinguish it from other programs of that type are amount of
supported standards, conversion in any direction and maximally
simplified - yet powerfull - command line.
-qpl - Utility for recognizing polish character encodings. It's used
+qpl - Utility for recognizing Polish character encodings. It's used
for recognizing encoding in text files if encoding is unknown or
unsure.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/pl/man7}
install {cpl,qpl,cpn} $RPM_BUILD_ROOT%{_bindir}
+ln -s cpl $RPM_BUILD_ROOT%{_bindir}/ConvPL
+
+install %{SOURCE1} %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man7
+echo ".so cpl" > $RPM_BUILD_ROOT%{_mandir}/pl/man7/ConvPL.7
gzip -9nf doc/*.txt
%files
%defattr(644,root,root,755)
%doc doc/*.gz
+%{_mandir}/pl/man7/*
%attr(755,root,root) %{_bindir}/*