[perl-Unicode-CheckUTF8] Initial import (perl-Unicode-CheckUTF8-1.03-2)

Paul Howarth pghmcfc at fedoraproject.org
Sun Sep 4 19:36:10 UTC 2011


commit 63560f8ed7054e6fac07c8fcb947eb23e21d8c40
Author: Paul Howarth <paul at city-fan.org>
Date:   Sun Sep 4 20:35:04 2011 +0100

    Initial import (perl-Unicode-CheckUTF8-1.03-2)
    
    This is an XS wrapper around some Unicode Consortium code to check if a string
    is valid UTF-8, revised to conform to what expat/Mozilla think is valid UTF-8,
    especially with regard to low-ASCII characters.
    
    Note that this module has NOTHING to do with Perl's internal UTF8 flag on
    scalars.
    
    This module is for use when you're getting input from users and want to make
    sure it's valid UTF-8 before continuing.

 .gitignore                  |    1 +
 perl-Unicode-CheckUTF8.spec |   75 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..773b7a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Unicode-CheckUTF8-[0-9.]*.tar.gz
diff --git a/perl-Unicode-CheckUTF8.spec b/perl-Unicode-CheckUTF8.spec
new file mode 100644
index 0000000..7940cfa
--- /dev/null
+++ b/perl-Unicode-CheckUTF8.spec
@@ -0,0 +1,75 @@
+# License information:
+#
+# This code is largely a Perl wrapper around data tables provided by the
+# Unicode Consortium under their Unicode Character Database Terms Of Use
+#
+# Upstream is happy for us to distribute the Perl parts under any terms
+# we like, so I have selected the standard "same as Perl" terms of
+# "GPL+ or Artistic"
+#
+# Ref: https://rt.cpan.org/Public/Bug/Display.html?id=70210
+
+Summary:	Checks if scalar is valid UTF-8
+Name:		perl-Unicode-CheckUTF8
+Version:	1.03
+Release:	2%{?dist}
+License:	UCD and (GPL+ or Artistic)
+Group:		Development/Libraries
+Url:		http://search.cpan.org/dist/Unicode-String/
+Source0:	http://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/Unicode-CheckUTF8-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildRequires:	perl(base)
+BuildRequires:	perl(Exporter)
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(XSLoader)
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+# Don't "provide" private Perl libs
+%{?perl_default_filter}
+
+%description
+This is an XS wrapper around some Unicode Consortium code to check if a string
+is valid UTF-8, revised to conform to what expat/Mozilla think is valid UTF-8,
+especially with regard to low-ASCII characters.
+
+Note that this module has NOTHING to do with Perl's internal UTF8 flag on
+scalars.
+
+This module is for use when you're getting input from users and want to make
+sure it's valid UTF-8 before continuing.
+
+%prep
+%setup -q -n Unicode-CheckUTF8-%{version} 
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES
+%{perl_vendorarch}/Unicode/
+%{perl_vendorarch}/auto/Unicode/
+%{_mandir}/man3/Unicode::CheckUTF8.3pm*
+
+%changelog
+* Wed Aug 24 2011 Paul Howarth <paul at city-fan.org> - 1.03-2
+- Sanitize for Fedora submission
+
+* Thu Aug 11 2011 Paul Howarth <paul at city-fan.org> - 1.03-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..9fdb104 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a483f665b2bc62d7737c209294e64e1e  Unicode-CheckUTF8-1.03.tar.gz


More information about the scm-commits mailing list