2024-07-19 22:09:46 +00:00
committed by Git OBS Bridge
parent d7a070e074
commit c5e28b138d
2 changed files with 58 additions and 22 deletions

35
cpanspec.yml Normal file
View File

@@ -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

View File

@@ -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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 %define cpan_name Class-Interface
Summary: A class for implementing/extending interfaces/abstracts in Perl. Name: perl-Class-Interface
Url: http://search.cpan.org/dist/Class-Interface/ Version: 1.10.0
Group: Development/Libraries/Perl Release: 0
Source: http://www.cpan.org/authors/id/S/SI/SINISTER/%{cpan_name}-%{version}.tar.gz # 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 BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Class::AccessorMaker) Provides: perl(Class::Interface) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -36,25 +40,22 @@ Performs some underwater perl-magic to ensure interfaces are interfaces and
classes that implement the interface actually do so. classes that implement the interface actually do so.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changelog README
%doc Changelog LICENSE README %license LICENSE
%changelog %changelog