Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Util?expand=0&rev=6
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-File-Util
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,23 +16,31 @@
|
||||
#
|
||||
|
||||
|
||||
Name: perl-File-Util
|
||||
Version: 4.201720
|
||||
Release: 0
|
||||
%define cpan_name File-Util
|
||||
Summary: Easy, versatile, portable file handling
|
||||
Name: perl-File-Util
|
||||
Version: 4.201.720
|
||||
Release: 0
|
||||
# 4.201720 -> normalize -> 4.201.720
|
||||
%define cpan_version 4.201720
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
Summary: Easy, versatile, portable file handling
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOMMY/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOMMY/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Module::Build) >= 0.280000
|
||||
BuildRequires: perl(Module::Build) >= 0.28
|
||||
BuildRequires: perl(Test::NoWarnings)
|
||||
Recommends: perl(Unicode::UTF8) >= 0.58
|
||||
Provides: perl(File::Util) = %{version}
|
||||
Provides: perl(File::Util::Definitions) = %{version}
|
||||
Provides: perl(File::Util::Exception) = %{version}
|
||||
Provides: perl(File::Util::Exception::Diagnostic) = %{version}
|
||||
Provides: perl(File::Util::Exception::Standard) = %{version}
|
||||
Provides: perl(File::Util::Interface::Classic) = %{version}
|
||||
Provides: perl(File::Util::Interface::Modern) = %{version}
|
||||
%undefine __perllib_provides
|
||||
Recommends: perl(Unicode::UTF8) >= 0.580
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -57,21 +65,20 @@ After browsing this document, please have a look at the other
|
||||
documentation. _(See DOCUMENTATION section below.)_
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
perl Build.PL installdirs=vendor
|
||||
./Build build flags=%{?_smp_mflags}
|
||||
perl Build.PL --installdirs=vendor
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc AUTHORS Changes examples NEWS README TODO
|
||||
%license COPYING LICENSE
|
||||
|
||||
|
Reference in New Issue
Block a user