diff --git a/.cvsignore b/.cvsignore index e69de29..af863ea 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +XML-SAX-Writer-0.50.tar.gz diff --git a/perl-XML-SAX-Writer.spec b/perl-XML-SAX-Writer.spec new file mode 100644 index 0000000..a4198bc --- /dev/null +++ b/perl-XML-SAX-Writer.spec @@ -0,0 +1,63 @@ +Name: perl-XML-SAX-Writer +Version: 0.50 +Release: 2%{?dist} +Summary: SAX2 Writer +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/XML-SAX-Writer/ +Source0: http://www.cpan.org/modules/by-module/XML/XML-SAX-Writer-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Text::Iconv) >= 1.2 +BuildRequires: perl(XML::Filter::BufferText) >= 1.00 +BuildRequires: perl(XML::NamespaceSupport) >= 1.00 +BuildRequires: perl(XML::SAX::Exception) >= 1.01 +BuildRequires: /usr/bin/iconv +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +A new XML Writer to match the SAX2 effort. + +%prep +%setup -q -n XML-SAX-Writer-%{version} +chmod 644 Changes README Writer.pm lib/XML/SAX/Writer/XML.pm + +# Fix UTF-8 +iconv -f ISO_8859-1 -t UTF-8 -o tmp.man Writer.pm && +mv -f tmp.man Writer.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 0.50-2 +- Removed hardcoded Reqs in favour of autoreqs +- Better conversion to utf-8 + +* Thu Mar 15 2007 Andreas Thienemann 0.50-1 +- Specfile autogenerated by cpanspec 1.69.1. +- Cleaned up for FE diff --git a/sources b/sources index e69de29..6d3ff93 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bf26550e84903ef36af0feb07d721d4e XML-SAX-Writer-0.50.tar.gz