From 9313fddb3284845cabebc68046a79db3c7b2a06a Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik(a)redhat.com>
Date: Wed, 16 Sep 2015 14:18:11 +0200
Subject: 2.64 bump; Modernize spec
diff --git a/.gitignore b/.gitignore
index 100fc51..d6f9bfa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
SVG-2.49.tar.gz
+/SVG-2.64.tar.gz
diff --git a/perl-SVG.spec b/perl-SVG.spec
index 2da00c8..9acf956 100644
--- a/perl-SVG.spec
+++ b/perl-SVG.spec
@@ -1,17 +1,29 @@
Name: perl-SVG
-Version: 2.49
-Release: 18%{?dist}
+Version: 2.64
+Release: 1%{?dist}
Summary: An extension to generate stand-alone or inline SGV
Group: Development/Libraries
License: GPL+ or Artistic
URL:
http://search.cpan.org/dist/SVG/
-Source0:
http://www.cpan.org/authors/id/R/RO/RONAN/SVG-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:
http://www.cpan.org/authors/id/S/SZ/SZABGAB/SVG-%{version}.tar.gz
BuildArch: noarch
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl(constant)
+BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(parent)
+BuildRequires: perl(Scalar::Util)
+BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
+BuildRequires: perl(warnings)
+BuildRequires: sed
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
+
+%global __provides_exclude
%{?__provides_exclude:%__provides_exclude|}^perl\\(SVG::Element\\)$
%description
SVG.pm is a Perl extension to generate stand-alone or inline SVG
@@ -24,54 +36,35 @@ SVG.pm is a Perl extension to generate stand-alone or inline SVG
chmod 644 examples/*
# Fix line-endings
-for i in minsvg.pl SVG_02_sample.pl svgtest2.pl sun_text_sample.pl starpath.cgi
image_sample.pl inlinesvg.pl yaph5.cgi inline_sample.pl svg.pl; do
- %{__sed} -i 's/\r//' examples/$i
+for i in SVG_02_sample.pl image_sample.pl inline_sample.pl inlinesvg.pl starpath.cgi
sun_text_sample.pl svgtest2.pl ; do
+ sed -i 's/\r//' examples/$i
done
-# Filter extra non-explicit version provides (SVG::Element)
-cat << \EOF > %{_builddir}/SVG-%{version}/%{name}-prov
-#!/bin/sh
-%{__perl_provides} $* |\
- sed -e '/perl(SVG::Element)$/d'
-EOF
-
-%define __perl_provides %{_builddir}/SVG-%{version}/%{name}-prov
-chmod +x %{__perl_provides}
-
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
-# make sure the man page is UTF-8...
-cd blib/man3
-for i in Element.3pm Manual.3pm ; do
- iconv --from=ISO-8859-1 --to=UTF-8 SVG::$i > new
- mv new SVG::$i
-done
%install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -a \( -name .packlist \
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-
%check
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%files
-%defattr(-,root,root,-)
+%license LICENSE
%doc README Changes examples
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
+* Wed Sep 16 2015 Jitka Plesnikova <jplesnik(a)redhat.com> - 2.64-1
+- 2.64 bump
+- Modernize spec
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
2.49-18
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
@@ -149,7 +142,7 @@ rm -rf $RPM_BUILD_ROOT
* Sat Aug 18 2007 Alex Lancaster <alexl(a)users.sourceforge.net> 2.34-1
- Update to latest upstream
-* Wed Mar 23 2007 Alex Lancaster <alexl(a)users.sourceforge.net> 2.33-2
+* Fri Mar 23 2007 Alex Lancaster <alexl(a)users.sourceforge.net> 2.33-2
- Filter extra non-explicit (SVG::Element) provides
* Wed Mar 14 2007 Alex Lancaster <alexl(a)users.sourceforge.net> 2.33-1
diff --git a/sources b/sources
index 61baecc..3614ffd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cd83d8ff1ef6dffdb8f60cff6d9a0278 SVG-2.49.tar.gz
+ba4445ee72e2f3c29da332cb0119a2ad SVG-2.64.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-SVG.git/commit/?h=master&id=9...