]> git.pld-linux.org Git - packages/perl-Hash-Flatten.git/blame - perl-Hash-Flatten.spec
- up to 1.19
[packages/perl-Hash-Flatten.git] / perl-Hash-Flatten.spec
CommitLineData
cf5eb3a5 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Hash
7%define pnam Flatten
8Summary: Hash::Flatten - flatten/unflatten complex data hashes
9Summary(pl.UTF-8): Hash::Flatten - wygładź/pomarszcz wartości funkcji skrótu dla złożonych danych
10Name: perl-Hash-Flatten
2bbb775a 11Version: 1.19
cf5eb3a5 12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://search.cpan.org/CPAN/authors/id/B/BB/BBC/%{pdir}-%{pnam}-%{version}.tar.gz
2bbb775a 17# Source0-md5: cc2ffc365858b90192dbb8be52311267
cf5eb3a5 18URL: http://search.cpan.org/dist/Hash-Flatten/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl(Log::Trace)
23BuildRequires: perl(Test::Assertions)
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Converts back and forth between a nested hash structure and a flat
30hash of delimited key-value pairs. Useful for protocols that only
31support key-value pairs (such as CGI and DBMs).
32
33%description -l pl.UTF-8
34Konwertuje przód i tył pomiędzy zagnieżdzoną strukturą wartości
35funkcji skrótu i płaską wartością funkcji skrótu jako rozdzielone pary
36kluczy i wartości.
37
38%prep
39%setup -q -n %{pdir}-%{pnam}-%{version}
40
41%build
42%{__perl} Makefile.PL \
43 INSTALLDIRS=vendor
44%{__make}
45
46%{?with_tests:%{__make} test}
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc Changes README
60%{perl_vendorlib}/Hash/*.pm
61%{_mandir}/man3/*
This page took 0.09737 seconds and 4 git commands to generate.