%define module Data-HexDump %define name perl-%{module} %define version 0.02 %define release 2mdk Summary: A Simple Hexadecial Dumper Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Development/Perl Requires: perl URL: http://www.cpan.org Source: %{module}-%{version}.tar.bz2 Prefix: %{_prefix} BuildRequires: perl-devel Buildroot: %{_tmppath}/%{name}-root BuildArch: noarch %description Dump in hexadecimal the content of a scalar. The result is returned in a string. Each line of the result consists of the offset in the source in the leftmost column of each line, followed by one or more columns of data from the source in hexadecimal. The rightmost column of each line shows the printable characters (all others are shown as single dots) %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make OPTIMIZE="$RPM_OPT_FLAGS" make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std # (sb) conflicts with util-linux mv $RPM_BUILD_ROOT%{_bindir}/hexdump $RPM_BUILD_ROOT%{_bindir}/perl-hexdump %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_mandir}/man3/Data::HexDump.3pm.bz2 %dir %{perl_vendorlib}/Data %{perl_vendorlib}/Data/HexDump.pm %{_bindir}/perl-hexdump %changelog * Tue Dec 30 2003 Stew Benedict <sbenedict@mandrakesoft.com> 0.02-2mdk - distriblint * Mon Dec 1 2003 Stew Benedict <sbenedict@mandrakesoft.com> 0.02-1mdk - first Mandrake release, required for perl-Authen-Radius