commit 4261bc9fa05cb81edf174be0f62abd93ca22ce37 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Fri Jan 30 15:31:05 2015 +0100 Import .gitignore | 1 + perl-Cwd-utf8.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..4f2fbbb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Cwd-utf8-0.007.tar.gz diff --git a/perl-Cwd-utf8.spec b/perl-Cwd-utf8.spec new file mode 100644 index 0000000..b588086 --- /dev/null +++ b/perl-Cwd-utf8.spec @@ -0,0 +1,60 @@ +Name: perl-Cwd-utf8 +Version: 0.007 +Release: 1%{?dist} +Summary: Fully UTF-8 aware Cwd +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Cwd-utf8/ +Source0: http://www.cpan.org/authors/id/H/HA/HAYOBAAN/Cwd-utf8-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Cwd) +BuildRequires: perl(Encode) +BuildRequires: perl(Exporter) +# Tests: +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IPC::Open3) +BuildRequires: perl(open) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::Warn) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Exporter) + +%description +While the original Cwd functions are capable of handling UTF-8 quite well, +they expects and return all data as bytes, not as characters. This Cwd::utf8 +Perl module replaces all the Cwd functions with fully UTF-8 aware versions, +both expecting and returning characters. + +%prep +%setup -q -n Cwd-utf8-%{version} + +%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 +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Jan 29 2015 Petr Pisar <ppisar@xxxxxxxxxx> 0.007-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..e927e67 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1f6e21f754c80bf82602264b3da29c75 Cwd-utf8-0.007.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel