2 Commits

Author SHA256 Message Date
50213b8248 Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
2025-12-22 14:15:15 +01:00
1933dbe94c Add Gitea build results 2025-08-12 18:18:01 +02:00
4 changed files with 77 additions and 16 deletions

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-Text-Brew/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-Text-Brew)

39
cpanspec.yml Normal file
View File

@@ -0,0 +1,39 @@
---
#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
# Where module files should be searched for. Default: lib/
#index_dir:

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Dec 22 13:14:12 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 overriding license
-------------------------------------------------------------------
Fri Mar 28 10:57:48 UTC 2014 - alarrosa@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Text-Brew
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,24 +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-Text-Brew
Version: 0.02
Release: 0
%define cpan_name Text-Brew
Name: perl-Text-Brew
Version: 0.20.0
Release: 0
# 0.02 -> normalize -> 0.20.0
%define cpan_version 0.02
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: An implementation of the Brew edit distance
License: GPL-2.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Text-Brew/
Source: http://www.cpan.org/authors/id/K/KC/KCIVEY/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KC/KCIVEY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
#BuildRequires: perl(Text::Brew)
Provides: perl(Text::Brew) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -65,14 +68,14 @@ You can make INS and DEL the same operation in a simple way:
3) change the output string INS to INS/DEL (o whatever)
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%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
@@ -80,7 +83,6 @@ You can make INS and DEL the same operation in a simple way:
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog