2024-07-15 20:10:05 +00:00
committed by Git OBS Bridge
parent 4092ae09be
commit 3257a23ed6

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Algorithm-GenerateSequence (Version 0.02) # spec file for package perl-Algorithm-GenerateSequence
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2024 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,25 +12,26 @@
# 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-Algorithm-GenerateSequence
Version: 0.02
Release: 1
License: GPL+ or Artistic
%define cpan_name Algorithm-GenerateSequence %define cpan_name Algorithm-GenerateSequence
Summary: a sequence generator Name: perl-Algorithm-GenerateSequence
Url: http://search.cpan.org/dist/Algorithm-GenerateSequence/ Version: 0.20.0
Group: Development/Libraries/Perl Release: 0
Source: http://www.cpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{version}.tar.gz # 0.02 -> normalize -> 0.20.0
%define cpan_version 0.02
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Sequence generator
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More) Provides: perl(Algorithm::GenerateSequence) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -53,24 +54,20 @@ Or for a range of addresses to scan:
); );
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%build %build
%{__perl} Build.PL installdirs=vendor perl Build.PL --installdirs=vendor
./Build build flags=%{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc bench_call Changes README %doc bench_call Changes README
%changelog %changelog