From dedfa302bd0e0d6827aae9db07bf355fb31802b5691534a865f2b6d676318f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 4 Feb 2025 18:44:25 +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-Class-Singleton?expand=0&rev=13 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + Class-Singleton-1.6.tar.gz | 3 ++ cpanspec.yml | 34 ++++++++++++++++++ perl-Class-Singleton.changes | 36 +++++++++++++++++++ perl-Class-Singleton.spec | 70 ++++++++++++++++++++++++++++++++++++ 6 files changed, 167 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Class-Singleton-1.6.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-Class-Singleton.changes create mode 100644 perl-Class-Singleton.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/Class-Singleton-1.6.tar.gz b/Class-Singleton-1.6.tar.gz new file mode 100644 index 0000000..76364fd --- /dev/null +++ b/Class-Singleton-1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27ba13f0d9512929166bbd8c9ef95d90d630fc80f0c9a1b7458891055e9282a4 +size 16164 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..74cd9d8 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,34 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#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_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module +#skip_doc: regexp_to_skip_for_doc.* +#add_doc: files to add to docs +#misc: |- +#anything else to be added to spec file +#follows directly after %files section, so it can contain new blocks or also +#changes to %files section diff --git a/perl-Class-Singleton.changes b/perl-Class-Singleton.changes new file mode 100644 index 0000000..25cad60 --- /dev/null +++ b/perl-Class-Singleton.changes @@ -0,0 +1,36 @@ +------------------------------------------------------------------- +Thu Dec 3 03:06:07 UTC 2020 - Tina Müller + +- updated to 1.6 + see /usr/share/doc/packages/perl-Class-Singleton/Changes + +------------------------------------------------------------------- +Mon Apr 13 19:13:23 UTC 2015 - coolo@suse.com + +- updated to 1.5 + see /usr/share/doc/packages/perl-Class-Singleton/Changes + +------------------------------------------------------------------- +Tue Nov 30 19:19:58 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Sun Apr 11 22:07:14 UTC 2010 - chris@computersalat.de + +- removed .packlist, perllocal.pod files + > noarch package +- cleanup spec + o fix HEADER + o update License, Url, description + o fixed deps + - BuildReq perl + - perl-macros + o enable parallel build + o macro usage + o changelog to changes file + +------------------------------------------------------------------- +Sun Jun 08 05:01:45 CET 2008 - gerrit.beine@gmx.de + +- first release 1.4 diff --git a/perl-Class-Singleton.spec b/perl-Class-Singleton.spec new file mode 100644 index 0000000..e9d45b4 --- /dev/null +++ b/perl-Class-Singleton.spec @@ -0,0 +1,70 @@ +# +# spec file for package perl-Class-Singleton +# +# 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 Class-Singleton +Name: perl-Class-Singleton +Version: 1.600.0 +Release: 0 +# 1.6 -> normalize -> 1.600.0 +%define cpan_version 1.6 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Implementation of a "Singleton" class +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/S/SH/SHAY/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64 +Provides: perl(Class::Singleton) = %{version} +%undefine __perllib_provides +%{perl_requires} + +%description +This is the 'Class::Singleton' module. A Singleton describes an object +class that can have only one instance in any system. An example of a +Singleton might be a print spooler or system registry. This module +implements a Singleton class from which other classes can be derived. By +itself, the 'Class::Singleton' module does very little other than manage +the instantiation of a single object. In deriving a class from +'Class::Singleton', your module will inherit the Singleton instantiation +method and can implement whatever specific functionality is required. + +For a description and discussion of the Singleton class, see "Design +Patterns", Gamma et al, Addison-Wesley, 1995, ISBN 0-201-63361-2. + +%prep +%autosetup -n %{cpan_name}-%{cpan_version} -p1 + +%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 README +%license Artistic Copying LICENCE + +%changelog From f5296a07ab0f09a0e9520a745a4a5869282b244a9a1d8cda2de7db0cac68a422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 6 Feb 2025 22:18:25 +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-Class-Singleton?expand=0&rev=14 --- perl-Class-Singleton.changes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-Class-Singleton.changes b/perl-Class-Singleton.changes index 25cad60..0d19669 100644 --- a/perl-Class-Singleton.changes +++ b/perl-Class-Singleton.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 6 22:18:15 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + ------------------------------------------------------------------- Thu Dec 3 03:06:07 UTC 2020 - Tina Müller