3 %bcond_without tests # do not perform "make test"
7 Summary: Data::HexDump - a simple hexadecial dumper
8 Summary(pl.UTF-8): Data::HexDump - proste zrzucanie danych w formacie szesnastkowym
9 Name: perl-Data-HexDump
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 467b7183d1062ab4a502b50c34e7d67f
17 URL: http://search.cpan.org/dist/Data-HexDump/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Dump in hexadecimal the content of a scalar. The result is returned in
25 a string. Each line of the result consists of the offset in the source
26 in the leftmost column of each line, followed by one or more columns
27 of data from the source in hexadecimal. The rightmost column of each
28 line shows the printable characters (all others are shown as single
31 %description -l pl.UTF-8
32 Data::HexDump wyrzuca szesnastkowo zawartość skalara. Wynik jest
33 zwracany jako łańcuch. Każda linia wyniku składa się z offsetu w
34 źródle w lewej kolumnie każdej linii, po którym następuje jedna lub
35 więcej kolumn szesnastkowych danych ze źródła. Prawa kolumna każdej
36 linii pokazuje znaki drukowalne (wszystkie inne są pokazywane jako
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 mv $RPM_BUILD_ROOT%{_bindir}/hexdump $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorlib}/Data/*.pm
65 %dir %{_examplesdir}/%{name}-%{version}
66 %{_examplesdir}/%{name}-%{version}/hexdump