8
0

Compare commits

3 Commits

3 changed files with 74 additions and 31 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: GPL-2.0+
#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,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 6 22:20:30 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Feb 9 13:33:36 UTC 2014 - coolo@suse.com Sun Feb 9 13:33:36 UTC 2014 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Data-ShowTable # spec file for package perl-Data-ShowTable
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2025 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-Data-ShowTable
Version: 4.6
Release: 0
%define cpan_name Data-ShowTable %define cpan_name Data-ShowTable
Summary: routines to display tabular data in several formats. Name: perl-Data-ShowTable
License: GPL-2.0+ Version: 4.600.0
Group: Development/Libraries/Perl Release: 0
Url: http://search.cpan.org/dist/Data-ShowTable/ # 4.6 -> normalize -> 4.600.0
Source: http://www.cpan.org/authors/id/A/AK/AKSTE/%{cpan_name}-%{version}.tar.gz %define cpan_version 4.6
#Upstream: SUSE-Public-Domain
License: GPL-2.0-or-later
Summary: Perl module to automatically format columnar data
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AK/AKSTE/%{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
Provides: perl(Data::ShowTable) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -42,42 +46,41 @@ styles:
* Box * Box
A tabular format, with the column titles and the entire table surrounded A tabular format, with the column titles and the entire table surrounded by
by a "box" of "'+'", "'-'", and "'|'" characters. See the "ShowBoxTable" a "box" of "'+'", "'-'", and "'|'" characters. See "ShowBoxTable" for
manpage for details. details.
* Table * Table
A simple tabular format, with columns automatically aligned, with column A simple tabular format, with columns automatically aligned, with column
titles. See the "ShowSimpleTable" manpage. titles. See "ShowSimpleTable".
* List * List
A _list_ style, where columns of data are listed as a _name_:_value_ A _list_ style, where columns of data are listed as a _name_:_value_ pair,
pair, one pair per line, with rows being one or more column values, one pair per line, with rows being one or more column values, separated by
separated by an empty line. See the "ShowListTable" manpage. an empty line. See "ShowListTable".
* HTML * HTML
The data is output as an HTML _TABLE_, suitable for display through a The data is output as an HTML _TABLE_, suitable for display through a
_Web_-client. See the "ShowHTMLTable" manpage. Input can either be plain _Web_-client. See "ShowHTMLTable". Input can either be plain ASCII text, or
ASCII text, or text with embedded HTML elements, depending upon an text with embedded HTML elements, depending upon an argument or global
argument or global parameter. parameter.
The subroutines which perform these displays are listed below. The subroutines which perform these displays are listed below.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f -print0 | xargs -0 chmod 644
rm -f pm_to_blib find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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
@@ -85,7 +88,6 @@ rm -f pm_to_blib
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc bump-version Changes Copyright gen-html gen-tests GNU-LICENSE README showtable testfile testfile.lst testfile.tabs test.pl.off
%doc bump-version Changes Copyright gen-html gen-tests GNU-LICENSE MYMETA.json MYMETA.yml README showtable testfile testfile.lst testfile.tabs test.pl.off
%changelog %changelog