7
0

2 Commits

Author SHA256 Message Date
5d401a9f98 Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
2025-10-10 23:52:26 +02:00
db1169fa86 Add Gitea build results 2025-08-12 18:17:38 +02:00
5 changed files with 57 additions and 17 deletions

3
.gitattributes vendored
View File

@@ -1,4 +1,4 @@
*.changes merge=merge-changes
## 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
@@ -12,7 +12,6 @@
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tar 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

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-Test-Class/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-Test-Class)

23
cpanspec.yml Normal file
View File

@@ -0,0 +1,23 @@
---
#description_paragraphs: 3
#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_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

View File

@@ -1,8 +1,8 @@
-------------------------------------------------------------------
Fri Aug 4 10:05:13 UTC 2023 - Victor Zhestkov <vzhestkov@suse.com>
Fri Oct 10 21:52:13 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Remove unused file:
* cpanspec.yml
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Thu Feb 18 03:08:19 UTC 2021 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-Class
#
# Copyright (c) 2023 SUSE LLC
# 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
@@ -18,30 +18,35 @@
%define cpan_name Test-Class
Name: perl-Test-Class
Version: 0.52
Version: 0.520.0
Release: 0
Summary: Easily create test classes in an xUnit/JUnit style
# 0.52 -> normalize -> 0.520.0
%define cpan_version 0.52
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Easily create test classes in an xUnit/JUnit style
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SZ/SZABGAB/%{cpan_name}-%{version}.tar.gz
%if "%_vendor" != "debbuild"
ExclusiveArch: do_not_build
%endif
Source0: https://cpan.metacpan.org/authors/id/S/SZ/SZABGAB/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(MRO::Compat) >= 0.11
BuildRequires: perl(MRO::Compat) >= 0.110
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Test::Builder) >= 0.78
BuildRequires: perl(Test::Exception) >= 0.250000
BuildRequires: perl(Test::Exception) >= 0.250
BuildRequires: perl(Test::More) >= 0.78
BuildRequires: perl(Test::Simple) >= 0.78
BuildRequires: perl(Try::Tiny)
Requires: perl(MRO::Compat) >= 0.11
Requires: perl(MRO::Compat) >= 0.110
Requires: perl(Module::Runtime)
Requires: perl(Test::Builder) >= 0.78
Requires: perl(Test::Simple) >= 0.78
Requires: perl(Try::Tiny)
Provides: perl(Test::Class) = %{version}
Provides: perl(Test::Class::Load) = %{version}
Provides: perl(Test::Class::MethodInfo) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -57,8 +62,9 @@ Test::Harness, Test::Simple, Test::More and friends should go take a look
at them now. Test::Tutorial is a good starting point.
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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