2024-01-06 09:27:08 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-PDF-API2
|
2024-01-06 09:27:08 +01:00
|
|
|
Version: 2.045
|
2024-01-06 09:27:08 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 09:27:08 +01:00
|
|
|
Summary: PDF::API2 - Module for the Creation and Modification of PDF Files
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 09:27:08 +01:00
|
|
|
URL: https://www.cpan.org
|
2024-01-06 09:27:08 +01:00
|
|
|
Source: https://cpan.metacpan.org/modules/by-module/PDF/PDF-API2-%{version}.tar.gz
|
2024-01-06 09:27:08 +01:00
|
|
|
Patch0: %{name}-0.73-fix_autoreq.patch
|
|
|
|
License: Artistic, GPL
|
|
|
|
Requires: perl >= %perl_major_ver
|
2024-01-06 09:27:08 +01:00
|
|
|
Requires: perl-Font-TTF
|
2024-01-06 09:27:08 +01:00
|
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
|
|
|
|
|
|
%description
|
|
|
|
PDF::API2 - A Perl Module Chain to faciliate the Creation and Modification of High-Quality "Portable Document Format (aka. PDF)" Files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n PDF-API2-%{version}
|
2024-01-06 09:27:08 +01:00
|
|
|
#%patch0 -p1
|
2024-01-06 09:27:08 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
|
|
|
%make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall_perl
|
|
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
|
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
|
|
|
sort -u > .packlist && rm $packlist
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{perl_vendorlib}/PDF/API2/Win32.pm
|
|
|
|
rm -f %{buildroot}%{perl_vendorlib}/PDF/API2/Basic/TTF/Win32.pm
|
|
|
|
sed -i "/Win32.pm/d" .packlist
|
|
|
|
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
rm -f .packlist
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:27:08 +01:00
|
|
|
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 2.045-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Thu Nov 17 2022 Automatic Build System <autodist@mambasoft.it> 2.044-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Wed Dec 08 2021 Automatic Build System <autodist@mambasoft.it> 2.043-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Fri Sep 17 2021 Automatic Build System <autodist@mambasoft.it> 2.042-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Wed Jul 28 2021 Automatic Build System <autodist@mambasoft.it> 2.041-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Wed Apr 14 2021 Automatic Build System <autodist@mambasoft.it> 2.040-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Fri Mar 05 2021 Automatic Build System <autodist@mambasoft.it> 2.039-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 2.038-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Sat May 02 2020 Automatic Build System <autodist@mambasoft.it> 2.037-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Wed Nov 15 2017 Automatic Build System <autodist@mambasoft.it> 2.033-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Sun Nov 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.030-1mamba
|
|
|
|
- update to 2.030
|
|
|
|
|
2024-01-06 09:27:08 +01:00
|
|
|
* Sun Jul 14 2013 Automatic Build System <autodist@mambasoft.it> 0.73-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Mon May 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.73-1mamba
|
|
|
|
- package created by autospec
|