git init
This commit is contained in:
parent
faf2669db3
commit
068c6daacb
BIN
HTML-Scrubber-0.19.tar.gz
Normal file
BIN
HTML-Scrubber-0.19.tar.gz
Normal file
Binary file not shown.
96
perl-HTML-Scrubber.spec
Normal file
96
perl-HTML-Scrubber.spec
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: perl-HTML-Scrubber
|
||||||
|
Version: 0.19
|
||||||
|
Release: 1
|
||||||
|
Summary: Perl extension for scrubbing/sanitizing HTML
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
Group: Development/Libraries
|
||||||
|
URL: http://search.cpan.org/dist/HTML-Scrubber/
|
||||||
|
Source0: http://www.cpan.org/authors/id/N/NI/NIGELM/HTML-Scrubber-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl >= 0:5.008
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(File::Spec)
|
||||||
|
BuildRequires: perl(File::Temp)
|
||||||
|
BuildRequires: perl(HTML::Entities)
|
||||||
|
BuildRequires: perl(HTML::Parser) >= 3.47
|
||||||
|
BuildRequires: perl(List::Util) >= 1.33
|
||||||
|
BuildRequires: perl(Scalar::Util)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(Test)
|
||||||
|
BuildRequires: perl(Test::Differences)
|
||||||
|
BuildRequires: perl(Test::Memory::Cycle)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
|
BuildRequires: perl(utf8)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
Requires: perl(HTML::Entities)
|
||||||
|
Requires: perl(HTML::Parser) >= 3.47
|
||||||
|
Requires: perl(List::Util) >= 1.33
|
||||||
|
Requires: perl(Scalar::Util)
|
||||||
|
Requires: perl(strict)
|
||||||
|
Requires: perl(warnings)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description
|
||||||
|
If you want to "scrub" or "sanitize" html input in a reliable and flexible
|
||||||
|
fashion, then this module is for you.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary : Perl extension for scrubbing/sanitizing HTML
|
||||||
|
Provides: perl-HTML-Scrubber-doc
|
||||||
|
|
||||||
|
%description help
|
||||||
|
If you want to "scrub" or "sanitize" html input in a reliable and flexible
|
||||||
|
fashion, then this module is for you.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n HTML-Scrubber-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
export PERL_MM_OPT=""
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
export PERL_MM_OPT=""
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||||
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
pushd %{buildroot}
|
||||||
|
touch filelist.lst
|
||||||
|
if [ -d usr/bin ];then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ];then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ];then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib ];then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files -f filelist.lst
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc Changes dist.ini LICENSE META.json README weaver.ini
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Oct 22 2021 guoqinglan <guoqinglan@uniontech.com> - 0.19-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user