88 lines
2.7 KiB
RPMSpec
88 lines
2.7 KiB
RPMSpec
|
|
%bcond_with perl_Scalar_Properties_enables_extra_test
|
||
|
|
|
||
|
|
# no debug package because it's noarch
|
||
|
|
%global debug_package %{nil}
|
||
|
|
# Similarly for .package_note* files
|
||
|
|
%undefine _package_note_file
|
||
|
|
|
||
|
|
Name: perl-Scalar-Properties
|
||
|
|
Version: 1.100860
|
||
|
|
Release: 1
|
||
|
|
Summary: Run-time properties on scalar variables
|
||
|
|
License: GPL+ or Artistic
|
||
|
|
URL: https://metacpan.org/release/Scalar-Properties
|
||
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARCEL/Scalar-Properties-%{version}.tar.gz
|
||
|
|
Patch0: Scalar-Properties-1.100860-English-is-for-author-tests.patch
|
||
|
|
Patch3: Scalar-Properties-1.100860-skip-MYMETA.yml.patch
|
||
|
|
BuildArch: noarch
|
||
|
|
# Build requirements
|
||
|
|
BuildRequires: coreutils
|
||
|
|
BuildRequires: findutils
|
||
|
|
BuildRequires: make
|
||
|
|
BuildRequires: perl-generators
|
||
|
|
BuildRequires: perl-interpreter
|
||
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.11
|
||
|
|
# Module requirements
|
||
|
|
BuildRequires: perl(overload)
|
||
|
|
BuildRequires: perl(strict)
|
||
|
|
BuildRequires: perl(warnings)
|
||
|
|
# Test requirements
|
||
|
|
BuildRequires: perl(Carp)
|
||
|
|
BuildRequires: perl(File::Temp)
|
||
|
|
BuildRequires: perl(Scalar::Util)
|
||
|
|
BuildRequires: perl(Test::More) >= 0.88
|
||
|
|
%if %{with perl_Scalar_Properties_enables_extra_test}
|
||
|
|
BuildRequires: perl(English)
|
||
|
|
BuildConflicts: perl(Test::Perl::Critic)
|
||
|
|
BuildRequires: perl(Pod::Coverage::TrustPod)
|
||
|
|
BuildConflicts: perl(Pod::Wordlist::hanekomu)
|
||
|
|
BuildRequires: perl(Test::CheckChanges)
|
||
|
|
BuildRequires: perl(Test::CPAN::Meta)
|
||
|
|
BuildRequires: perl(Test::DistManifest)
|
||
|
|
BuildRequires: perl(Test::HasVersion)
|
||
|
|
BuildRequires: perl(Test::Kwalitee)
|
||
|
|
BuildRequires: perl(Test::MinimumVersion)
|
||
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
||
|
|
BuildRequires: perl(Test::Portability::Files)
|
||
|
|
BuildRequires: perl(Test::Synopsis)
|
||
|
|
%endif
|
||
|
|
# Runtime requirements
|
||
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||
|
|
|
||
|
|
%description
|
||
|
|
Scalar::Properties attempts to make Perl more object-oriented by taking an idea
|
||
|
|
from Ruby: Everything you manipulate is an object, and the results of those
|
||
|
|
manipulations are objects themselves.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n Scalar-Properties-%{version}
|
||
|
|
%patch0 -p1
|
||
|
|
%patch3 -p1
|
||
|
|
|
||
|
|
%build
|
||
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
||
|
|
make %{?_smp_mflags}
|
||
|
|
|
||
|
|
%install
|
||
|
|
make pure_install DESTDIR=%{buildroot}
|
||
|
|
find %{buildroot} -type f -name .packlist -delete
|
||
|
|
%{_fixperms} -c %{buildroot}
|
||
|
|
|
||
|
|
%check
|
||
|
|
%if %{with perl_Scalar_Properties_enables_extra_test}
|
||
|
|
make test AUTHOR_TESTING=1 RELEASE_TESTING=1
|
||
|
|
%else
|
||
|
|
make test
|
||
|
|
%endif
|
||
|
|
|
||
|
|
%files
|
||
|
|
%license LICENSE
|
||
|
|
%doc Changes README
|
||
|
|
%{perl_vendorlib}/Scalar/
|
||
|
|
%{_mandir}/man3/Scalar::Properties.3*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Wed Jun 29 2022 misaka00251 <misaka00251@misakanet.cn> - 1.100860-1
|
||
|
|
- Init package (Thanks to fedora team)
|