From 979e7867ac32fa5ab2e3a1c961bcdb87f17f0eb987322b645d0a436fe0dda55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 4 Feb 2025 18:42:48 +0000 Subject: [PATCH 1/2] 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-Bit-Vector?expand=0&rev=25 --- .gitattributes | 23 +++++++ .gitignore | 1 + Bit-Vector-7.1.diff | 40 ++++++++++++ Bit-Vector-7.4.tar.gz | 3 + cpanspec.yml | 19 ++++++ perl-Bit-Vector.changes | 135 ++++++++++++++++++++++++++++++++++++++++ perl-Bit-Vector.spec | 67 ++++++++++++++++++++ 7 files changed, 288 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Bit-Vector-7.1.diff create mode 100644 Bit-Vector-7.4.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-Bit-Vector.changes create mode 100644 perl-Bit-Vector.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/Bit-Vector-7.1.diff b/Bit-Vector-7.1.diff new file mode 100644 index 0000000..d4bbef4 --- /dev/null +++ b/Bit-Vector-7.1.diff @@ -0,0 +1,40 @@ +--- examples/SetObject.pl ++++ examples/SetObject.pl +@@ -1,4 +1,4 @@ +-#!perl ++#!/usr/bin/perl + + ############################################################################### + ## ## +--- examples/benchmk1.pl ++++ examples/benchmk1.pl +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + + use Benchmark; + +--- examples/benchmk2.pl ++++ examples/benchmk2.pl +@@ -1,4 +1,4 @@ +-#!perl ++#!/usr/bin/perl + + use Benchmark; + use Bit::Vector::String; +--- examples/benchmk3.pl ++++ examples/benchmk3.pl +@@ -1,4 +1,4 @@ +-#!perl -w ++#!/usr/bin/perl -w + + package Bit::Vector; + +--- examples/primes.pl ++++ examples/primes.pl +@@ -1,4 +1,4 @@ +-#!perl -w ++#!/usr/bin/perl -w + + ############################################################################### + ## ## diff --git a/Bit-Vector-7.4.tar.gz b/Bit-Vector-7.4.tar.gz new file mode 100644 index 0000000..18fa934 --- /dev/null +++ b/Bit-Vector-7.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c6daa671fecfbc35f92a9385b563d65f50dfc6bdc8b4805f9ef46c0d035a926 +size 135965 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..f147fda --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,19 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +patches: + Bit-Vector-7.1.diff: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +license: GPL-1.0+ or Artistic-1.0 +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Bit-Vector.changes b/perl-Bit-Vector.changes new file mode 100644 index 0000000..b4fae73 --- /dev/null +++ b/perl-Bit-Vector.changes @@ -0,0 +1,135 @@ +------------------------------------------------------------------- +Mon Mar 4 12:22:18 UTC 2024 - pgajdos@suse.com + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN + +------------------------------------------------------------------- +Tue Apr 14 12:24:17 UTC 2015 - coolo@suse.com + +- updated to 7.4 + see /usr/share/doc/packages/perl-Bit-Vector/CHANGES.txt + +------------------------------------------------------------------- +Mon Jun 3 11:39:43 UTC 2013 - coolo@suse.com + +- updated to 7.3 + * Fixed t/02_____destroy.t to make it pass on perl-5.17.11 + +------------------------------------------------------------------- +Wed May 23 13:19:49 UTC 2012 - coolo@suse.com + +- update to 7.2 + * change boolean type + +------------------------------------------------------------------- +Thu Nov 17 12:56:55 UTC 2011 - coolo@suse.com + +- use original tar + +------------------------------------------------------------------- +Wed Dec 1 13:30:47 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Wed Nov 24 21:36:24 UTC 2010 - chris@computersalat.de + +- recreated by cpanspec 1.78 + o fix deps + +------------------------------------------------------------------- +Wed Jan 13 16:36:27 CET 2010 - anicka@suse.cz + +- update to 7.1 + * Added prefix "BV_" to all global identifiers in "BitVector.c", + "BitVector.h" and "Vector.xs" + * Fixed a bug in "GCD2()" in "BitVector.c" with null-size vectors + * Added more test cases for "GCD()" in "t/17_________gcd.t" + * Almost completely rewrote "BitVector_Boot()" in "BitVector.c" + in order to fix the problem that it calculated an unsigned + long to have 33 bits under MacOS X (Darwin), leading to + failing tests in "t/28___chunklist.t" + * BEWARE that the type "ErrCode", which is part of the inter- + face of the C library "BitVector.c", has been changed! + * Added more tests and a debugging aid to "t/28___chunklist.t" + * Removed the two example files showing how to freeze/thaw + "Bit::Vector" objects using "Data::Dumper", because after + closer inspection this proved to be a can of worms + * Replaced "Storable::freeze()" by "Storable::nfreeze()" + * Added more test cases for "Storable" + * Added two example files showing how to freeze/thaw + using "Data::Dumper" + * Fixed the bug of "Storable" not reconstructing nested data + structures properly which contain several references to + the same "Bit::Vector" object + * Fixed hard-coded table size "MASKTABSIZE" in "BitVector.c" + * Small cosmetic fixes to the documentation + * Replaced "STORABLE_thaw()" by "STORABLE_attach()" + +------------------------------------------------------------------- +Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de + +- enable parallel build + +------------------------------------------------------------------- +Mon Aug 3 16:04:27 CEST 2009 - anicka@suse.cz + +- update to 6.6 + - Made the module thread-safe and MacOS X compatible + - Added automatic support for module "Storable" + +------------------------------------------------------------------- +Wed Jan 25 21:39:29 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Aug 1 14:46:20 CEST 2005 - mjancar@suse.cz + +- update to 6.4 +- add perl-Carp-Clan to Requires + +------------------------------------------------------------------- +Sun Jan 11 10:58:48 CET 2004 - adrian@suse.de + +- build as user + +------------------------------------------------------------------- +Fri Aug 22 14:05:19 CEST 2003 - mjancar@suse.cz + +- require the perl version we build with + +------------------------------------------------------------------- +Tue Jul 15 11:14:17 CEST 2003 - mjancar@suse.cz + +- adapt to perl-5.8.1 +- use %perl_process_packlist + +------------------------------------------------------------------- +Mon Jun 16 18:18:03 CEST 2003 - mjancar@suse.cz + +- use $RPM_OPT_FLAGS +- fix filelist + +------------------------------------------------------------------- +Tue May 20 12:38:42 CEST 2003 - mjancar@suse.cz + +- remove unpackaged files + +------------------------------------------------------------------- +Sat Oct 12 18:34:04 CEST 2002 - prehak@suse.cz + +- update to version 6.3 +- removed .txt extension from documentation files + +------------------------------------------------------------------- +Tue Jul 2 17:40:06 MEST 2002 - mls@suse.de + +- remove race in .packlist generation + +------------------------------------------------------------------- +Mon Jan 21 20:03:22 CET 2002 - rvasice@suse.cz + +- initial package release (version 6.1) + diff --git a/perl-Bit-Vector.spec b/perl-Bit-Vector.spec new file mode 100644 index 0000000..7ecb239 --- /dev/null +++ b/perl-Bit-Vector.spec @@ -0,0 +1,67 @@ +# +# spec file for package perl-Bit-Vector +# +# 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 Bit-Vector +Name: perl-Bit-Vector +Version: 7.400.0 +Release: 0 +# 7.4 -> normalize -> 7.400.0 +%define cpan_version 7.4 +#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later) +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Bit::Vector Perl module +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/S/ST/STBEY/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml +Patch0: Bit-Vector-7.1.diff +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Carp::Clan) >= 5.300 +BuildRequires: perl(Storable) >= 2.21 +Requires: perl(Carp::Clan) >= 5.300 +Requires: perl(Storable) >= 2.21 +Provides: perl(Bit::Vector) = %{version} +Provides: perl(Bit::Vector::Overload) = %{version} +Provides: perl(Bit::Vector::String) = %{version} +%undefine __perllib_provides +%{perl_requires} + +%description + +%prep +%autosetup -n %{cpan_name}-%{cpan_version} -N + +%patch -P0 + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc CHANGES.txt CREDITS.txt examples GNU_GPL.txt GNU_LGPL.txt README.txt +%license Artistic.txt + +%changelog From 4ac81734579c4d39667d78e285eff4b66e9d75ba594c0d497b7ce61ed9b8720d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 6 Feb 2025 22:16:29 +0000 Subject: [PATCH 2/2] - 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-Bit-Vector?expand=0&rev=26 --- perl-Bit-Vector.changes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-Bit-Vector.changes b/perl-Bit-Vector.changes index b4fae73..768085f 100644 --- a/perl-Bit-Vector.changes +++ b/perl-Bit-Vector.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 6 22:16:07 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + ------------------------------------------------------------------- Mon Mar 4 12:22:18 UTC 2024 - pgajdos@suse.com