diff --git a/perl-Module-Build-CleanInstall.spec b/perl-Module-Build-CleanInstall.spec index a76b8a8..f1bd169 100644 --- a/perl-Module-Build-CleanInstall.spec +++ b/perl-Module-Build-CleanInstall.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Module-Build-CleanInstall # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,64 +12,65 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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-Module-Build-CleanInstall -Version: 0.05 -Release: 0 %define cpan_name Module-Build-CleanInstall +Name: perl-Module-Build-CleanInstall +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: Subclass of Module::Build which removes the old module before installing[cut] -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Module-Build-CleanInstall/ -Source0: http://www.cpan.org/authors/id/J/JB/JBERGER/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/J/JB/JBERGER/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(List::MoreUtils) -BuildRequires: perl(Module::Build) >= 0.360000 +BuildRequires: perl(Module::Build) >= 0.36 BuildRequires: perl(parent) Requires: perl(Module::Build) >= 0.36 Requires: perl(parent) +Provides: perl(Module::Build::CleanInstall) = %{version} +%undefine __perllib_provides %{perl_requires} %description -the Module::Build::CleanInstall manpage is a subclass of the Module::Build -manpage with one additional feature, before upgrading the module from and -old version to a new one, it first removes the files installed by the -previous version. This is useful especially when the new version will not -contain some files that the old one did, and it is necessary that those -files do not remain in place. +Module::Build::CleanInstall is a subclass of Module::Build with one +additional feature, before upgrading the module from and old version to a +new one, it first removes the files installed by the previous version. This +is useful especially when the new version will not contain some files that +the old one did, and it is necessary that those files do not remain in +place. -Since it is a subclass of the Module::Build manpage it is used exactly like -that module. This module does provide an additional action 'uninstall', but -it need not be called separately; the action 'install' will call it when +Since it is a subclass of Module::Build it is used exactly like that +module. This module does provide an additional action 'uninstall', but it +need not be called separately; the action 'install' will call it when invoked. The uninstalling is done by removing the files in the installed module's -ExtUtils::Packlist which is created when the module is first installed. +packlist which is created when the module is first installed. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +perl Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check # MANUAL no testing (not working with rpm installed deps) #./Build test %install -./Build install destdir=%{buildroot} create_packlist=0 +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes %changelog