7
0

3 Commits

4 changed files with 72 additions and 8 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-Data-Hexdumper/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-Data-Hexdumper)

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: Artistic-1.0 OR GPL-2.0-or-later
#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:40:49 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
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 23 16:15:18 UTC 2022 - Pedro Monreal <pmonreal@suse.com> Wed Nov 23 16:15:18 UTC 2022 - Pedro Monreal <pmonreal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Data-Hexdumper # spec file for package perl-Data-Hexdumper
# #
# Copyright (c) 2022 SUSE LLC # 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
@@ -18,17 +18,24 @@
%define cpan_name Data-Hexdumper %define cpan_name Data-Hexdumper
Name: perl-Data-Hexdumper Name: perl-Data-Hexdumper
Version: 3.0001 Version: 3.0.100
Release: 0 Release: 0
# 3.0001 -> normalize -> 3.0.100
%define cpan_version 3.0001
#Upstream: This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
License: Artistic-1.0 OR GPL-2.0-or-later
Summary: Make binary data human-readable Summary: Make binary data human-readable
License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.65 BuildRequires: perl(Test::More) >= 0.65
Requires: perl(Test::More) >= 0.65 Requires: perl(Test::More) >= 0.65
BuildArch: noarch Provides: perl(Data::Hexdumper) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -42,15 +49,16 @@ primarily be of use for those wrestling alligators in the swamp of binary
file formats, which is why it was written in the first place. file formats, which is why it was written in the first place.
%prep %prep
%autosetup -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
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_build %make_build
%check %check
%make_build test make test
%install %install
%perl_make_install %perl_make_install