perl-Unicode-Normalize/perl-Unicode-Normalize.spec
Mingtai 049ef80a46
define mod_name to opitomize the specfile
Signed-off-by: Mingtai <yangmingtai@huawei.com>
2022-10-24 11:09:52 +00:00

72 lines
1.8 KiB
RPMSpec

%global base_version 1.26
%define mod_name Unicode-Normalize
Name: perl-%{mod_name}
Version: 1.28
Release: 2
Summary: Unicode Normalization Forms
License: GPL+ or Artistic
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/K/KH/KHW/%{mod_name}-%{base_version}.tar.gz
Patch6000: backport-Update-1.27.patch
Patch6001: backport-Update-1.28.patch
BuildRequires: gcc findutils make perl-devel perl-generators perl-interpreter perl-libs
BuildRequires: perl(Carp) perl(constant) perl(ExtUtils::MakeMaker) >= 6.76 perl(File::Spec)
BuildRequires: perl(SelectSaver) perl(strict) perl(warnings) perl(Exporter) perl(XSLoader)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Conflicts: perl < 4:5.22.0-347
%description
This package takes Unicode data of arbitrary forms and canonicalizes it to a standard
representation(Unicode Standard Annex #15).
%package_help
%prep
%autosetup -n %{mod_name}-%{base_version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}"
%make_build
%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
%check
make test
%pre
%preun
%post
%postun
%files
%doc Changes README
%license LICENSE
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Unicode
%files help
%{_mandir}/man3/*
%changelog
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 1.28-2
- define mod_name to opitomize the specfile
* Mon Dec 27 2021 guozhaorui<guozhaorui1@huawei.com> - 1.28-1
- update version to 1.28
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 1.26-419
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix spec rule in openeuler
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.26-418
- Package init