2024-07-24 20:34:01 +00:00
committed by Git OBS Bridge
parent 1f16a60380
commit a6ed169cfc

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Module-Build-CleanInstall # 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 # 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,64 +12,65 @@
# 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-Module-Build-CleanInstall
Version: 0.05
Release: 0
%define cpan_name Module-Build-CleanInstall %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] Summary: Subclass of Module::Build which removes the old module before installing[cut]
License: Artistic-1.0 or GPL-1.0+ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/J/JB/JBERGER/%{cpan_name}-%{cpan_version}.tar.gz
Url: http://search.cpan.org/dist/Module-Build-CleanInstall/
Source0: http://www.cpan.org/authors/id/J/JB/JBERGER/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(List::MoreUtils) BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Module::Build) >= 0.360000 BuildRequires: perl(Module::Build) >= 0.36
BuildRequires: perl(parent) BuildRequires: perl(parent)
Requires: perl(Module::Build) >= 0.36 Requires: perl(Module::Build) >= 0.36
Requires: perl(parent) Requires: perl(parent)
Provides: perl(Module::Build::CleanInstall) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
the Module::Build::CleanInstall manpage is a subclass of the Module::Build Module::Build::CleanInstall is a subclass of Module::Build with one
manpage with one additional feature, before upgrading the module from and additional feature, before upgrading the module from and old version to a
old version to a new one, it first removes the files installed by the new one, it first removes the files installed by the previous version. This
previous version. This is useful especially when the new version will not is useful especially when the new version will not contain some files that
contain some files that the old one did, and it is necessary that those the old one did, and it is necessary that those files do not remain in
files do not remain in place. place.
Since it is a subclass of the Module::Build manpage it is used exactly like Since it is a subclass of Module::Build it is used exactly like that
that module. This module does provide an additional action 'uninstall', but module. This module does provide an additional action 'uninstall', but it
it need not be called separately; the action 'install' will call it when need not be called separately; the action 'install' will call it when
invoked. invoked.
The uninstalling is done by removing the files in the installed module's 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 %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
# MANUAL no testing (not working with rpm installed deps) # MANUAL no testing (not working with rpm installed deps)
#./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
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes %doc Changes
%changelog %changelog