Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl
perl-true
perl-true.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-true.spec of Package perl-true
# # spec file for package perl-true # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: perl-true Version: 1.0.2 Release: 0 %define cpan_name true Summary: Automatically return a true value when a file is required License: Artistic-2.0 Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/%{cpan_name}-v%{version}.tar.gz Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(B::Hooks::OP::Annotation) >= 0.44 BuildRequires: perl(B::Hooks::OP::Check) >= 0.22 BuildRequires: perl(Devel::StackTrace) >= 2.03 BuildRequires: perl(ExtUtils::Depends) >= 0.405 BuildRequires: perl(Function::Parameters) >= 2.001003 BuildRequires: perl(Moo) >= 2.003004 Requires: perl(B::Hooks::OP::Annotation) >= 0.44 Requires: perl(B::Hooks::OP::Check) >= 0.22 Requires: perl(Devel::StackTrace) >= 2.03 %{perl_requires} %description Perl's 'require' builtin (and its 'use' wrapper) requires the files it loads to return a true value. This is usually accomplished by placing a single 1; statement at the end of included scripts or modules. It's not onerous to add but it's a speed bump on the Perl novice's road to enlightenment. In addition, it appears to be a _non-sequitur_ to the uninitiated, leading some to attempt to mitigate its appearance with a comment: 1; # keep require happy or: 1; # Do not remove this line or even: 1; # Must end with this, because Perl is bogus. This module packages this "return true" behaviour so that it doesn't need to be written explicitly. It can be used directly, but it is intended to be invoked from the 'import' method of a Modern::Perl-style module that enables modern Perl features and conveniences and cleans up legacy Perl warts. %prep %setup -q -n %{cpan_name}-v%{version} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README %license LICENSE.md %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor