]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Data::HexDump - a simple hexadecial dumper |
fc85f419 | 9 | Summary(pl.UTF-8): Data::HexDump - proste zrzucanie danych w formacie szesnastkowym |
e2fdbe22 | 10 | Name: perl-Data-HexDump |
11 | Version: 0.02 | |
f75b245a | 12 | Release: 4 |
e104ad6a | 13 | # sa,e as perl |
14 | License: GPL v1+ or Artistic | |
e2fdbe22 | 15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
dc942db6 | 17 | # Source0-md5: 467b7183d1062ab4a502b50c34e7d67f |
1f85e037 | 18 | URL: http://search.cpan.org/dist/Data-HexDump/ |
e91b59da | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
e2fdbe22 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
989df4a6 JB |
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 | |
30 | dots). | |
e2fdbe22 | 31 | |
dc631f0f JR |
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 | |
989df4a6 | 38 | pojedyncze 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 | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
57cfb9d3 | 55 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
df4c7fcb | 56 | mv $RPM_BUILD_ROOT%{_bindir}/hexdump $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
e2fdbe22 | 57 | |
58 | %clean | |
59 | rm -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 |