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)
%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}/*