77 lines
2.1 KiB
RPMSpec
77 lines
2.1 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: perl-BibTeX-Parser
|
|
Version: 1.03
|
|
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
|
|
%autosetup -n BibTeX-Parser-%{version} -p1
|
|
%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
|
|
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.03-1
|
|
- Upgrade to version 1.03
|
|
|
|
* Wed Jun 10 2020 Perl_Bot <Perl_Bot@openeuler.org> 1.02-1
|
|
- Specfile autogenerated by Perl_Bot
|