From 7cd06de7951c47aefd804a1728860db72097c4d277dae69a686d4fc78378fdc9 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Tue, 11 Feb 2025 07:08:13 +0000 Subject: [PATCH] - updated to 1.18.0 (1.018) see /usr/share/doc/packages/perl-Perl-Version/Changes 1.018 2025-01-27T13:07:40Z * refresh distro and move to BRIANDFOY OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-Version?expand=0&rev=12 --- .gitattributes | 23 ++++++++ .gitignore | 1 + Perl-Version-1.017.tar.gz | 3 + Perl-Version-1.018.tar.gz | 3 + perl-Perl-Version.changes | 47 +++++++++++++++ perl-Perl-Version.spec | 116 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 193 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Perl-Version-1.017.tar.gz create mode 100644 Perl-Version-1.018.tar.gz create mode 100644 perl-Perl-Version.changes create mode 100644 perl-Perl-Version.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Perl-Version-1.017.tar.gz b/Perl-Version-1.017.tar.gz new file mode 100644 index 0000000..c1f9471 --- /dev/null +++ b/Perl-Version-1.017.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d85283bc5411af0f71fd75284a0b2e1ff3a7ec13f16464046f1fd77aa8647e4 +size 30441 diff --git a/Perl-Version-1.018.tar.gz b/Perl-Version-1.018.tar.gz new file mode 100644 index 0000000..8722c06 --- /dev/null +++ b/Perl-Version-1.018.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffddcd3771f1f8a12b30f87650d325f651ae1ef4daa0ebf8abda38ba8f5e3dcd +size 31452 diff --git a/perl-Perl-Version.changes b/perl-Perl-Version.changes new file mode 100644 index 0000000..1439b03 --- /dev/null +++ b/perl-Perl-Version.changes @@ -0,0 +1,47 @@ +------------------------------------------------------------------- +Tue Jan 28 05:31:25 UTC 2025 - Tina Müller + +- updated to 1.18.0 (1.018) + see /usr/share/doc/packages/perl-Perl-Version/Changes + + 1.018 2025-01-27T13:07:40Z + * refresh distro and move to BRIANDFOY + +------------------------------------------------------------------- +Fri Mar 22 16:35:15 UTC 2024 - Tina Müller + +- updated to 1.017 + see /usr/share/doc/packages/perl-Perl-Version/Changes + + 1.017 2024-03-09T01:36:13Z + * fix encoding argment to read_line ("Odd number" warning), from + Andreas Hadjiprocopis (#11) + +------------------------------------------------------------------- +Fri Mar 8 22:56:30 UTC 2024 - Tina Müller + +- Fix disabling of __perllib_provides + +------------------------------------------------------------------- +Sat Jan 6 03:08:10 UTC 2024 - Tina Müller + +- updated to 1.016 + see /usr/share/doc/packages/perl-Perl-Version/Changes + +------------------------------------------------------------------- +Mon Mar 17 08:29:25 UTC 2014 - coolo@suse.com + +- updated to 1.013 + Remove File::Slurp, which has a critical security issue (RT 92974) + +------------------------------------------------------------------- +Mon May 16 08:52:22 UTC 2011 - coolo@opensuse.org + +- updated to 1.011 + +------------------------------------------------------------------- +Fri Jan 14 11:33:26 UTC 2011 - coolo@novell.com + +- initial package 1.010 + * created by cpanspec 1.78.03 + diff --git a/perl-Perl-Version.spec b/perl-Perl-Version.spec new file mode 100644 index 0000000..3912d2c --- /dev/null +++ b/perl-Perl-Version.spec @@ -0,0 +1,116 @@ +# +# spec file for package perl-Perl-Version +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define cpan_name Perl-Version +Name: perl-Perl-Version +Version: 1.18.0 +Release: 0 +# 1.018 -> normalize -> 1.18.0 +%define cpan_version 1.018 +License: Artistic-2.0 +Summary: Parse and manipulate Perl version strings +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/%{cpan_name}-%{cpan_version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64 +BuildRequires: perl(Test::More) >= 1 +Provides: perl(Perl::Version) = %{version} +%undefine __perllib_provides +%{perl_requires} + +%description +Perl::Version provides a simple interface for parsing, manipulating and +formatting Perl version strings. + +Unlike version.pm (which concentrates on parsing and comparing version +strings) Perl::Version is designed for cases where you'd like to parse a +version, modify it and get back the modified version formatted like the +original. + +For example: + + my $version = Perl::Version->new( '1.2.3' ); + $version->inc_version; + print "$version\n"; + +prints + + 1.3.0 + +whereas + + my $version = Perl::Version->new( 'v1.02.03' ); + $version->inc_version; + print "$version\n"; + +prints + + v1.03.00 + +Both are representations of the same version and they'd compare equal but +their formatting is different. + +Perl::Version tries hard to guess and recreate the format of the original +version and in most cases it succeeds. In rare cases the formatting is +ambiguous. Consider + + 1.10.03 + +Do you suppose that second component '10' is zero padded like the third +component? Perl::Version will assume that it is: + + my $version = Perl::Version->new( '1.10.03' ); + $version->inc_revision; + print "$version\n"; + +will print + + 2.00.00 + +If all of the components after the first are the same length (two +characters in this case) and any of them begins with a zero Perl::Version +will assume that they're all zero padded to the same length. + +The first component and any alpha suffix are handled separately. In each +case if either of them starts with a zero they will be zero padded to the +same length when stringifying the version. + +%prep +%autosetup -n %{cpan_name}-%{cpan_version} -p1 + +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes examples Notes.txt SECURITY.md +%license LICENSE + +%changelog