1
0

Compare commits

1 Commits

Author SHA256 Message Date
db24369cff Accepting request 1288080 from devel:languages:perl
- Normalize CPAN version
  See https://github.com/openSUSE/cpanspec/issues/47 for details
- Add cpanspec.yml for automatic spec generation

OBS-URL: https://build.opensuse.org/request/show/1288080
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Class-Inner?expand=0&rev=9
2025-06-24 18:48:44 +00:00
3 changed files with 64 additions and 22 deletions

37
cpanspec.yml Normal file
View File

@@ -0,0 +1,37 @@
---
#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: perl
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
#ignore_provides: Module::To::Ignore
#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
#epoch: number

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 23 21:37:28 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
- Add cpanspec.yml for automatic spec generation
-------------------------------------------------------------------
Tue Apr 26 17:45:25 UTC 2011 - coolo@opensuse.org

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Class-Inner
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@@ -12,26 +12,26 @@
# 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-Inner
Version: 0.200001
Release: 1
# MANUAL
License: GPL-1.0+ or Artistic-1.0
%define cpan_name Class-Inner
Summary: A perlish implementation of Java like inner classes
Url: http://search.cpan.org/dist/Class-Inner/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/A/AR/ARUNBEAR/%{cpan_name}-%{version}.tar.gz
Name: perl-Class-Inner
Version: 0.200.1
Release: 0
# 0.200001 -> normalize -> 0.200.1
%define cpan_version 0.200001
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perlish implementation of Java like inner classes
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AR/ARUNBEAR/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
Provides: perl(Class::Inner) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -40,25 +40,23 @@ overrideable methods, but with the added attraction of sort of working
dispatch to the parent class's method.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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 Changes README
%changelog