X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ascii.spec;h=95c7a9c4addfa36d9d3d96034e16699389331210;hb=HEAD;hp=3f76eea8a12e29bae6f32f67ce69dac00f5fbd27;hpb=3d5c79dcf73f3b268a9933069516c17eb49f5bd6;p=packages%2Fascii.git diff --git a/ascii.spec b/ascii.spec index 3f76eea..3e52af1 100644 --- a/ascii.spec +++ b/ascii.spec @@ -1,30 +1,52 @@ -Name: ascii -Version: 2.6 -Release: 1 -Source: locke.ccil.org:/pub/esr/ascii-2.6.tar.gz -Copyright: distributable -Group: Utilities/Text -Summary: interactive ASCII name and synonym chart +Summary: Interactive ASCII name and synonym chart +Summary(pl.UTF-8): Interaktywna tablica kodów i synonimów ASCII +Name: ascii +Version: 3.30 +Release: 1 +License: BSD +Group: Applications/Text +Source0: http://www.catb.org/~esr/ascii/%{name}-%{version}.tar.gz +# Source0-md5: 6268c89a81638c7a6ce9101de6046c93 +URL: http://www.catb.org/~esr/ascii/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -The ascii utility provides easy conversion between various byte representations -and the American Standard Code for Information Interchange (ASCII) character -table. It knows about a wide variety of hex, binary, octal, Teletype mnemonic, -ISO/ECMA code point, slang name, and other representations. Given any one on -the command line, it will try to display all others. Called with no arguments -it displays a handy small ASCII chart. +The ascii utility provides easy conversion between various byte +representations and the American Standard Code for Information +Interchange (ASCII) character table. It knows about a wide variety of +hex, binary, octal, Teletype mnemonic, ISO/ECMA code point, slang +name, and other representations. Given any one on the command line, it +will try to display all others. Called with no arguments it displays a +handy small ASCII chart. + +%description -l pl.UTF-8 +Program ascii umożliwia łatwą konwersję pomiędzy tablicą znaków ASCII +i ich różnymi odpowiednikami w postaci heksadecymalnej, binarnej, +oktalnej, Teletype mnemonic, ISO/ECMA, nazw potocznych, etc. +Jakikolwiek z nich podany w linii poleceń spowoduje wyświetlenie +pozostałych odpowiedników. Wywołany bez argumentów wyświetla poręczny +zestaw znaków ASCII. %prep -%setup +%setup -q %build -make +%{__make} \ + CC="%{__cc}" \ + CFLAGS="%{rpmcflags} %{rpmcppflags}" %install -rm -f /usr/bin/ascii -cp ascii /usr/bin -cp ascii.1 /usr/man/man1/ascii.1 +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} + +install ascii $RPM_BUILD_ROOT%{_bindir} +cp -p ascii.1 $RPM_BUILD_ROOT%{_mandir}/man1 + +%clean +rm -rf $RPM_BUILD_ROOT %files -/usr/man/man1/ascii.1 -/usr/bin/ascii +%defattr(644,root,root,755) +%doc COPYING NEWS.adoc README +%attr(755,root,root) %{_bindir}/ascii +%{_mandir}/man1/ascii.1*