63560f8
# License information:
63560f8
#
63560f8
# This code is largely a Perl wrapper around data tables provided by the
63560f8
# Unicode Consortium under their Unicode Character Database Terms Of Use
63560f8
#
63560f8
# Upstream is happy for us to distribute the Perl parts under any terms
63560f8
# we like, so I have selected the standard "same as Perl" terms of
63560f8
# "GPL+ or Artistic"
63560f8
#
63560f8
# Ref: https://rt.cpan.org/Public/Bug/Display.html?id=70210
63560f8
63560f8
Summary:	Checks if scalar is valid UTF-8
63560f8
Name:		perl-Unicode-CheckUTF8
63560f8
Version:	1.03
fc18c6a
Release:	27%{?dist}
63560f8
License:	UCD and (GPL+ or Artistic)
fc18c6a
URL:		https://metacpan.org/release/Unicode-String
fc18c6a
Source0:	https://cpan.metacpan.org/modules/by-module/Unicode/Unicode-CheckUTF8-%{version}.tar.gz
93c3a9a
# Module Build
93c3a9a
BuildRequires:	coreutils
93c3a9a
BuildRequires:	findutils
93c3a9a
BuildRequires:	gcc
93c3a9a
BuildRequires:	make
93c3a9a
BuildRequires:	perl-devel
4f877d4
BuildRequires:	perl-generators
fc18c6a
BuildRequires:	perl-interpreter
93c3a9a
BuildRequires:	perl(ExtUtils::MakeMaker)
93c3a9a
# Module Runtime
63560f8
BuildRequires:	perl(base)
63560f8
BuildRequires:	perl(Exporter)
63560f8
BuildRequires:	perl(XSLoader)
93c3a9a
# Test Suite
93c3a9a
BuildRequires:	perl(Test::More)
93c3a9a
# Dependencies
63560f8
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
63560f8
63560f8
# Don't "provide" private Perl libs
63560f8
%{?perl_default_filter}
63560f8
63560f8
%description
63560f8
This is an XS wrapper around some Unicode Consortium code to check if a string
63560f8
is valid UTF-8, revised to conform to what expat/Mozilla think is valid UTF-8,
63560f8
especially with regard to low-ASCII characters.
63560f8
63560f8
Note that this module has NOTHING to do with Perl's internal UTF8 flag on
63560f8
scalars.
63560f8
63560f8
This module is for use when you're getting input from users and want to make
63560f8
sure it's valid UTF-8 before continuing.
63560f8
63560f8
%prep
fc18c6a
%setup -q -n Unicode-CheckUTF8-%{version}
63560f8
63560f8
%build
63560f8
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
63560f8
make %{?_smp_mflags}
63560f8
63560f8
%install
63560f8
make pure_install DESTDIR=%{buildroot}
93c3a9a
find %{buildroot} -type f -name .packlist -delete
fc18c6a
find %{buildroot} -type f -name '*.bs' -empty -delete
fc18c6a
%{_fixperms} -c %{buildroot}
63560f8
63560f8
%check
63560f8
make test
63560f8
63560f8
%files
63560f8
%doc CHANGES
63560f8
%{perl_vendorarch}/Unicode/
63560f8
%{perl_vendorarch}/auto/Unicode/
93c3a9a
%{_mandir}/man3/Unicode::CheckUTF8.3*
63560f8
63560f8
%changelog
fc18c6a
* Tue Oct 29 2019 Paul Howarth <paul@city-fan.org> - 1.03-27
fc18c6a
- Spec tidy-up
fc18c6a
  - Use author-independent source URL
fc18c6a
  - Drop redundant buildroot cleaning in %%install section
fc18c6a
  - Drop redundant "-a" operator in find command
fc18c6a
  - Fix permissions verbosely
fc18c6a
86a0222
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-26
86a0222
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
86a0222
b3206a6
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.03-25
b3206a6
- Perl 5.30 rebuild
b3206a6
ab09b9d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-24
ab09b9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ab09b9d
fb4bb0e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-23
fb4bb0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fb4bb0e
a7873fa
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.03-22
a7873fa
- Perl 5.28 rebuild
a7873fa
5ed5761
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-21
5ed5761
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5ed5761
a1f9f2e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-20
a1f9f2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a1f9f2e
9466c1e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-19
9466c1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9466c1e
e2d3c4d
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.03-18
e2d3c4d
- Perl 5.26 rebuild
e2d3c4d
8946412
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-17
8946412
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8946412
60ae024
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.03-16
60ae024
- Perl 5.24 rebuild
60ae024
93c3a9a
* Tue Apr 19 2016 Paul Howarth <paul@city-fan.org> - 1.03-15
93c3a9a
- Classify buildreqs by usage
93c3a9a
- Simplify find commands using -empty and -delete
93c3a9a
- Don't need to prune empty directories from the buildroot
93c3a9a
- Drop %%defattr, redundant since rpm 4.4
93c3a9a
6d8a3d3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-14
6d8a3d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6d8a3d3
7f235d0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-13
7f235d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7f235d0
aeecc06
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.03-12
aeecc06
- Perl 5.22 rebuild
aeecc06
af17326
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.03-11
af17326
- Perl 5.20 rebuild
af17326
5c276bc
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-10
5c276bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5c276bc
0c1911a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-9
0c1911a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0c1911a
73cc921
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-8
73cc921
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
73cc921
5d7b049
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.03-7
5d7b049
- Perl 5.18 rebuild
5d7b049
d0fd59f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-6
d0fd59f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d0fd59f
f30062c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-5
f30062c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f30062c
e168bde
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.03-4
e168bde
- Perl 5.16 rebuild
e168bde
aa6aeef
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-3
aa6aeef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
aa6aeef
63560f8
* Wed Aug 24 2011 Paul Howarth <paul@city-fan.org> - 1.03-2
63560f8
- Sanitize for Fedora submission
63560f8
63560f8
* Thu Aug 11 2011 Paul Howarth <paul@city-fan.org> - 1.03-1
63560f8
- Initial RPM version