7ff175c4创建于 2025年4月2日历史提交
%global _empty_manifest_terminate_build 0
Name:           perl-Image-Xbm
Version:        1.11
Release:        1
Summary:        Load, create, manipulate and save xbm image files
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Image-Xbm/
Source0:        http://www.cpan.org/authors/id/S/SR/SREZIC/Image-Xbm-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Image::Base) >= 1.06
BuildRequires:  perl(Test::More)
Requires:       perl(File::Temp)
Requires:       perl(Image::Base) >= 1.06
Requires:       perl(Test::More)

%description
This class module provides basic load, manipulate and save functionality
for the xbm file format. It inherits from Image::Base which provides
additional manipulation functionality, e.g. new_from_image(). See the
Image::Base pod for information on adding your own functionality to all the
Image::Base derived classes.

%package help
Summary : Load, create, manipulate and save xbm image files
Provides: perl-Image-Xbm-doc

%description help
This class module provides basic load, manipulate and save functionality
for the xbm file format. It inherits from Image::Base which provides
additional manipulation functionality, e.g. new_from_image(). See the
Image::Base pod for information on adding your own functionality to all the
Image::Base derived classes.

%prep
%setup -q -n Image-Xbm-%{version}

%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
export PERL_MM_OPT=""
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/*

pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
    find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
    find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
    find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
    find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test

%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes META.json README
%{perl_vendorlib}/*

%files help
%{_mandir}/*

%changelog
* Fri Feb 07 2025 sqfu <dev01203@linx-info.com> - 1.11-1
- update to 1.11
- allow filehandles in new
- drop useless perl(:MODULE_COMPAT) requirement

* Fri Oct 15 2021 guoqinglan <guoqinglan@uniontech.com> - 1.10-1
- Package init