Name: perl-Alien-autoconf %global debug_package %{nil} Version: 0.20 Release: 1%{?dist} Summary: Build or find autoconf License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Alien-autoconf/ Source0: http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-autoconf-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.008001 BuildRequires: perl(Alien::Base) >= 0.038 BuildRequires: perl(Alien::Build) >= 0.49 BuildRequires: perl(Alien::Build::MM) >= 0.32 BuildRequires: perl(Alien::Build::Plugin::Build::Autoconf) >= 0.47 BuildRequires: perl(Alien::m4) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::chdir) BuildRequires: perl(Path::Tiny) BuildRequires: perl(Test2::V0) >= 0.000121 BuildRequires: perl(Test::Alien) >= 2.52 BuildRequires: perl-generators BuildRequires: autoconf Requires: perl(Alien::Base) >= 0.038 Requires: perl(Path::Tiny) Requires: autoconf Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Provides: perl(Alien::autoconf) %description This distribution provides autoconf so that it can be used by other Perl distributions that are on CPAN. This is most commonly necessary when creating other Aliens that target a autoconf project that does not ship with a configure script. Ideally you should complain to the upstream developers, but if you are not able to convince them then you have this option. There are currently two such Aliens: Alien::libuv and Alien::Hunspell. %prep %setup -q -n Alien-autoconf-%{version} sed -i "s/'share'/'system'/; s/(use alienfile;)/use alienfile; meta->prop->{arch} = 0;/" ./alienfile %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* mkdir -p `dirname %{buildroot}%{perl_vendorlib}` mv %{buildroot}%{perl_vendorarch} %{buildroot}%{perl_vendorlib} %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes LICENSE META.json README alienfile author.yml dist.ini perlcriticrc %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Apr 29 2024 rpm 0.20-1 - Specfile autogenerated by cpanspec 1.78.