!13 【轻量级 PR】:opitomize the specfile

From: @ZhouShuiQing 
Reviewed-by: @overweight 
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2022-10-25 07:56:50 +00:00 committed by Gitee
commit 55a828674e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,12 +1,11 @@
%global base_name Unicode-Collate
Name: perl-Unicode-Collate
%define mod_name Unicode-Collate
Name: perl-%{mod_name}
Version: 1.31
Release: 1
Release: 2
Summary: Unicode Collation Algorithm (UCA)
License: (GPL+ or Artistic) and Unicode
URL: http://search.cpan.org/dist/Unicode-Collate/
Source0: https://cpan.metacpan.org/authors/id/S/SA/SADAHIRO/Unicode-Collate-%{version}.tar.gz
URL: http://search.cpan.org/dist/%{mod_name}/
Source0: https://cpan.metacpan.org/authors/id/S/SA/SADAHIRO/%{mod_name}-%{version}.tar.gz
BuildRequires: gcc coreutils findutils make perl-devel perl-generators perl-interpreter
BuildRequires: perl(Carp) perl(constant) perl(ExtUtils::MakeMaker) >= 6.76 perl(File::Spec)
@ -22,7 +21,7 @@ or sort text in any writing system and language that can be represented with Uni
%package_help
%prep
%autosetup -n %{base_name}-%{version}
%autosetup -n %{mod_name}-%{version}
rm Collate/Locale/*
@ -41,14 +40,6 @@ make pure_install DESTDIR=%{buildroot}
%check
make test
%pre
%preun
%post
%postun
%files
%defattr(-,root,root)
%doc Changes README
@ -59,6 +50,9 @@ make test
%{_mandir}/man3/*
%changelog
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 1.31-2
- opitomize the specfile
* Mon Dec 6 2021 guozhaorui <guozhaorui1@huawei.com> - 1.31-1
- update version to 1.31