[cpanspec] Escape slashes in filters (#544738)
by Petr Sabata
commit e5efed450c36735d603f7ea8b9c7cc60f70b89ba
Author: Petr Šabata <contyk(a)redhat.com>
Date: Mon Dec 1 16:57:21 2014 +0100
Escape slashes in filters (#544738)
cpanspec-1.78-Escape-slashes-in-filters.patch | 41 +++++++++++++++++++++++++
cpanspec.spec | 10 ++++--
2 files changed, 47 insertions(+), 4 deletions(-)
---
diff --git a/cpanspec-1.78-Escape-slashes-in-filters.patch b/cpanspec-1.78-Escape-slashes-in-filters.patch
new file mode 100644
index 0000000..b31b0d4
--- /dev/null
+++ b/cpanspec-1.78-Escape-slashes-in-filters.patch
@@ -0,0 +1,41 @@
+From 1052ae3f560cfb31a540fbf3ab1fe5d3343094a8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk(a)redhat.com>
+Date: Thu, 6 Nov 2014 16:51:47 +0100
+Subject: [PATCH] Escape slashes in filters
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Simply escape slashes in --filter-requires and --filter-provides
+options, resolving a five year old bug [0].
+
+[0] https://bugzilla.redhat.com/show_bug.cgi?id=544738
+
+Signed-off-by: Petr Šabata <contyk(a)redhat.com>
+---
+ cpanspec | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/cpanspec b/cpanspec
+index d972d1c..398e0de 100755
+--- a/cpanspec
++++ b/cpanspec
+@@ -823,6 +823,7 @@ for my $file (@args) {
+ }
+ die "Failed to create $script: $!\n" if (!$sh);
+
++ map { s/\//\\\//g } @filter_requires;
+ print $sh "#!/bin/sh\n\n"
+ . "\@\@PERL_REQ\@\@ \"\$\@\" | sed -e '/^$filter_requires[0]\$/d'";
+ if (@filter_requires > 1) {
+@@ -845,6 +846,7 @@ for my $file (@args) {
+ }
+ die "Failed to create $script: $!\n" if (!$sh);
+
++ map { s/\//\\\//g } @filter_provides;
+ print $sh "#!/bin/sh\n\n"
+ . "\@\@PERL_PROV\@\@ \"\$\@\" | sed -e '/^$filter_provides[0]\$/d'";
+ if (@filter_provides > 1) {
+--
+1.9.3
+
diff --git a/cpanspec.spec b/cpanspec.spec
index 12fd746..9f865a4 100644
--- a/cpanspec.spec
+++ b/cpanspec.spec
@@ -1,6 +1,6 @@
Name: cpanspec
Version: 1.78
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: RPM spec file generation utility
License: GPL+ or Artistic
Group: Development/Tools
@@ -8,6 +8,7 @@ URL: http://cpanspec.sourceforge.net/
Source0: http://sourceforge.net/downloads/%{name}/%{name}/%{version}/%{name}-%{ver...
Patch0: %{name}-1.78-Change-optimize-to-optflags.patch
Patch1: %{name}-1.78-Strip-any-version-comparison-operator-from-the-perl-BR.patch
+Patch2: %{name}-1.78-Escape-slashes-in-filters.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Module::Build)
@@ -28,6 +29,7 @@ contained in the spec file is correct.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__perl} Build.PL installdirs=vendor
@@ -35,12 +37,9 @@ contained in the spec file is correct.
%install
rm -rf $RPM_BUILD_ROOT
-
./Build install destdir=$RPM_BUILD_ROOT
-
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
%{_fixperms} $RPM_BUILD_ROOT/*
# No tests.
@@ -57,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/*
%changelog
+* Mon Dec 01 2014 Petr Šabata <contyk(a)redhat.com> - 1.78-19
+- Escape slashes in filters (#544738)
+
* Thu Nov 06 2014 Petr Šabata <contyk(a)redhat.com> - 1.78-18
- Use %%{optflags} instead of %%{optimize} (#739461, b0bdaf23)
- Strip META perl version BR (#708377, c4069558)
9 years, 5 months
[perl-YAML-LibYAML] Add changelog reference to CVE-2014-9130
by Paul Howarth
commit 2dae5342918a65f1a6343c9d897d473164f6f781
Author: Paul Howarth <paul(a)city-fan.org>
Date: Mon Dec 1 15:52:40 2014 +0000
Add changelog reference to CVE-2014-9130
perl-YAML-LibYAML.spec | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/perl-YAML-LibYAML.spec b/perl-YAML-LibYAML.spec
index 8ea3994..bdd1c7f 100644
--- a/perl-YAML-LibYAML.spec
+++ b/perl-YAML-LibYAML.spec
@@ -82,6 +82,7 @@ make test
- Update to 0.54
- Fix for an edge case in scanner that results in an assert() failing
(https://bitbucket.org/xi/libyaml/issue/10/wrapped-strings-cause-assert-fa...)
+ (CVE-2014-9130)
- Drop upstreamed patches for CVE-2013-6393 and CVE-2014-2525
* Tue Nov 18 2014 Jitka Plesnikova <jplesnik(a)redhat.com> - 0.52-3
9 years, 5 months
[perl-Git-Repository] Fix broken MODULE_COMPAT
by Petr Sabata
commit 527a318da1f4bb3bf461184296891cc63a97736c
Author: Petr Šabata <contyk(a)redhat.com>
Date: Mon Dec 1 16:07:22 2014 +0100
Fix broken MODULE_COMPAT
perl-Git-Repository.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/perl-Git-Repository.spec b/perl-Git-Repository.spec
index e30f06c..146025c 100644
--- a/perl-Git-Repository.spec
+++ b/perl-Git-Repository.spec
@@ -1,6 +1,6 @@
Name: perl-Git-Repository
Version: 1.312
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Perl interface to Git repositories
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Git-Repository/
@@ -31,7 +31,7 @@ BuildRequires: perl(lib)
BuildRequires: perl(overload)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: git
-Requires: perl(:MODULE_COMPAT_%(eval "(perl -V:version)"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: git
%description
@@ -73,6 +73,9 @@ make test
%{perl_vendorlib}/Test
%changelog
+* Mon Dec 01 2014 Petr Šabata <contyk(a)redhat.com> - 1.312-2
+- Fix broken MODULE_COMPAT
+
* Fri Nov 28 2014 Petr Šabata <contyk(a)redhat.com> - 1.312-1
- 1.312 bump
9 years, 5 months
[perl-Method-Signatures-Simple] Initial import (#1168673)
by Petr Sabata
commit 53a1443b6d814ab8bab761a758d4a15bba340ce6
Author: Petr Šabata <contyk(a)redhat.com>
Date: Mon Dec 1 15:31:06 2014 +0100
Initial import (#1168673)
.gitignore | 1 +
perl-Method-Signatures-Simple.spec | 51 ++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bf39e63 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Method-Signatures-Simple-1.07.tar.gz
diff --git a/perl-Method-Signatures-Simple.spec b/perl-Method-Signatures-Simple.spec
new file mode 100644
index 0000000..1444e34
--- /dev/null
+++ b/perl-Method-Signatures-Simple.spec
@@ -0,0 +1,51 @@
+Name: perl-Method-Signatures-Simple
+Version: 1.07
+Release: 1%{?dist}
+Summary: Basic method declarations with signatures, without source filters
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Method-Signatures-Simple/
+Source0: http://www.cpan.org/authors/id/R/RH/RHESA/Method-Signatures-Simple-%{vers...
+BuildArch: noarch
+# Build
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Runtime
+BuildRequires: perl(base)
+BuildRequires: perl(Devel::Declare::MethodInstaller::Simple)
+# Tests only
+BuildRequires: perl(Test::More)
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+
+%description
+This module provides basic method and func keywords with simple
+signatures. It's intentionally simple, and is supposed to be a
+stepping stone for its bigger brothers MooseX::Method::Signatures and
+Method::Signatures. It only has a small benefit over regular subs,
+so if you want more features, look at those modules. But if you're
+looking for a small amount of syntactic sugar, this might just be enough.
+
+%prep
+%setup -q -n Method-Signatures-Simple-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%license LICENSE
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Nov 27 2014 Petr Šabata <contyk(a)redhat.com> 1.07-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..f6dcc9c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+53b315b6debda04b31e9323ff227999b Method-Signatures-Simple-1.07.tar.gz
9 years, 5 months
[perl-Text-WagnerFischer] Initial import (#1168697)
by Petr Sabata
commit e61f32502ddcd199b3ed2b7df9b3e9d798fa019c
Author: Petr Šabata <contyk(a)redhat.com>
Date: Mon Dec 1 15:22:11 2014 +0100
Initial import (#1168697)
.gitignore | 1 +
perl-Text-WagnerFischer.spec | 50 ++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..eee5b29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Text-WagnerFischer-0.04.tar.gz
diff --git a/perl-Text-WagnerFischer.spec b/perl-Text-WagnerFischer.spec
new file mode 100644
index 0000000..2255ecf
--- /dev/null
+++ b/perl-Text-WagnerFischer.spec
@@ -0,0 +1,50 @@
+Name: perl-Text-WagnerFischer
+Version: 0.04
+Release: 1%{?dist}
+Summary: Implementation of the Wagner-Fischer edit distance
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Text-WagnerFischer/
+Source0: http://www.cpan.org/authors/id/D/DA/DAVIDEBE/Text-WagnerFischer-%{version...
+BuildArch: noarch
+# Build
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+# Carp is not used
+BuildRequires: perl(Exporter)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+# Tests only
+# (nothing)
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+Requires: perl(Carp)
+
+%description
+This module implements the Wagner-Fischer dynamic programming technique,
+used here to calculate the edit distance of two strings. The edit distance
+is a measure of the degree of proximity between two strings, based on
+"edits": the operations of substitutions, deletions or insertions needed to
+transform the string into the other one (and vice versa).
+
+%prep
+%setup -q -n Text-WagnerFischer-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Nov 27 2014 Petr Šabata <contyk(a)redhat.com> 0.04-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..d19d612 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7400e4a1ba13147b9bb653ac2ddbd378 Text-WagnerFischer-0.04.tar.gz
9 years, 5 months