2024-07-20 20:31:36 +00:00
committed by Git OBS Bridge
parent 367a1b2c59
commit e2ed4658ed

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Data-PowerSet # spec file for package perl-Data-PowerSet
# #
# Copyright (c) 2011 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,25 @@
# 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-PowerSet
Version: 0.05
Release: 1
License: GPL+ or Artistic
%define cpan_name Data-PowerSet %define cpan_name Data-PowerSet
Name: perl-Data-PowerSet
Version: 0.50.0
Release: 0
# 0.05 -> normalize -> 0.50.0
%define cpan_version 0.05
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Generate all subsets of a list of elements Summary: Generate all subsets of a list of elements
Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name}
Url: http://search.cpan.org/dist/Data-PowerSet/ Source0: https://cpan.metacpan.org/authors/id/D/DL/DLAND/%{cpan_name}-%{cpan_version}.tar.gz
#Source: http://www.cpan.org/authors/id/D/DL/DLAND/Data-PowerSet-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
Provides: perl(Data::PowerSet) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -38,29 +38,24 @@ BuildRequires: perl-macros
elements appearing in the list without replacement. elements appearing in the list without replacement.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
find . -type f -print0 | xargs -0 chmod 644
for i in $(%{__grep} -rl "/usr/local/bin/perl" *) ; do find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%{__perl} -p -i -e 's@/usr/local/bin/perl@%{__perl}@' $i
done
%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
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(644,root,root,755) %doc Changes README
%doc Changes eg LICENSE README %license LICENSE
%changelog %changelog