From 6018739b9bcbf6d03cc1c0170ab179770a6cee82 Mon Sep 17 00:00:00 2001 From: alexlan Date: Mar 23 2007 21:42:13 +0000 Subject: auto-import perl-SVG-2.33-2 on branch devel from perl-SVG-2.33-2.src.rpm --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b19c9e4 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: perl-SVG +# $Id$ +NAME := perl-SVG +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/perl-SVG.spec b/perl-SVG.spec new file mode 100644 index 0000000..59db091 --- /dev/null +++ b/perl-SVG.spec @@ -0,0 +1,84 @@ +Name: perl-SVG +Version: 2.33 +Release: 2%{?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) + +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +SVG.pm is a Perl extension to generate stand-alone or inline SVG +(scaleable vector graphics) images using the W3C SVG XML recommendation + +%prep +%setup -q -n SVG-%{version} + +# avoid extra dependencies +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 +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 +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,-) +%doc README Changes examples +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + + +%changelog +* Wed Mar 23 2007 Alex Lancaster 2.33-2 +- Filter extra non-explicit (SVG::Element) provides + +* Wed Mar 14 2007 Alex Lancaster 2.33-1 +- Update to 2.33 +- Fix rpmlint issues + +* Wed Apr 06 2005 Hunter Matthews 2.32-2 +- Review suggestions from José Pedro Oliveira + +* Fri Mar 18 2005 Hunter Matthews 2.32-1 +- Initial packaging. diff --git a/sources b/sources new file mode 100644 index 0000000..ee308ed --- /dev/null +++ b/sources @@ -0,0 +1 @@ +80aff1f4d107bf56696653895e5eed81 SVG-2.33.tar.gz