From ad9d7b8d0d066c8a4820e3cb67e9378a4d053541 Mon Sep 17 00:00:00 2001 From: Andreas Thienemann Date: Mar 22 2007 10:02:02 +0000 Subject: auto-import perl-XML-Filter-BufferText-1.01-2 on branch devel from perl-XML-Filter-BufferText-1.01-2.src.rpm --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e1c11c4 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: perl-XML-Filter-BufferText +# $Id$ +NAME := perl-XML-Filter-BufferText +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-XML-Filter-BufferText.spec b/perl-XML-Filter-BufferText.spec new file mode 100644 index 0000000..0d84c85 --- /dev/null +++ b/perl-XML-Filter-BufferText.spec @@ -0,0 +1,58 @@ +Name: perl-XML-Filter-BufferText +Version: 1.01 +Release: 2%{?dist} +Summary: Filter to put all characters() in one event +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/XML-Filter-BufferText/ +Source0: http://www.cpan.org/modules/by-module/XML/XML-Filter-BufferText-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(XML::SAX::Base) +BuildRequires: perl(XML::SAX::Base), perl(ExtUtils::MakeMaker) + +%description +This is a very simple filter. One common cause of grief (and programmer +error) is that XML parsers aren't required to provide character events in +one chunk. They can, but are not forced to, and most don't. This filter +does the trivial but oft-repeated task of putting all characters into a +single event. + +%prep +%setup -q -n XML-Filter-BufferText-%{version} +chmod 644 Changes README BufferText.pm + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Mar 17 2007 Andreas Thienemann 1.01-2 +- Fixed dependencies + +* Thu Mar 15 2007 Andreas Thienemann 1.01-1 +- Specfile autogenerated by cpanspec 1.69.1. +- Cleaned up for FE diff --git a/sources b/sources new file mode 100644 index 0000000..7bf692a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +2992c0387632583b966ab9c965b25512 XML-Filter-BufferText-1.01.tar.gz