update to 2.16 [release 2.16-1mamba;Mon Apr 22 2024]

This commit is contained in:
Silvan Calarco 2024-04-23 14:01:51 +02:00
parent 06fbd462fe
commit 892834b243

View File

@ -1,18 +1,19 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) %define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-HTML-Format Name: perl-HTML-Format
Version: 2.12 Version: 2.16
Release: 2mamba Release: 1mamba
Summary: HTML formatter modules Summary: HTML formatter modules
Group: System/Libraries/Perl Group: System/Libraries/Perl
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/ URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/N/NI/NIGELM/HTML-Format-%{version}.tar.gz Source: https://cpan.metacpan.org/authors/id/N/NI/NIGELM/HTML-Formatter-%{version}.tar.gz
License: GPL, Artistic License: GPL, Artistic
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libperl BuildRequires: libperl
BuildRequires: perl-Encode
BuildRequires: perl-HTML-Tree BuildRequires: perl-HTML-Tree
BuildRequires: perl-devel BuildRequires: perl-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
@ -23,38 +24,52 @@ BuildRequires: perl-devel
BuildRequires: perl-File-Slurper BuildRequires: perl-File-Slurper
BuildRequires: perl-Test-EOL BuildRequires: perl-Test-EOL
BuildRequires: perl-Test-NoTabs BuildRequires: perl-Test-NoTabs
BuildRequires: perl-Test-Warnings
Provides: perl-HTML-Formatter Provides: perl-HTML-Formatter
Obsoletes: perl-HTML-Formatter <= 2.16 Obsoletes: perl-HTML-Formatter < 2.16
Requires: perl >= %perl_major_ver Requires: perl >= %perl_major_ver
%description %description
A collection of modules that formats HTML as plaintext, PostScript or RTF. A collection of modules that formats HTML as plaintext, PostScript or RTF.
%prep %prep
%setup -q -n HTML-Format-%{version} %setup -q -n HTML-Formatter-%{version}
%build %build
%{__perl} Build.PL installdirs=vendor %{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
./Build
./Build test %make
%make test
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build install destdir=%{buildroot} create_packlist=0 %makeinstall_perl
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' packlist=`find %{buildroot} -name .packlist`
chmod -R u+w %{buildroot}/* [ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm -f $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
#find %{buildroot} -name *.so -exec chmod u+w {} \;
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files -f .packlist
%defattr(-,root,root) %defattr(-,root,root)
%{perl_vendorlib}/HTML/* %{perl_vendorlib}/HTML/*
%{_mandir}/man3/*.3pm.gz %{_mandir}/man3/*.3pm*
%doc Changes README %doc Changes README
%changelog %changelog
* Mon Apr 22 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.16-1mamba
- update to 2.16
* Fri Feb 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-2mamba * Fri Feb 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-2mamba
- obsolete perl-HTML-Formatter - obsolete perl-HTML-Formatter