]>
Commit | Line | Data |
---|---|---|
92342cfe | 1 | Summary: Converter of Polish character encodings with encoding recognizer |
08c00f41 | 2 | Summary(pl.UTF-8): Konwerter polskich kodowań znaków z rozpoznawaniem kodowania |
f6a9522f | 3 | Name: cpl |
0d76dc24 | 4 | Version: 2.0.7 |
8e133a05 | 5 | Release: 4 |
211dc7f6 | 6 | License: Freeware for non-commercial use, not distributable without source |
f6a9522f | 7 | Group: Applications/Text |
0d76dc24 | 8 | Source0: %{name}-%{version}-ELF.tar.gz |
c1cc96d2 | 9 | # Source0-md5: 92d186fe2c9896423da527c6283ae0ff |
aadd43e1 | 10 | Source1: cpl.7.pl |
11 | Source2: cpn.7.pl | |
12 | Source3: qpl.7.pl | |
c3bae567 | 13 | URL: http://ipsec.pl/cpl |
f6a9522f | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
c0970bf1 | 17 | cpl - Universal converter of Polish character encodings. Things that |
f6a9522f | 18 | distinguish it from other programs of that type are amount of |
19 | supported standards, conversion in any direction and maximally | |
487b0caa | 20 | simplified - yet powerful - command line. |
f6a9522f | 21 | |
c0970bf1 | 22 | qpl - Utility for recognizing Polish character encodings. It's used |
f6a9522f | 23 | for recognizing encoding in text files if encoding is unknown or |
24 | unsure. | |
25 | ||
d739b5d5 JR |
26 | %description -l pl.UTF-8 |
27 | cpl - Uniwersalny konwerter standardów polskich znaków. To co go | |
28 | wyróżnia od innych tego typu programów, to liczba obsługiwanych | |
29 | standardów, dowolność kierunków konwersji i maksymalnie uproszczona - | |
30 | choć dająca wiele możliwości - linia poleceń. | |
f6a9522f | 31 | |
d739b5d5 JR |
32 | qpl - Narzędzie do rozpoznawania standardów polskich znaków. Służy do |
33 | rozpoznawania standardu kodowania polskich znaków w plikach | |
34 | tekstowych, jeśli standard ten jest nieznany lub niepewny. | |
f6a9522f | 35 | |
36 | %prep | |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | %{__make} \ | |
41 | CC="%{__cc}" \ | |
42 | CFLAGS="%{rpmcflags} -pipe -DNO_LINE_CNT" \ | |
43 | LDFLAGS="%{rpmldflags}" | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
6c866c0e | 47 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/pl/man7} |
f6a9522f | 48 | |
5ddfaf28 | 49 | install cpl qpl cpn $RPM_BUILD_ROOT%{_bindir} |
aadd43e1 | 50 | ln -s cpl $RPM_BUILD_ROOT%{_bindir}/ConvPL |
51 | ||
52 | install %{SOURCE1} %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man7 | |
53 | echo ".so cpl" > $RPM_BUILD_ROOT%{_mandir}/pl/man7/ConvPL.7 | |
f6a9522f | 54 | |
f6a9522f | 55 | %clean |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
211dc7f6 | 60 | %doc doc/*.txt |
f6a9522f | 61 | %attr(755,root,root) %{_bindir}/* |
cf2a46c1 | 62 | %lang(pl) %{_mandir}/pl/man7/* |