|
|
a4d4beb |
Name: perl-true
|
|
|
74b83ef |
Version: 1.0.1
|
|
|
74b83ef |
Release: 1%{?dist}
|
|
|
a4d4beb |
Summary: Automatically return a true value when a file is required
|
|
|
74b83ef |
License: Artistic 2.0
|
|
|
a4d4beb |
URL: https://metacpan.org/release/true
|
|
|
74b83ef |
Source0: http://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/true-v%{version}.tar.gz
|
|
|
a4d4beb |
# ============= Module Build ====================
|
|
|
daf8a1e |
BuildRequires: coreutils
|
|
|
daf8a1e |
BuildRequires: findutils
|
|
|
3d21524 |
BuildRequires: gcc
|
|
|
daf8a1e |
BuildRequires: make
|
|
|
daf8a1e |
BuildRequires: perl-devel
|
|
|
3c16f66 |
BuildRequires: perl-generators
|
|
|
3d21524 |
BuildRequires: perl-interpreter
|
|
|
a4d4beb |
BuildRequires: perl(Config)
|
|
|
a4d4beb |
BuildRequires: perl(ExtUtils::Depends) >= 0.304
|
|
|
74b83ef |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
a4d4beb |
BuildRequires: perl(File::Copy)
|
|
|
a4d4beb |
# ============= Module Runtime ==================
|
|
|
74b83ef |
BuildRequires: perl(B::Hooks::OP::Annotation) >= 0.44
|
|
|
74b83ef |
BuildRequires: perl(B::Hooks::OP::Check) >= 0.22
|
|
|
74b83ef |
BuildRequires: perl(Devel::StackTrace) >= 2.03
|
|
|
a4d4beb |
BuildRequires: perl(strict)
|
|
|
74b83ef |
BuildRequires: perl(version) >= 0.77
|
|
|
a4d4beb |
BuildRequires: perl(warnings)
|
|
|
a4d4beb |
BuildRequires: perl(XSLoader)
|
|
|
a4d4beb |
# ============= Test Suite ======================
|
|
|
a4d4beb |
BuildRequires: perl(base)
|
|
|
a4d4beb |
BuildRequires: perl(File::Spec)
|
|
|
a4d4beb |
BuildRequires: perl(FindBin)
|
|
|
74b83ef |
BuildRequires: perl(Function::Parameters) >= 2.001003
|
|
|
a4d4beb |
BuildRequires: perl(lib)
|
|
|
74b83ef |
BuildRequires: perl(Moo) >= 2.003004
|
|
|
a4d4beb |
BuildRequires: perl(Test::More)
|
|
|
a4d4beb |
# ============= Module Runtime ==================
|
|
|
a4d4beb |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
a4d4beb |
|
|
|
a4d4beb |
# Don't "provide" private Perl libs
|
|
|
a4d4beb |
%{?perl_default_filter}
|
|
|
a4d4beb |
|
|
|
a4d4beb |
%description
|
|
|
a4d4beb |
Perl's require built-in (and its use wrapper) requires the files it loads to
|
|
|
a4d4beb |
return a true value. This is usually accomplished by placing a single
|
|
|
a4d4beb |
|
|
|
3d21524 |
1;
|
|
|
a4d4beb |
|
|
|
a4d4beb |
statement at the end of included scripts or modules. It's not onerous to add
|
|
|
a4d4beb |
but it's a speed bump on the Perl novice's road to enlightenment. In addition,
|
|
|
a4d4beb |
it appears to be a non-sequitur to the uninitiated, leading some to attempt to
|
|
|
a4d4beb |
mitigate its appearance with a comment:
|
|
|
a4d4beb |
|
|
|
a4d4beb |
1; # keep require happy
|
|
|
a4d4beb |
or:
|
|
|
a4d4beb |
1; # Do not remove this line
|
|
|
a4d4beb |
or even:
|
|
|
a4d4beb |
1; # Must end with this, because Perl is bogus.
|
|
|
a4d4beb |
|
|
|
a4d4beb |
This module packages this "return true" behavior so that it need not be
|
|
|
a4d4beb |
written explicitly. It can be used directly, but it is intended to be invoked
|
|
|
a4d4beb |
from the import method of a Modern::Perl-style module that enables modern Perl
|
|
|
a4d4beb |
features and conveniences and cleans up legacy Perl warts.
|
|
|
a4d4beb |
|
|
|
a4d4beb |
%prep
|
|
|
74b83ef |
%setup -q -n true-v%{version}
|
|
|
a4d4beb |
|
|
|
a4d4beb |
%build
|
|
|
74b83ef |
perl Makefile.PL \
|
|
|
74b83ef |
INSTALLDIRS=vendor \
|
|
|
74b83ef |
NO_PACKLIST=1 \
|
|
|
74b83ef |
NO_PERLLOCAL=1 \
|
|
|
74b83ef |
OPTIMIZE="%{optflags}"
|
|
|
74b83ef |
%{make_build}
|
|
|
a4d4beb |
|
|
|
a4d4beb |
%install
|
|
|
74b83ef |
%{make_install}
|
|
|
3d21524 |
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
3d21524 |
%{_fixperms} -c %{buildroot}
|
|
|
a4d4beb |
|
|
|
a4d4beb |
%check
|
|
|
a4d4beb |
make test
|
|
|
a4d4beb |
|
|
|
a4d4beb |
%files
|
|
|
74b83ef |
%license LICENSE.md
|
|
|
a4d4beb |
%doc Changes README
|
|
|
a4d4beb |
%{perl_vendorarch}/auto/true/
|
|
|
a4d4beb |
%{perl_vendorarch}/true.pm
|
|
|
a4d4beb |
%{perl_vendorarch}/true/
|
|
|
daf8a1e |
%{_mandir}/man3/true.3*
|
|
|
daf8a1e |
%{_mandir}/man3/true::VERSION.3*
|
|
|
a4d4beb |
|
|
|
a4d4beb |
%changelog
|
|
|
74b83ef |
* Tue Mar 12 2019 Paul Howarth <paul@city-fan.org> - 1.0.1-1
|
|
|
74b83ef |
- Update to 1.0.1
|
|
|
74b83ef |
- Fix breakage when using Moo/Moose and Function::Parameters on perl < 5.24
|
|
|
74b83ef |
(CPAN RT#124745)
|
|
|
74b83ef |
- Add t/rt-124745.t
|
|
|
74b83ef |
- Update ppport.h from 3.19 → 3.44
|
|
|
74b83ef |
- License changed from (GPL+ or Artistic) to Artistic 2.0
|
|
|
74b83ef |
- Modernize spec using features from ExtUtils::MakeMaker ≥ 6.76
|
|
|
74b83ef |
|
|
|
91da521 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-19
|
|
|
91da521 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
91da521 |
|
|
|
e97f7fe |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-18
|
|
|
e97f7fe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
e97f7fe |
|
|
|
af5e9f1 |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-17
|
|
|
af5e9f1 |
- Perl 5.28 rebuild
|
|
|
af5e9f1 |
|
|
|
3d21524 |
* Thu Feb 22 2018 Paul Howarth <paul@city-fan.org> - 0.18-16
|
|
|
3d21524 |
- BR: gcc
|
|
|
3d21524 |
- Drop legacy Group: tag
|
|
|
3d21524 |
|
|
|
98772a9 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-15
|
|
|
98772a9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
98772a9 |
|
|
|
bdba342 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-14
|
|
|
bdba342 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
bdba342 |
|
|
|
b3433dd |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-13
|
|
|
b3433dd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b3433dd |
|
|
|
04383c7 |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-12
|
|
|
04383c7 |
- Perl 5.26 rebuild
|
|
|
04383c7 |
|
|
|
5905bc9 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-11
|
|
|
5905bc9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
5905bc9 |
|
|
|
aa63925 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-10
|
|
|
aa63925 |
- Perl 5.24 rebuild
|
|
|
aa63925 |
|
|
|
daf8a1e |
* Tue Apr 19 2016 Paul Howarth <paul@city-fan.org> - 0.18-9
|
|
|
daf8a1e |
- Fix FTBFS due to missing buildreq perl-devel
|
|
|
daf8a1e |
- Simplify find commands using -empty and -delete
|
|
|
daf8a1e |
|
|
|
f13a74f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-8
|
|
|
f13a74f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
f13a74f |
|
|
|
d08daee |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-7
|
|
|
d08daee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
d08daee |
|
|
|
30a918c |
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-6
|
|
|
30a918c |
- Perl 5.22 rebuild
|
|
|
30a918c |
|
|
|
da2f5f6 |
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-5
|
|
|
da2f5f6 |
- Perl 5.20 rebuild
|
|
|
da2f5f6 |
|
|
|
3cce5b6 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-4
|
|
|
3cce5b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
3cce5b6 |
|
|
|
9cf793b |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-3
|
|
|
9cf793b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
9cf793b |
|
|
|
a4d4beb |
* Mon Aug 19 2013 Paul Howarth <paul@city-fan.org> - 0.18-2
|
|
|
a4d4beb |
- Sanitize for Fedora submission
|
|
|
a4d4beb |
|
|
|
a4d4beb |
* Fri Aug 16 2013 Paul Howarth <paul@city-fan.org> - 0.18-1
|
|
|
a4d4beb |
- Initial RPM version
|