Name: perl-Alien-Libbz2 %global debug_package %{nil} Version: 0.24 Release: 1%{?dist} Summary: Build and make available bz2 License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Alien-Libbz2/ Source0: http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-Libbz2-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.008001 BuildRequires: perl(Alien::Base) >= 1.25 BuildRequires: perl(Alien::Build) >= 0.32 BuildRequires: perl(Alien::Build::MM) >= 1.25 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test2::V0) >= 0.000060 BuildRequires: perl(Test::Alien) >= 0.12 BuildRequires: pkgconfig(bzip2) BuildRequires: perl-generators BuildRequires: perl(Sort::Versions) Requires: perl(Alien::Base) >= 1.25 Requires: pkgconfig(bzip2) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Provides: perl(Alien::Libbz2) %description This Alien module provides the necessary compiler and linker flags needed for using libbz2 in XS. %prep %setup -q -n Alien-Libbz2-%{version} perl -pi.bak -e "s/(share {)/probe sub { 'system' }; meta->prop->{arch} = 0; \1/" ./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/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes LICENSE META.json README alienfile author.yml dist.ini patch %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Apr 29 2024 rpm 0.24-1 - Specfile autogenerated by cpanspec 1.78.