[perl-Term-Encoding] Import

Petr Pisar ppisar at fedoraproject.org
Tue May 6 05:18:11 UTC 2014


commit fbec6f4f9eaf0db476d5f2a0cc191574c7881267
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue May 6 07:18:22 2014 +0200

    Import

 .gitignore              |    1 +
 perl-Term-Encoding.spec |   54 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..44dc59a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Term-Encoding-0.02.tar.gz
diff --git a/perl-Term-Encoding.spec b/perl-Term-Encoding.spec
new file mode 100644
index 0000000..4d9cd2d
--- /dev/null
+++ b/perl-Term-Encoding.spec
@@ -0,0 +1,54 @@
+Name:           perl-Term-Encoding
+Version:        0.02
+Release:        1%{?dist}
+Summary:        Detect encoding of the current terminal
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Term-Encoding/
+Source0:        http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Term-Encoding-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(inc::Module::Install)
+# Run-time:
+BuildRequires:  perl(base)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Win32::Console not used
+# Optional run-time:
+BuildRequires:  perl(I18N::Langinfo)
+# Tests:
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(warnings)
+
+%description
+Term::Encoding is a simple Perl module to detect an encoding the current
+terminal expects, in various ways.
+
+%prep
+%setup -q -n Term-Encoding-%{version}
+# Remove bundled modules
+rm -r ./inc/*
+sed -i -e '/^inc\//d' MANIFEST
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Mon May 05 2014 Petr Pisar <ppisar at redhat.com> 0.02-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..a79a0f7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+67b7fb38ec7779a3fb79a047fd7edbb5  Term-Encoding-0.02.tar.gz


More information about the scm-commits mailing list