diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..044bbcc --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,35 @@ +--- +#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: +# baz.patch: PATCH-FIX-OPENSUSE +#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: CC-BY-SA +#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-Interface.spec b/perl-Class-Interface.spec index ade58f5..2222d08 100644 --- a/perl-Class-Interface.spec +++ b/perl-Class-Interface.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-Class-Interface (Version 1.01) +# spec file for package perl-Class-Interface # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,23 +12,27 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Name: perl-Class-Interface -Version: 1.01 -Release: 1 -License: CC-BY-SA + %define cpan_name Class-Interface -Summary: A class for implementing/extending interfaces/abstracts in Perl. -Url: http://search.cpan.org/dist/Class-Interface/ -Group: Development/Libraries/Perl -Source: http://www.cpan.org/authors/id/S/SI/SINISTER/%{cpan_name}-%{version}.tar.gz +Name: perl-Class-Interface +Version: 1.10.0 +Release: 0 +# 1.01 -> normalize -> 1.10.0 +%define cpan_version 1.01 +#Upstream: (cc-sa) 2008, Hartog C. de Mik cc-sa : the http://creativecommons.org/licenses/by-sa/3.0/ manpage +License: CC-BY-SA +Summary: Class for implementing/extending interfaces/abstracts in Perl +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/S/SI/SINISTER/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Class::AccessorMaker) +Provides: perl(Class::Interface) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -36,25 +40,22 @@ Performs some underwater perl-magic to ensure interfaces are interfaces and classes that implement the interface actually do so. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changelog LICENSE README +%doc Changelog README +%license LICENSE %changelog