update to 2.16 [release 2.16-1mamba;Mon Apr 22 2024]
This commit is contained in:
parent
06fbd462fe
commit
892834b243
@ -1,18 +1,19 @@
|
||||
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||||
|
||||
Name: perl-HTML-Format
|
||||
Version: 2.12
|
||||
Release: 2mamba
|
||||
Version: 2.16
|
||||
Release: 1mamba
|
||||
Summary: HTML formatter modules
|
||||
Group: System/Libraries/Perl
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
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
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libperl
|
||||
BuildRequires: perl-Encode
|
||||
BuildRequires: perl-HTML-Tree
|
||||
BuildRequires: perl-devel
|
||||
## AUTOBUILDREQ-END
|
||||
@ -23,38 +24,52 @@ BuildRequires: perl-devel
|
||||
BuildRequires: perl-File-Slurper
|
||||
BuildRequires: perl-Test-EOL
|
||||
BuildRequires: perl-Test-NoTabs
|
||||
BuildRequires: perl-Test-Warnings
|
||||
Provides: perl-HTML-Formatter
|
||||
Obsoletes: perl-HTML-Formatter <= 2.16
|
||||
Obsoletes: perl-HTML-Formatter < 2.16
|
||||
Requires: perl >= %perl_major_ver
|
||||
|
||||
%description
|
||||
A collection of modules that formats HTML as plaintext, PostScript or RTF.
|
||||
|
||||
%prep
|
||||
%setup -q -n HTML-Format-%{version}
|
||||
%setup -q -n HTML-Formatter-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
./Build
|
||||
./Build test
|
||||
%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
|
||||
%make
|
||||
%make test
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
%makeinstall_perl
|
||||
|
||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w %{buildroot}/*
|
||||
packlist=`find %{buildroot} -name .packlist`
|
||||
[ -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
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%files -f .packlist
|
||||
%defattr(-,root,root)
|
||||
%{perl_vendorlib}/HTML/*
|
||||
%{_mandir}/man3/*.3pm.gz
|
||||
%{_mandir}/man3/*.3pm*
|
||||
%doc Changes README
|
||||
|
||||
%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
|
||||
- obsolete perl-HTML-Formatter
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user