3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Data::HexDump - a simple hexadecial dumper
9 Summary(pl.UTF-8): Data::HexDump - proste zrzucanie danych w formacie szesnastkowym
10 Name: perl-Data-HexDump
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 467b7183d1062ab4a502b50c34e7d67f
18 URL: http://search.cpan.org/dist/Data-HexDump/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Dump in hexadecimal the content of a scalar. The result is returned in
26 a string. Each line of the result consists of the offset in the source
27 in the leftmost column of each line, followed by one or more columns
28 of data from the source in hexadecimal. The rightmost column of each
29 line shows the printable characters (all others are shown as single
32 %description -l pl.UTF-8
33 Data::HexDump wyrzuca szesnastkowo zawartość skalara. Wynik jest
34 zwracany 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
36 więcej kolumn szesnastkowych danych ze źródła. Prawa kolumna każdej
37 linii pokazuje znaki drukowalne (wszystkie inne są pokazywane jako
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 mv $RPM_BUILD_ROOT%{_bindir}/hexdump $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/Data/*.pm
66 %dir %{_examplesdir}/%{name}-%{version}
67 %{_examplesdir}/%{name}-%{version}/hexdump