60 lines
1.7 KiB
RPMSpec
60 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: 1mamba
|
|
Summary: PPI::HTML - Generate syntax-hightlighted HTML for Perl using PPI
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
URL: http://www.cpan.org
|
|
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/PPI-HTML-%{version}.tar.gz
|
|
|
|
License: GPL, Artistic
|
|
BuildRequires: perl(CSS::Tiny)
|
|
BuildRequires: perl(File::Slurp)
|
|
BuildRequires: perl(Params::Util)
|
|
BuildRequires: perl(PPI)
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl-devel
|
|
Requires: perl >= %perl_major_ver
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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
|
|
* 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
|