119 lines
3.7 KiB
RPMSpec
119 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package perl-CPANPLUS-Dist-RPM
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: perl-CPANPLUS-Dist-RPM
|
|
%define cpan_name CPANPLUS-Dist-RPM
|
|
Summary: CPANPLUS backend to build RPM
|
|
Version: 0.0.8
|
|
Release: 0
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Group: Development/Libraries/Perl
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: CPANPLUS-Dist-RPM-0.0.8.tar.gz
|
|
Source100: README.md
|
|
Patch0: %{cpan_name}-locale.patch
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(CPANPLUS::Dist::Base)
|
|
BuildRequires: perl(CPANPLUS::Error)
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(Data::Section)
|
|
BuildRequires: perl(File::Basename)
|
|
BuildRequires: perl(File::Copy)
|
|
BuildRequires: perl(File::Find::Rule)
|
|
BuildRequires: perl(IPC::Cmd)
|
|
BuildRequires: perl(List::MoreUtils)
|
|
BuildRequires: perl(List::Util)
|
|
BuildRequires: perl(Module::Install)
|
|
BuildRequires: perl(POSIX)
|
|
BuildRequires: perl(Path::Class)
|
|
BuildRequires: perl(Pod::POM)
|
|
BuildRequires: perl(Pod::POM::View::Text)
|
|
BuildRequires: perl(Readonly)
|
|
BuildRequires: perl(SUPER)
|
|
BuildRequires: perl(Software::License) >= 0.008
|
|
BuildRequires: perl(Template)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Test::use::ok)
|
|
BuildRequires: perl(Text::Autoformat)
|
|
#
|
|
Requires: perl(CPANPLUS::Dist::Base)
|
|
Requires: perl(CPANPLUS::Error)
|
|
Requires: perl(Cwd)
|
|
Requires: perl(Data::Section)
|
|
Requires: perl(File::Basename)
|
|
Requires: perl(File::Copy)
|
|
Requires: perl(File::Find::Rule)
|
|
Requires: perl(IPC::Cmd)
|
|
Requires: perl(List::MoreUtils)
|
|
Requires: perl(List::Util)
|
|
Requires: perl(POSIX)
|
|
Requires: perl(Path::Class)
|
|
Requires: perl(Pod::POM)
|
|
Requires: perl(Pod::POM::View::Text)
|
|
Requires: perl(Readonly)
|
|
Requires: perl(SUPER)
|
|
Requires: perl(Software::License) >= 0.008
|
|
Requires: perl(Template)
|
|
Requires: perl(Text::Autoformat)
|
|
#
|
|
Requires: gcc rpm
|
|
|
|
%description
|
|
CPANPLUS::Dist::RPM is a distribution class to create RPM packages from
|
|
CPAN modules, and all its dependencies. This allows you to have the most
|
|
recent copies of CPAN modules installed, using your package manager of
|
|
choice, but without having to wait for central repositories to be updated.
|
|
|
|
Authors:
|
|
--------
|
|
Jerome Quelin, <jquelin at cpan.org> by (CPANPLUS-Dist-Mdv)
|
|
Shlomi Fish, <http://www.shlomifish.org> change (CPANPLUS-Dist-Fedora)
|
|
Chris Weyl, <cweyl@alumni.drew.edu> change (CPANPLUS-Dist-RPM)
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
# do not perl_process_packlist (noarch)
|
|
# remove .packlist file
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
# remove perllocal.pod file
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,-)
|
|
%doc Authors Changes README
|
|
|
|
%changelog
|