63 lines
1.7 KiB
RPMSpec
63 lines
1.7 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-PPI-HTML
|
|
Version: 1.08
|
|
Release: 2mamba
|
|
Summary: PPI::HTML - Generate syntax-hightlighted HTML for Perl using PPI
|
|
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/A/AD/ADAMK/PPI-HTML-%{version}.tar.gz
|
|
License: GPL, Artistic
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: perl-CSS-Tiny
|
|
BuildRequires: perl-File-Slurp
|
|
BuildRequires: perl-PPI
|
|
BuildRequires: perl-Params-Util
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: perl(Test::Pod)
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
%description
|
|
PPI::HTML converts Perl documents into syntax highlighted HTML pages.
|
|
|
|
%prep
|
|
%setup -q -n PPI-HTML-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w %{buildroot}/*
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/ppi2html
|
|
%{perl_vendorlib}/
|
|
%{_mandir}/man3/*.3pm.gz
|
|
%doc Changes LICENSE README
|
|
|
|
%changelog
|
|
* Sat Aug 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.08-2mamba
|
|
- rebuilt
|
|
|
|
* Fri Nov 23 2012 Automatic Build System <autodist@mambasoft.it> 1.08-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 17 2011 gil <puntogil@libero.it> 1.07-1mamba
|
|
- package created by autospec
|