upload code

This commit is contained in:
caodongxia 2020-11-05 14:41:51 +08:00
parent 2d92d3a553
commit ff61719cdf
3 changed files with 77 additions and 0 deletions

BIN
BibTeX-Parser-1.02.tar.gz Normal file

Binary file not shown.

73
perl-BibTeX-Parser.spec Normal file
View File

@ -0,0 +1,73 @@
%global _empty_manifest_terminate_build 0
Name: perl-BibTeX-Parser
Version: 1.02
Release: 1
Summary: BibTeX::Parser Perl module
License: Perl_5
Group: Development/Libraries
URL: http://search.cpan.org/dist/BibTeX-Parser/
Source0: http://www.cpan.org/authors/id/B/BO/BORISV/BibTeX-Parser-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::String)
BuildRequires: perl(LaTeX::ToUnicode) >= 0.02
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl-generators
Requires: perl(File::Spec)
Requires: perl(IO::String)
Requires: perl(LaTeX::ToUnicode) >= 0.02
Requires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
BibTeX::Parser Perl module
%package help
Summary : BibTeX::Parser Perl module
Provides: perl-BibTeX-Parser-doc
%description help
BibTeX::Parser Perl module
%prep
%setup -q -n BibTeX-Parser-%{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
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes dist.ini LICENSE META.json notes README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Wed Jun 10 2020 Perl_Bot <Perl_Bot@openeuler.org> 1.02-1
- Specfile autogenerated by Perl_Bot

4
perl-BibTeX-Parser.yaml Normal file
View File

@ -0,0 +1,4 @@
version-ctrl: metacpan
src_repo: BibTeX-Parser
tag_prefix: "^v"
seperator: "."