From 05a5fc48b3110d046b4e8060595dd1baf3bf2cf1 Mon Sep 17 00:00:00 2001 From: zhoushuiqing Date: Tue, 25 Oct 2022 11:24:08 +0000 Subject: [PATCH] opitomize the specfile --- perl-Unicode-Collate.spec | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/perl-Unicode-Collate.spec b/perl-Unicode-Collate.spec index 6f75f67..afbfe1c 100644 --- a/perl-Unicode-Collate.spec +++ b/perl-Unicode-Collate.spec @@ -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 - 1.31-2 +- opitomize the specfile + * Mon Dec 13 2021 guozhaorui - 1.31-1 - update version to 1.31 -- Gitee