[perl-PerlIO-locale] Import

Petr Pisar ppisar at fedoraproject.org
Mon Jun 27 14:12:14 UTC 2011


commit 3394a05a2aefe28fec9b1e2b847296375c4e7e22
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Jun 27 16:11:50 2011 +0200

    Import

 .gitignore              |    1 +
 perl-PerlIO-locale.spec |   58 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cc56e15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/PerlIO-locale-0.07.tar.gz
diff --git a/perl-PerlIO-locale.spec b/perl-PerlIO-locale.spec
new file mode 100644
index 0000000..746a252
--- /dev/null
+++ b/perl-PerlIO-locale.spec
@@ -0,0 +1,58 @@
+Name:           perl-PerlIO-locale
+Version:        0.07
+Release:        1%{?dist}
+Summary:        PerlIO layer to use the encoding of the current locale
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/PerlIO-locale/
+Source0:        http://www.cpan.org/authors/id/R/RG/RGARCIA/PerlIO-locale-%{version}.tar.gz
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Tests:
+BuildRequires:  perl(PerlIO::encoding)
+BuildRequires:  perl(POSIX)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(XSLoader)
+# Optional tests:
+BuildRequires:  perl(Test::Pod) >= 1.14
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+This is mostly a per-file-handle version of the open pragma, when used under
+the form:
+   
+use open ':locale';
+
+The encoding for the opened file will be set to the encoding corresponding to
+the locale currently in effect, if perl can guess it.
+
+
+%prep
+%setup -q -n PerlIO-locale-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc ChangeLog README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/PerlIO*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Jun 27 2011 Petr Pisar <ppisar at redhat.com> 0.07-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot and defattr
diff --git a/sources b/sources
index e69de29..3be0cd6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9b0d75d8907bbbe94486ead95cafa6a7  PerlIO-locale-0.07.tar.gz



More information about the perl-devel mailing list