# Detect the distribution in use %global __despace head -n 1 | tr -d '[:space:]' | sed -e 's/[(].*[)]//g' %global __lower4 cut -c 1-4 | tr '[:upper:]' '[:lower:]' %global __distfile %([ -f /etc/SuSE-release ] && echo /etc/SuSE-release || echo /etc/redhat-release) %global __distinit %(sed -e 's/ release .*//' -e 's/\\([A-Za-z]\\)[^ ]*/\\1/g' %{__distfile} | %{__despace} | %{__lower4}) %global __distvers %(sed -e 's/.* release \\([^. ]*\\).*/\\1/' %{__distfile} | %{__despace}) # Identify Alma, CentOS, CentOS Stream and Rocky Linux as rhel %if "%{__distinit}" == "a" || "%{__distinit}" == "c" || "%{__distinit}" == "cl" || "%{__distinit}" == "cs" || "%{__distinit}" == "rl" %global __distinit rhel %endif # Dist tag for Fedora is still "fc" %if "%{__distinit}" == "f" %global __distinit fc %endif Summary: Encoding and decoding of UTF-8 encoding form Name: perl-Unicode-UTF8 Version: 0.62 Release: 25.%{__distinit}%{__distvers} License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Unicode-UTF8 Source0: https://cpan.metacpan.org/modules/by-module/Unicode/Unicode-UTF8-%{version}.tar.gz # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(base) BuildRequires: perl(Config) BuildRequires: perl(Cwd) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Fcntl) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Find) BuildRequires: perl(File::Path) BuildRequires: perl(FindBin) BuildRequires: perl(lib) BuildRequires: perl(Pod::Text) BuildRequires: perl(vars) # Module Runtime BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Test Suite BuildRequires: perl(Encode) >= 1.9801 BuildRequires: perl(IO::File) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Fatal) >= 0.006 BuildRequires: perl(Test::More) >= 0.47 # Optional Tests BuildRequires: perl(Taint::Runtime) >= 0.03 BuildRequires: perl(Test::LeakTrace) >= 0.10 BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Variable::Magic) # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif Requires: perl(Exporter) Requires: perl(XSLoader) # Don't "provide" private Perl libs %{?perl_default_filter} %description This module provides functions to encode and decode UTF-8 encoding form as specified by Unicode and ISO/IEC 10646:2011. %prep %setup -q -n Unicode-UTF8-%{version} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} -c %{buildroot} %check make test %files %doc Changes README %{perl_vendorarch}/Unicode/ %{perl_vendorarch}/auto/Unicode/ %{_mandir}/man3/Unicode::UTF8.3* %changelog * Fri Jun 14 2024 Paul Howarth - 0.62-25 - Perl 5.40 rebuild * Thu Jul 13 2023 Paul Howarth - 0.62-21 - Perl 5.38 rebuild * Wed May 17 2023 Paul Howarth - 0.62-20 - Use SPDX-format license tag * Wed Jun 1 2022 Paul Howarth - 0.62-18 - Perl 5.36 rebuild * Mon May 24 2021 Paul Howarth - 0.62-15 - Perl 5.34 rebuild * Sat Jun 27 2020 Paul Howarth - 0.62-12 - Perl 5.32 rebuild * Wed Jun 5 2019 Paul Howarth - 0.62-9 - Perl 5.30 rebuild * Thu Jun 28 2018 Paul Howarth - 0.62-6 - Perl 5.28 rebuild * Fri Aug 4 2017 Paul Howarth - 0.62-4 - BR: perl-generators unconditionally - BR: perl-interpreter rather than perl * Tue Jun 13 2017 Paul Howarth - 0.62-2 - Perl 5.26 rebuild * Wed Apr 12 2017 Paul Howarth - 0.62-1 - Update to 0.62 - Only check for missing Module::Install related modules in Makefile.PL * Mon Apr 10 2017 Paul Howarth - 0.61-1 - Update to 0.61 - Avoid relying on current working directory being in @INC - Documentation typo fixes - Drop support for EOL distributions prior to F-13 - Drop BuildRoot: and Group: tags - Drop explicit buildroot cleaning in %%install section - Drop explicit %%clean section - BR: perl-devel unconditionally * Tue May 17 2016 Paul Howarth - 0.60-8 - BR: perl-devel and perl-generators where available - Simplify find commands using -empty and -delete * Thu Sep 11 2014 Paul Howarth - 0.60-4 - BR: perl(Test::LeakTrace) unconditionally - Drop %%defattr, redundant since rpm 4.4 * Wed Sep 25 2013 Paul Howarth - 0.60-1 - Update to 0.60 - Added valid_utf8() - Skip copy-on-write tests on Perl 5.19 - Include all necessary build dependencies (#1003650) * Mon Sep 2 2013 Paul Howarth - 0.59-1 - Initial RPM build