6018739
Name:           perl-SVG
3b74388
Version:        2.49
fc30c20
Release:        5%{?dist}
6018739
Summary:        An extension to generate stand-alone or inline SGV
6018739
Group:          Development/Libraries
5f7eb55
License:        GPL+ or Artistic
6018739
URL:            http://search.cpan.org/dist/SVG/
6018739
Source0:        http://www.cpan.org/authors/id/R/RO/RONAN/SVG-%{version}.tar.gz
6018739
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6018739
6018739
BuildArch:      noarch
67fac97
BuildRequires:  perl(ExtUtils::MakeMaker)
e9aeeb5
BuildRequires:  perl(Test::More)
6018739
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
6018739
6018739
%description
6018739
SVG.pm is a Perl extension to generate stand-alone or inline SVG
6018739
(scaleable vector graphics) images using the W3C SVG XML recommendation
6018739
6018739
%prep
6018739
%setup -q -n SVG-%{version}
6018739
6018739
# avoid extra dependencies
6018739
chmod 644 examples/*
6018739
6018739
# Fix line-endings
6018739
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
6018739
    %{__sed} -i 's/\r//' examples/$i
6018739
done
6018739
6018739
# Filter extra non-explicit version provides (SVG::Element)
6018739
cat << \EOF > %{_builddir}/SVG-%{version}/%{name}-prov
6018739
#!/bin/sh
6018739
%{__perl_provides} $* |\
6018739
  sed -e '/perl(SVG::Element)$/d'
6018739
EOF
6018739
6018739
%define __perl_provides %{_builddir}/SVG-%{version}/%{name}-prov
6018739
chmod +x %{__perl_provides}
6018739
6018739
%build
6018739
%{__perl} Makefile.PL INSTALLDIRS=vendor
6018739
make %{?_smp_mflags}
6018739
# make sure the man page is UTF-8...
6018739
cd blib/man3
6018739
for i in Element.3pm Manual.3pm ; do
6018739
    iconv --from=ISO-8859-1 --to=UTF-8 SVG::$i > new
6018739
    mv new SVG::$i
6018739
done
6018739
6018739
%install
6018739
rm -rf $RPM_BUILD_ROOT
6018739
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
6018739
find $RPM_BUILD_ROOT -type f -a \( -name .packlist \
6018739
  -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
6018739
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
6018739
6018739
e9aeeb5
%check
6018739
make test
6018739
6018739
6018739
%clean
6018739
rm -rf $RPM_BUILD_ROOT
6018739
6018739
6018739
%files
6018739
%defattr(-,root,root,-)
6018739
%doc README Changes examples
6018739
%{perl_vendorlib}/*
6018739
%{_mandir}/man3/*.3*
6018739
6018739
6018739
%changelog
fc30c20
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.49-5
fc30c20
- Mass rebuild with perl-5.12.0
fc30c20
efb640a
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 2.49-4
efb640a
- rebuild against perl 5.10.1
efb640a
5841f82
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.49-3
5841f82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5841f82
28d915c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.49-2
28d915c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
28d915c
3b74388
* Mon Feb  2 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 2.49-1
3b74388
- Update to upstream 2.49
3b74388
e9aeeb5
* Tue Jun  3 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2.44-1
e9aeeb5
- Update to latest upstream (2.44)
e9aeeb5
- Fix spec file syntax (#449663)
e9aeeb5
- Add BR: perl(Test::More)
e9aeeb5
42f40c4
* Tue Mar 18 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2.37-1
42f40c4
- New upstream release (2.37)
42f40c4
0ef69b9
* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.36-3
0ef69b9
- rebuild for new perl
0ef69b9
67fac97
* Sat Oct 13 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.36-2
67fac97
- Add missing BR: perl(ExtUtils::MakeMaker)
67fac97
b9b2227
* Sat Oct 13 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.36-1
b9b2227
- Update to 2.36
b9b2227
5f7eb55
* Thu Aug 23 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.34-2
5f7eb55
- License tag to GPL+ or Artistic as per new guidelines.
5f7eb55
ead6772
* Sat Aug 18 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.34-1
ead6772
- Update to latest upstream
ead6772
6018739
* Wed Mar 23 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.33-2
6018739
- Filter extra non-explicit (SVG::Element) provides
6018739
6018739
* Wed Mar 14 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.33-1
6018739
- Update to 2.33
6018739
- Fix rpmlint issues
6018739
6018739
* Wed Apr 06 2005 Hunter Matthews <thm@duke.edu> 2.32-2
6018739
- Review suggestions from José Pedro Oliveira
6018739
6018739
* Fri Mar 18 2005 Hunter Matthews <thm@duke.edu> 2.32-1
6018739
- Initial packaging.