forked from pool/perl-namespace-clean
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
0e53cab763 | |||
6f3ff6839e |
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 20 11:02:42 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 23 13:10:12 UTC 2016 - coolo@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-namespace-clean
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,42 +12,44 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-namespace-clean
|
||||
Version: 0.27
|
||||
Release: 0
|
||||
%define cpan_name namespace-clean
|
||||
Name: perl-namespace-clean
|
||||
Version: 0.270.0
|
||||
Release: 0
|
||||
# 0.27 -> normalize -> 0.270.0
|
||||
%define cpan_version 0.27
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Keep imports and functions out of your namespace
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/namespace-clean/
|
||||
Source0: http://www.cpan.org/authors/id/R/RI/RIBASUSHI/%{cpan_name}-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.12
|
||||
BuildRequires: perl(Package::Stash) >= 0.23
|
||||
Requires: perl(B::Hooks::EndOfScope) >= 0.12
|
||||
Requires: perl(Package::Stash) >= 0.23
|
||||
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.120
|
||||
BuildRequires: perl(Package::Stash) >= 0.230
|
||||
Requires: perl(B::Hooks::EndOfScope) >= 0.120
|
||||
Requires: perl(Package::Stash) >= 0.230
|
||||
Provides: perl(namespace::clean) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Keep imports and functions out of your namespace
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -55,7 +57,6 @@ Keep imports and functions out of your namespace
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user