8
0
forked from pool/perl-Socket6

2 Commits

2 changed files with 22 additions and 14 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 11 15:24:11 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Thu Nov 28 20:22:50 UTC 2019 - <tina.mueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Socket6
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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,20 +16,22 @@
#
Name: perl-Socket6
Version: 0.29
Release: 0
#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later)
%define cpan_name Socket6
Summary: IPv6 related part of the C socket.h defines and structure manipulators
Name: perl-Socket6
Version: 0.290.0
Release: 0
# 0.29 -> normalize -> 0.290.0
%define cpan_version 0.29
#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later)
License: BSD-3-Clause
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/U/UM/UMEMOTO/%{cpan_name}-%{version}.tar.gz
Summary: IPv6 related part of the C socket.h defines and structure manipulators
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/U/UM/UMEMOTO/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Socket6) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -39,12 +41,13 @@ If you use the Socket6 module, be sure to specify "use Socket" as well as
"use Socket6".
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%make_build
%check
make test
@@ -55,7 +58,6 @@ make test
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc aclocal.m4 ChangeLog ftpmirror-1.96.diff im-140.diff README
%changelog