11
0

3 Commits

7 changed files with 83 additions and 39 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:70835a926e1c5a8d0324c72fffee82eeb7ec6c141dee04fd446820b64f71c552
size 27780

3
Net-Patricia-1.23.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d23c44dfae73da027f02a2f52e5925b99d6f6ef4a005af6b3c65144319c7d52
size 28761

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-Net-Patricia/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-Net-Patricia)

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: BSD-2-Clause AND 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
#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,11 +0,0 @@
--- Net-Patricia-1.22/Makefile.PL.old 2012-10-09 16:36:34.000000000 +0200
+++ Net-Patricia-1.22/Makefile.PL 2023-01-25 14:46:59.182810260 +0100
@@ -5,7 +5,7 @@
WriteMakefile(
'NAME' => 'Net::Patricia',
'VERSION_FROM' => 'Patricia.pm', # finds $VERSION
- 'LIBS' => ['-lnsl'], # e.g., '-lm'
+ 'LIBS' => [''], # e.g., '-lm'
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '', # e.g., '-I/usr/include/other'
'MYEXTLIB' => 'libpatricia/libpatricia$(LIB_EXT)', # e.g., '-I/usr/include/other'

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon May 26 19:32:01 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Remove no-libnsl.diff, fixed upstream
https://rt.cpan.org/Ticket/Display.html?id=124088
Add cpanspec.yml used by cpanspec to autogenerate the spec
-------------------------------------------------------------------
Mon Apr 28 05:47:50 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 1.230.0 (1.23)
see /usr/share/doc/packages/perl-Net-Patricia/Changes
-------------------------------------------------------------------
Mon Mar 4 13:46:11 UTC 2024 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Net-Patricia
#
# 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
@@ -16,30 +16,27 @@
#
#disable test suite as it doesn't work at all without being online
#and our build hosts are completly without network interfaces
%bcond_with test
Name: perl-Net-Patricia
Version: 1.22
Release: 0
%define cpan_name Net-Patricia
Summary: Patricia Trie perl module for fast IP address lookups
Name: perl-Net-Patricia
Version: 1.230.0
Release: 0
# 1.23 -> normalize -> 1.230.0
%define cpan_version 1.23
#Upstream: SUSE-Public-Domain
License: BSD-2-Clause AND GPL-2.0-or-later
Group: Development/Libraries/Perl
URL: http://search.cpan.org/dist/Net-Patricia/
Source: http://www.cpan.org/authors/id/G/GR/GRUBER/%{cpan_name}-%{version}.tar.gz
Patch1: no-libnsl.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Patricia Trie for fast IP address lookups
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GR/GRUBER/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Net::CIDR::Lite) >= 0.20
BuildRequires: perl(Net::CIDR::Lite) >= 0.200
BuildRequires: perl(Socket6)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(version)
Requires: perl(Net::CIDR::Lite) >= 0.20
Requires: perl(Net::CIDR::Lite) >= 0.200
Requires: perl(Socket6)
Requires: perl(Test::More) >= 0.88
Requires: perl(version)
%{perl_requires}
@@ -60,16 +57,14 @@ The BSD radix code is thoroughly described in "TCP/IP Illustrated, Volume
Table for Berkeley Unix'' by Keith Sklower.
%prep
%autosetup -p1 -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%if %{with test}
%check
%{__make} test
%endif
make test
%install
%perl_make_install
@@ -77,7 +72,7 @@ Table for Berkeley Unix'' by Keith Sklower.
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes COPYING MYMETA.json MYMETA.yml README
%doc Changes README
%license COPYING
%changelog