a4d4beb
Name:		perl-true
79a2384
Version:	1.0.1
542ae1b
Release:	6%{?dist}
a4d4beb
Summary:	Automatically return a true value when a file is required
79a2384
License:	Artistic 2.0
a4d4beb
URL:		https://metacpan.org/release/true
79a2384
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
79a2384
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.76
a4d4beb
BuildRequires:	perl(File::Copy)
a4d4beb
# ============= Module Runtime ==================
79a2384
BuildRequires:	perl(B::Hooks::OP::Annotation) >= 0.44
79a2384
BuildRequires:	perl(B::Hooks::OP::Check) >= 0.22
79a2384
BuildRequires:	perl(Devel::StackTrace) >= 2.03
a4d4beb
BuildRequires:	perl(strict)
79a2384
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)
79a2384
BuildRequires:	perl(Function::Parameters) >= 2.001003
a4d4beb
BuildRequires:	perl(lib)
79a2384
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
79a2384
%setup -q -n true-v%{version}
a4d4beb
a4d4beb
%build
79a2384
perl Makefile.PL \
79a2384
	INSTALLDIRS=vendor \
79a2384
	NO_PACKLIST=1 \
79a2384
	NO_PERLLOCAL=1 \
79a2384
	OPTIMIZE="%{optflags}"
79a2384
%{make_build}
a4d4beb
a4d4beb
%install
79a2384
%{make_install}
3d21524
find %{buildroot} -type f -name '*.bs' -empty -delete
3d21524
%{_fixperms} -c %{buildroot}
a4d4beb
a4d4beb
%check
a4d4beb
make test
a4d4beb
a4d4beb
%files
79a2384
%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
542ae1b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
542ae1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
542ae1b
8318d34
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.0.1-5
8318d34
- Perl 5.32 rebuild
8318d34
986c310
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
986c310
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
986c310
b5d4a59
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
b5d4a59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b5d4a59
bd1a6a5
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.0.1-2
bd1a6a5
- Perl 5.30 rebuild
bd1a6a5
79a2384
* Tue Mar 12 2019 Paul Howarth <paul@city-fan.org> - 1.0.1-1
79a2384
- Update to 1.0.1
79a2384
  - Fix breakage when using Moo/Moose and Function::Parameters on perl < 5.24
79a2384
    (CPAN RT#124745)
79a2384
  - Add t/rt-124745.t
79a2384
  - Update ppport.h from 3.19 → 3.44
79a2384
- License changed from (GPL+ or Artistic) to Artistic 2.0
79a2384
- Modernize spec using features from ExtUtils::MakeMaker ≥ 6.76
79a2384
badad0a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-19
badad0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
badad0a
ecbf746
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-18
ecbf746
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ecbf746
59d2a6a
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-17
59d2a6a
- Perl 5.28 rebuild
59d2a6a
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