!2 提交XML-RegExp 源代码
From: @liuerwuliu Reviewed-by: @myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
b55409e0a1
BIN
XML-RegExp-0.04.tar.gz
Normal file
BIN
XML-RegExp-0.04.tar.gz
Normal file
Binary file not shown.
79
perl-XML-RegExp.spec
Normal file
79
perl-XML-RegExp.spec
Normal file
@ -0,0 +1,79 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: perl-XML-RegExp
|
||||
Version: 0.04
|
||||
Release: 1
|
||||
Summary: Regular expressions for XML tokens
|
||||
License: Perl License
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/XML-RegExp/
|
||||
Source0: http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-RegExp-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This package contains regular expressions for the following XML tokens:
|
||||
BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar, NameChar,
|
||||
EntityRef, CharRef, Reference, Name, NmToken, and AttValue.
|
||||
|
||||
%package help
|
||||
Summary : Regular expressions for XML tokens
|
||||
Provides: perl-XML-RegExp-doc
|
||||
|
||||
%description help
|
||||
This package contains regular expressions for the following XML tokens:
|
||||
BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar, NameChar,
|
||||
EntityRef, CharRef, Reference, Name, NmToken, and AttValue.
|
||||
|
||||
%prep
|
||||
%setup -q -n XML-RegExp-%{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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f filelist.lst
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jul 01 2021 Perl_Bot <Perl_Bot@openeuler.org> 0.04-1
|
||||
- Specfile autogenerated by Perl_Bot
|
||||
Loading…
x
Reference in New Issue
Block a user