perl-BibTeX-Parser/perl-BibTeX-Parser.spec
starlet-dx 21f4ddebdb License compliance rectification
(cherry picked from commit 8288db9e9d9c4939a4a7a5ba5eeb105e486ae4a6)
2022-09-02 16:24:43 +08:00

80 lines
2.2 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: perl-BibTeX-Parser
Version: 1.03
Release: 2
Summary: BibTeX::Parser Perl module
License: Artistic-1.0 or GPL-1.0-or-later
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
* Fri Sep 02 2022 yaoxin <yaoxin30@h-partners.com> - 1.03-2
- License compliance rectification
* 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