forked from pool/perl-Module-Build-XSUtil
Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 21 11:33:19 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||||
|
|
||||||
|
- Normalize CPAN version
|
||||||
|
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 3 07:14:01 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
Wed Apr 3 07:14:01 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Module-Build-XSUtil
|
# spec file for package perl-Module-Build-XSUtil
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,31 +16,33 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Module-Build-XSUtil
|
|
||||||
Version: 0.19
|
|
||||||
Release: 0
|
|
||||||
%define cpan_name Module-Build-XSUtil
|
%define cpan_name Module-Build-XSUtil
|
||||||
Summary: Module::Build class for building XS modules
|
Name: perl-Module-Build-XSUtil
|
||||||
|
Version: 0.190.0
|
||||||
|
Release: 0
|
||||||
|
# 0.19 -> normalize -> 0.190.0
|
||||||
|
%define cpan_version 0.19
|
||||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Summary: Module::Build class for building XS modules
|
||||||
Url: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/H/HI/HIDEAKIO/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/H/HI/HIDEAKIO/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
Source100: README.md
|
Source100: README.md
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Capture::Tiny)
|
BuildRequires: perl(Capture::Tiny)
|
||||||
BuildRequires: perl(Cwd::Guard)
|
BuildRequires: perl(Cwd::Guard)
|
||||||
BuildRequires: perl(Devel::CheckCompiler)
|
BuildRequires: perl(Devel::CheckCompiler)
|
||||||
BuildRequires: perl(ExtUtils::CBuilder)
|
BuildRequires: perl(ExtUtils::CBuilder)
|
||||||
BuildRequires: perl(File::Copy::Recursive::Reduced) >= 0.002
|
BuildRequires: perl(File::Copy::Recursive::Reduced) >= 0.2
|
||||||
BuildRequires: perl(Module::Build) >= 0.400500
|
BuildRequires: perl(Module::Build) >= 0.400.500
|
||||||
BuildRequires: perl(Test::More) >= 0.98
|
BuildRequires: perl(Test::More) >= 0.98
|
||||||
BuildRequires: perl(parent)
|
BuildRequires: perl(parent)
|
||||||
Requires: perl(Devel::CheckCompiler)
|
Requires: perl(Devel::CheckCompiler)
|
||||||
Requires: perl(ExtUtils::CBuilder)
|
Requires: perl(ExtUtils::CBuilder)
|
||||||
Requires: perl(parent)
|
Requires: perl(parent)
|
||||||
|
Provides: perl(Module::Build::XSUtil) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -83,22 +85,21 @@ Enable compiler warnings flag. It is enable by default.
|
|||||||
If invoke Build.PL with '-g' option, It will build with debug options.
|
If invoke Build.PL with '-g' option, It will build with debug options.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL installdirs=vendor optimize="%{optflags}"
|
perl Build.PL --installdirs=vendor optimize="%{optflags}"
|
||||||
./Build build flags=%{?_smp_mflags}
|
./Build build --flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=%{buildroot} create_packlist=0
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
%doc Changes README.md
|
||||||
%doc Changes minil.toml README.md
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user