diff --git a/perl-YAML.spec b/perl-YAML.spec index bfb782e..e4d0269 100644 --- a/perl-YAML.spec +++ b/perl-YAML.spec @@ -1,6 +1,6 @@ Name: perl-YAML Version: 0.95 -Release: 1%{?dist} +Release: 2%{?dist} Summary: YAML Ain't Markup Language (tm) License: GPL+ or Artistic Group: Development/Libraries @@ -41,6 +41,10 @@ specification. %prep %setup -q -n YAML-%{version} +# Inject VERSION into each module, bug #1115971, +# https://github.com/ingydotnet/yaml-pm/issues/30 +find lib -name '*.pm' \! -exec grep -q '^our $VERSION ' {} \; -print0 | \ + xargs -0 -- sed -i -e '/^package /a\our $VERSION = %{version};' %build perl Makefile.PL INSTALLDIRS=vendor @@ -102,6 +106,9 @@ make test RELEASE_TESTING=0%{!?perl_bootstrap:1} %{_mandir}/man3/YAML::Types.3pm* %changelog +* Thu Jul 03 2014 Petr Pisar - 0.95-2 +- Inject VERSION into each module (bug #1115971) + * Mon Jun 23 2014 Paul Howarth - 0.95-1 - Update to 0.95 - Fix dumping blessed globs