From 88b6071703d6c5b66b2586fcf88ab722f19effa8a29ee8b84eec64a606a7432c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Mon, 10 Feb 2025 22:08:41 +0000 Subject: [PATCH] - 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-Algorithm-C3?expand=0&rev=25 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + Algorithm-C3-0.11.tar.gz | 3 ++ cpanspec.yml | 30 ++++++++++++++++++ perl-Algorithm-C3.changes | 66 ++++++++++++++++++++++++++++++++++++++ perl-Algorithm-C3.spec | 67 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 190 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Algorithm-C3-0.11.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-Algorithm-C3.changes create mode 100644 perl-Algorithm-C3.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/Algorithm-C3-0.11.tar.gz b/Algorithm-C3-0.11.tar.gz new file mode 100644 index 0000000..d3a33b0 --- /dev/null +++ b/Algorithm-C3-0.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aaf48467765deea6e48054bc7d43e46e4d40cbcda16552c629d37be098289309 +size 19226 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..433beb8 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,30 @@ +--- +#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 diff --git a/perl-Algorithm-C3.changes b/perl-Algorithm-C3.changes new file mode 100644 index 0000000..0e51d61 --- /dev/null +++ b/perl-Algorithm-C3.changes @@ -0,0 +1,66 @@ +------------------------------------------------------------------- +Mon Feb 10 22:08:33 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + +------------------------------------------------------------------- +Wed Nov 11 03:06:58 UTC 2020 - Tina Müller + +- updated to 0.11 + see /usr/share/doc/packages/perl-Algorithm-C3/Changes + + 0.11 - 2020-11-10 + - set metadata for static dependency list and install + - move repository to github + - minor test cleanups + - fix Makefile.PL to work for authors in perl 5.26+ + +------------------------------------------------------------------- +Mon Sep 15 12:52:31 UTC 2014 - coolo@suse.com + +- updated to 0.10 + - declare minimum version of perl as 5.6 in metadata + +------------------------------------------------------------------- +Fri Mar 7 06:48:31 UTC 2014 - coolo@suse.com + +- updated to 0.09 + - convert to use ExtUtils::MakeMaker using distar + - include repo and bugtracker metadata +- regenerate spec file + +------------------------------------------------------------------- +Thu Nov 17 08:48:27 UTC 2011 - coolo@suse.com + +- use original tar + +------------------------------------------------------------------- +Fri Sep 16 11:39:08 UTC 2011 - coolo@suse.com + +- reformat spec file + +------------------------------------------------------------------- +Tue Nov 30 19:19:49 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Thu Nov 11 18:53:32 UTC 2010 - chris@computersalat.de + +- update to 0.08 + - Fix a couple of doc typos. + - Don't create a fake Makefile.PL. +- bcond_with pod +- noarch pkg + +------------------------------------------------------------------- +Tue Oct 19 08:38:21 UTC 2010 - coolo@novell.com + +- add perl as explicit buildrequire + +------------------------------------------------------------------- +Sun Oct 26 00:00:00 UTC 2008 - gerrit.beine@gmx.de + +- first release 0.07 + diff --git a/perl-Algorithm-C3.spec b/perl-Algorithm-C3.spec new file mode 100644 index 0000000..a8a7f09 --- /dev/null +++ b/perl-Algorithm-C3.spec @@ -0,0 +1,67 @@ +# +# spec file for package perl-Algorithm-C3 +# +# 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 Algorithm-C3 +Name: perl-Algorithm-C3 +Version: 0.110.0 +Release: 0 +# 0.11 -> normalize -> 0.110.0 +%define cpan_version 0.11 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Module for merging hierarchies using the C3 algorithm +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +Provides: perl(Algorithm::C3) = %{version} +%undefine __perllib_provides +%{perl_requires} + +%description +This module implements the C3 algorithm. I have broken this out into it's +own module because I found myself copying and pasting it way too often for +various needs. Most of the uses I have for C3 revolve around class building +and metamodels, but it could also be used for things like dependency +resolution as well since it tends to do such a nice job of preserving local +precedence orderings. + +Below is a brief explanation of C3 taken from the Class::C3 module. For +more detailed information, see the SEE ALSO section and the links there. + +%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 LICENSE + +%changelog