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-AtomicWrite?expand=0&rev=12
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-File-AtomicWrite
|
# spec file for package perl-File-AtomicWrite
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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,24 +16,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-File-AtomicWrite
|
|
||||||
Version: 1.21
|
|
||||||
Release: 0
|
|
||||||
%define cpan_name File-AtomicWrite
|
%define cpan_name File-AtomicWrite
|
||||||
Summary: Writes Files Atomically Via Rename()
|
Name: perl-File-AtomicWrite
|
||||||
|
Version: 1.210.0
|
||||||
|
Release: 0
|
||||||
|
# 1.21 -> normalize -> 1.210.0
|
||||||
|
%define cpan_version 1.21
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/Perl
|
Summary: Writes files atomically via rename()
|
||||||
Url: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/J/JM/JMATES/%{cpan_name}-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/J/JM/JMATES/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Digest::SHA1)
|
BuildRequires: perl(Digest::SHA1)
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.48
|
||||||
BuildRequires: perl(File::Temp) >= 0.18
|
BuildRequires: perl(File::Temp) >= 0.18
|
||||||
Requires: perl(Digest::SHA1)
|
Requires: perl(Digest::SHA1)
|
||||||
Requires: perl(File::Temp) >= 0.18
|
Requires: perl(File::Temp) >= 0.18
|
||||||
|
Provides: perl(File::AtomicWrite) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -56,15 +59,16 @@ the author know. Also notify the author if false positives from the 'close'
|
|||||||
call are observed.
|
call are observed.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
|
||||||
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
@@ -72,7 +76,6 @@ perl Makefile.PL INSTALLDIRS=vendor
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user