8
0

Compare commits

7 Commits

Author SHA256 Message Date
Stephan Kulow
2c172bf5d2 Accepting request 108811 from devel:languages:perl
- set version to what is in cpan, to avoid an annoying "another
  upstream version available" warning

OBS-URL: https://build.opensuse.org/request/show/108811
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-DelimMatch?expand=0&rev=18
2012-03-12 19:16:00 +00:00
Stephan Kulow
5bf1e3460a replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-DelimMatch?expand=0&rev=17
2011-12-06 17:48:50 +00:00
Stephan Kulow
86087111f4 Accepting request 92303 from devel:languages:perl
update

OBS-URL: https://build.opensuse.org/request/show/92303
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-DelimMatch?expand=0&rev=16
2011-11-21 11:48:44 +00:00
Lars Vogdt
2c7b4c9eb7 Autobuild autoformatter for 54751
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-DelimMatch?expand=0&rev=13
2010-12-05 21:23:31 +00:00
Lars Vogdt
7e15563884 Accepting request 54751 from devel:languages:perl
Accepted submit request 54751 from user coolo

OBS-URL: https://build.opensuse.org/request/show/54751
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-DelimMatch?expand=0&rev=12
2010-12-05 21:23:25 +00:00
OBS User autobuild
29484fd3dc Autobuild autoformatter for 51035
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-DelimMatch?expand=0&rev=11
2010-10-19 11:15:09 +00:00
Ruediger Oertel
d42c6b3ead Accepting request 51035 from devel:languages:perl
Accepted submit request 51035 from user coolo

OBS-URL: https://build.opensuse.org/request/show/51035
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-DelimMatch?expand=0&rev=10
2010-10-19 11:15:04 +00:00
3 changed files with 24 additions and 81 deletions

View File

@@ -1,12 +0,0 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-Text-DelimMatch/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-DelimMatch)

View File

@@ -1,35 +0,0 @@
---
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: SUSE-NonFree
#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-Text-DelimMatch
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,49 +12,35 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define cpan_name DelimMatch
Name: perl-Text-DelimMatch
Version: 1.60.0
%define module_name DelimMatch
%define module_version 1.06
Summary: DelimMatch for Locating Delimited Substrings with Proper Nesting
License: Artistic-1.0
Group: Development/Libraries/Perl
Version: 1.06
Release: 0
# 1.06 -> normalize -> 1.60.0
%define cpan_version 1.06
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl extension to find regexp delimited strings with proper nesting
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/N/NW/NWALSH/%{cpan_name}-%{cpan_version}a.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
Source0: %{module_name}-1.06a.tar.gz
Url: http://search.cpan.org/~nwalsh/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Text::DelimMatch) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
These routines allow you to match delimited substrings in a buffer. The
delimiters can be specified with any regular expression and the start and
end delimiters need not be the same. If the delimited text is properly
nested, entire nested groups are returned.
In addition, you may specify quoting and escaping characters that
contribute to the recognition of start and end delimiters.
For example, if you specify the start and end delimiters as '\(' and '\)',
respectively, and the double quote character as a quoting character, and
the backslash as an escaping character, then the delimited substring in
this buffer is "(ma(t)c\)h)":
DelimMatch is a Perl 5 module that provides functions for locating
delimited substrings with proper nesting.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%setup -q -n %{module_name}-%{module_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make %{?_smp_mflags}
%check
make test
@@ -62,9 +48,13 @@ make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%files
%defattr(-, root, root)
%doc README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/Text
%{perl_vendorlib}/auto/Text
%{perl_vendorlib}/Text
%changelog