-
Notifications
You must be signed in to change notification settings - Fork 1
/
perl-Type-Tiny.spec
87 lines (76 loc) · 2.67 KB
/
perl-Type-Tiny.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Name: perl-Type-Tiny
Version: 0.046
Release: 1%{?dist}
Summary: Tiny, yet Moo(se)-compatible type constraint
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Type-Tiny/
Source0: http://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Type-Tiny-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 0:5.006001
BuildRequires: perl(B)
BuildRequires: perl(B::Deparse)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Devel::LexAlias) >= 0.05
BuildRequires: perl(Devel::StackTrace)
BuildRequires: perl(Exporter::Tiny) >= 0.026
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Name)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Text::Balanced)
BuildRequires: perl(Type::Tie)
BuildRequires: perl(Type::Tiny::XS) >= 0.003
BuildRequires: perl(base)
BuildRequires: perl(mro)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
Requires: perl >= 0:5.006001
Requires: perl(B)
Requires: perl(B::Deparse)
Requires: perl(Data::Dumper)
Requires: perl(Devel::LexAlias) >= 0.05
Requires: perl(Devel::StackTrace)
Requires: perl(Exporter::Tiny) >= 0.026
Requires: perl(ExtUtils::MakeMaker)
Requires: perl(Scalar::Util)
Requires: perl(Sub::Name)
Requires: perl(Test::More) >= 0.96
Requires: perl(Text::Balanced)
Requires: perl(Type::Tie)
Requires: perl(Type::Tiny::XS) >= 0.003
Requires: perl(base)
Requires: perl(mro)
Requires: perl(overload)
Requires: perl(strict)
Requires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
AutoReq: 0
%description
Type::Tiny is a tiny class for creating Moose-like type constraint objects
which are compatible with Moo, Moose and Mouse.
%prep
%setup -q -n Type-Tiny-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes CONTRIBUTING COPYRIGHT CREDITS dist.ini doap.ttl LICENSE META.json NEWS README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Tue Aug 05 2014 David E. Wheeler <[email protected]> 0.046-1
- Specfile autogenerated by cpanspec 1.78.