-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathperl-Hash-FieldHash.spec
55 lines (45 loc) · 1.66 KB
/
perl-Hash-FieldHash.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Name: perl-Hash-FieldHash
Version: 0.14
Release: 1%{?dist}
Summary: Lightweight field hash for inside-out objects
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Hash-FieldHash/
Source0: http://cpan.metacpan.org/authors/id/G/GF/GFUJI/Hash-FieldHash-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 0:5.008005
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(ExtUtils::ParseXS) >= 2.21
BuildRequires: perl(Module::Build)
BuildRequires: perl(parent) >= 0.221
BuildRequires: perl(Test::LeakTrace) >= 0.07
BuildRequires: perl(Test::More) >= 0.62
Requires: perl(parent) >= 0.221
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Hash::FieldHash provides the field hash mechanism which supports the inside-
out technique.
%prep
%setup -q -n Hash-FieldHash-%{version}
%build
%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
./Build
%install
rm -rf $RPM_BUILD_ROOT
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes cpanfile LICENSE META.json minil.toml README.md
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Hash*
%{_mandir}/man3/*
%changelog
* Tue Aug 05 2014 David E. Wheeler <david.wheeler@iovation.com> 0.14-1
- Specfile autogenerated by cpanspec 1.78.