diff --git a/perl-XML-Validator-Schema.changes b/perl-XML-Validator-Schema.changes index 01a3332..9bf4f80 100644 --- a/perl-XML-Validator-Schema.changes +++ b/perl-XML-Validator-Schema.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Aug 23 11:26:29 UTC 2010 - chris@computersalat.de + +- recreated by cpanspec 1.78 + o cleanup spec +- fix deps + ------------------------------------------------------------------- Sat Jul 25 19:46:45 CEST 2009 - chris@computersalat.de diff --git a/perl-XML-Validator-Schema.spec b/perl-XML-Validator-Schema.spec index c5c7c64..e3714f8 100644 --- a/perl-XML-Validator-Schema.spec +++ b/perl-XML-Validator-Schema.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-XML-Validator-Schema -# -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# spec file for package perl-XML-Validator-Schema (Version 1.10) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,76 +17,84 @@ # norootforbuild -#Distribution: %dist -#Packager: %packager -#Vendor: %vendor +%bcond_with opt Name: perl-XML-Validator-Schema -%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) +%define cpan_name XML-Validator-Schema Summary: Validate XML against a subset of W3C XML Schema Version: 1.10 Release: 1 -License: Artistic License +License: CHECK(GPL+ or Artistic) Group: Development/Libraries/Perl -Url: http://www.cpan.org -Source0: %{cpan_name}-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/XML-Validator-Schema/ +#Source: http://www.cpan.org/modules/by-module/XML/XML-Validator-Schema-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl +%if 0%{?suse_version} < 1120 BuildRequires: perl-macros -#BuildRequires: perl(Module::Build) +%endif +%if %{with opt} +BuildRequires: perl(XML::SAX::ExpatXS) >= 1.00 +BuildRequires: perl(XML::SAX::Writer) +%endif +BuildRequires: perl(Carp) BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(Tree::DAG_Node) -BuildRequires: perl(XML::SAX) >= 0.12 -BuildRequires: perl(XML::SAX::Writer) >= 0.44 -BuildRequires: perl(XML::SAX::ExpatXS) >= 1.00 -BuildRequires: perl(Carp) BuildRequires: perl(XML::Filter::BufferText) -BuildRequires: perl(XML::Filter::ExceptionLocator) -Requires: perl = %{perl_version} -Requires: perl(Carp) -Requires: perl(Tree::DAG_Node) -Requires: perl(XML::Filter::BufferText) -Requires: perl(XML::SAX) >= 0.12 -Requires: perl(XML::SAX::Writer) >= 0.44 -Requires: perl(XML::SAX::ExpatXS) >= 1.00 -Requires: perl(XML::Filter::BufferText) -Requires: perl(XML::Filter::ExceptionLocator) +BuildRequires: perl(XML::SAX) >= 0.12 +%if %{with opt} +BuildRequires: perl(XML::SAX::Writer) +%endif +# +Requires: perl = %{perl_version} +Requires: perl(Carp) +Requires: perl(Tree::DAG_Node) +Requires: perl(XML::Filter::BufferText) +Requires: perl(XML::SAX) >= 0.12 +Recommends: perl(XML::Filter::ExceptionLocator) %description - This module allows you to validate XML documents against a W3C XML - Schema. This module does not implement the full W3C XML Schema - recommendation (http://www.w3.org/XML/Schema), but a useful subset. See - the SCHEMA SUPPORT section in the module documention. +This module allows you to validate XML documents against a W3C XML +Schema. This module does not implement the full W3C XML Schema +recommendation (http://www.w3.org/XML/Schema), but a useful subset. See +the SCHEMA SUPPORT section in the module documention. - IMPORTANT NOTE: To get line and column numbers in the error - messages generated by this module you must install - XML::Filter::ExceptionLocator and use XML::SAX::ExpatXS as your - SAX parser. This module is much more useful if you can tell where - your errors are, so using these modules is highly recommeded! +IMPORTANT NOTE: To get line and column numbers in the error +messages generated by this module you must install +XML::Filter::ExceptionLocator and use XML::SAX::ExpatXS as your +SAX parser. This module is much more useful if you can tell where +your errors are, so using these modules is highly recommeded! + +Authors: +-------- + Sam Tregar - Author: Sam Tregar %prep %setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -%{__make} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install -%perl_process_packlist +# do not perl_process_packlist (noarch) +# remove .packlist file +%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch +# remove perllocal.pod file +%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib %perl_gen_filelist %clean %{__rm} -rf $RPM_BUILD_ROOT %files -f %{name}.files -# normally you only need to check for doc files -%defattr(-,root,root) +%defattr(-,root,root,-) %doc ANNOUNCE Changes README TODO %changelog -