1 |
jpp |
1.1 |
Name: perl-bareword-filehandles |
2 |
|
|
Version: 0.003 |
3 |
jpp |
1.2 |
Release: 2%{?org_tag}%{?dist} |
4 |
jpp |
1.1 |
Summary: Disables bareword filehandles |
5 |
|
|
License: GPL+ or Artistic |
6 |
|
|
Group: Development/Libraries |
7 |
|
|
URL: http://search.cpan.org/dist/bareword-filehandles/ |
8 |
|
|
Source0: http://localhost/cpan//authors/id/I/IL/ILMARI/bareword-filehandles-%{version}.tar.gz |
9 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
10 |
jpp |
1.2 |
BuildRequires: perl-devel perl-ExtUtils-Depends |
11 |
jpp |
1.1 |
BuildRequires: perl >= 0:5.008001 |
12 |
|
|
BuildRequires: perl(B::Hooks::OP::Check) |
13 |
|
|
BuildRequires: perl(ExtUtils::MakeMaker) |
14 |
|
|
BuildRequires: perl(Lexical::SealRequireHints) |
15 |
|
|
BuildRequires: perl(Test::More) >= 0.88 |
16 |
|
|
Requires: perl(B::Hooks::OP::Check) |
17 |
|
|
Requires: perl(Lexical::SealRequireHints) |
18 |
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
19 |
|
|
Autoreq: no |
20 |
|
|
|
21 |
|
|
%description |
22 |
|
|
This module lexically disables the use of bareword filehandles with builtin |
23 |
|
|
functions, except for the special builitin filehandles STDIN, STDOUT, |
24 |
|
|
STDERR, ARGV, ARGVOUT and DATA. |
25 |
|
|
|
26 |
|
|
%prep |
27 |
|
|
%setup -q -n bareword-filehandles-%{version} |
28 |
|
|
|
29 |
|
|
%build |
30 |
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
31 |
|
|
make %{?_smp_mflags} |
32 |
|
|
|
33 |
|
|
%install |
34 |
|
|
rm -rf %{buildroot} |
35 |
|
|
|
36 |
|
|
make pure_install PERL_INSTALL_ROOT=%{buildroot} |
37 |
|
|
|
38 |
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
39 |
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; |
40 |
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
41 |
|
|
|
42 |
|
|
%{_fixperms} %{buildroot}/* |
43 |
|
|
|
44 |
|
|
%check |
45 |
|
|
make test |
46 |
|
|
|
47 |
|
|
%clean |
48 |
|
|
rm -rf %{buildroot} |
49 |
|
|
|
50 |
|
|
%files |
51 |
|
|
%defattr(-,root,root,-) |
52 |
|
|
%doc Changes dist.ini LICENSE README weaver.ini |
53 |
|
|
%{perl_vendorarch}/auto/* |
54 |
|
|
%{perl_vendorarch}/bareword* |
55 |
|
|
%{_mandir}/man3/* |
56 |
|
|
|
57 |
|
|
%changelog |
58 |
jpp |
1.2 |
* Fri Dec 21 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.003-2.sme |
59 |
|
|
- fix Buildrequires to get it built |
60 |
|
|
|
61 |
jpp |
1.1 |
* Sun Dec 11 2011 Gavin Carr <gavin@openfusion.com.au> 0.003-1 |
62 |
|
|
- Specfile autogenerated by cpanspec 1.79. |