]> git.pld-linux.org Git - packages/perl-Data-HexDump.git/blame - perl-Data-HexDump.spec
use generic url
[packages/perl-Data-HexDump.git] / perl-Data-HexDump.spec
CommitLineData
e2fdbe22 1#
2# Conditional build:
e91b59da 3%bcond_without tests # do not perform "make test"
1f85e037 4
3788d7ff 5%define pdir Data
6%define pnam HexDump
1f85e037 7%include /usr/lib/rpm/macros.perl
e2fdbe22 8Summary: Data::HexDump - a simple hexadecial dumper
fc85f419 9Summary(pl.UTF-8): Data::HexDump - proste zrzucanie danych w formacie szesnastkowym
e2fdbe22 10Name: perl-Data-HexDump
11Version: 0.02
f75b245a 12Release: 4
e104ad6a 13# sa,e as perl
14License: GPL v1+ or Artistic
e2fdbe22 15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
dc942db6 17# Source0-md5: 467b7183d1062ab4a502b50c34e7d67f
1f85e037 18URL: http://search.cpan.org/dist/Data-HexDump/
e91b59da 19BuildRequires: perl-devel >= 1:5.8.0
e2fdbe22 20BuildRequires: rpm-perlprov >= 4.1-13
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
989df4a6
JB
25Dump in hexadecimal the content of a scalar. The result is returned in
26a string. Each line of the result consists of the offset in the source
27in the leftmost column of each line, followed by one or more columns
28of data from the source in hexadecimal. The rightmost column of each
29line shows the printable characters (all others are shown as single
30dots).
e2fdbe22 31
dc631f0f
JR
32%description -l pl.UTF-8
33Data::HexDump wyrzuca szesnastkowo zawartość skalara. Wynik jest
34zwracany jako łańcuch. Każda linia wyniku składa się z offsetu w
35źródle w lewej kolumnie każdej linii, po którym następuje jedna lub
36więcej kolumn szesnastkowych danych ze źródła. Prawa kolumna każdej
37linii pokazuje znaki drukowalne (wszystkie inne są pokazywane jako
989df4a6 38pojedyncze kropki).
e2fdbe22 39
40%prep
41%setup -q -n %{pdir}-%{pnam}-%{version}
42
43%build
44%{__perl} Makefile.PL \
45 INSTALLDIRS=vendor
46%{__make}
47
e91b59da 48%{?with_tests:%{__make} test}
e2fdbe22 49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53%{__make} install \
54 DESTDIR=$RPM_BUILD_ROOT
57cfb9d3 55install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
df4c7fcb 56mv $RPM_BUILD_ROOT%{_bindir}/hexdump $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
e2fdbe22 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc README
64%{perl_vendorlib}/Data/*.pm
65%{_mandir}/man3/*
df4c7fcb
JB
66%dir %{_examplesdir}/%{name}-%{version}
67%{_examplesdir}/%{name}-%{version}/hexdump
This page took 0.05809 seconds and 4 git commands to generate.