From 66f0b66194bf97a0405aa3e5be96589db928e35d5f30fd7c6810b8bc66f69f20 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Sat, 3 Apr 2010 22:09:30 +0000 Subject: [PATCH] Accepting request 36848 from devel:languages:perl Copy from devel:languages:perl/perl-XML-LibXML based on submit request 36848 from user computersalat OBS-URL: https://build.opensuse.org/request/show/36848 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-XML-LibXML?expand=0&rev=10 --- perl-XML-LibXML.changes | 15 +++++++++++ perl-XML-LibXML.spec | 59 ++++++++++++++++++++++++----------------- 2 files changed, 50 insertions(+), 24 deletions(-) diff --git a/perl-XML-LibXML.changes b/perl-XML-LibXML.changes index 84e4d19..c8843c0 100644 --- a/perl-XML-LibXML.changes +++ b/perl-XML-LibXML.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Apr 2 21:41:26 UTC 2010 - chris@computersalat.de + +- fix build for suse_version 1110 +- spec mods + o sort TAGS + o fix deps + o update description, +Authors + o macros +- added perl-macros +- rpmlint + o fix self-obsoletion perl-XML-LibXML-Common + - Provides = version + - Obsoletes < version + ------------------------------------------------------------------- Thu Jan 14 03:11:27 UTC 2010 - jfunk@funktronics.ca diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec index 8eee652..60768b6 100644 --- a/perl-XML-LibXML.spec +++ b/perl-XML-LibXML.spec @@ -19,54 +19,65 @@ Name: perl-XML-LibXML -BuildRequires: libxml2-devel perl-XML-SAX +%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) +Summary: Perl Binding for libxml2 Version: 1.70 -Release: 2 -Requires: perl = %{perl_version} perl-XML-SAX -Provides: perl-XML-LibXML-Common -Obsoletes: perl-XML-LibXML-Common +Release: 3 AutoReqProv: on Group: Development/Libraries/Perl License: Artistic License .. -Url: http://www.cpan.org/modules/by-module/XML/ -Summary: XML::LibXML Perl Module -Source: XML-LibXML-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/XML-LibXML/ +Source: %{cpan_name}-%{version}.tar.bz2 Patch: %{name}-utf16.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +BuildRequires: libxml2-devel >= 2.6.16 +BuildRequires: perl(XML::SAX) >= 0.11 +Requires: perl = %{perl_version} +Requires: perl(XML::SAX) >= 0.11 +Provides: perl-XML-LibXML-Common = %{version} +Obsoletes: perl-XML-LibXML-Common < %{version} %description -This module implements a Perl interface to the GNOME libxml2 library. -The libxml2 library provides interfaces for parsing and manipulating -XML files. This module allows Perl programmers to make use of the -highly capable validating XML parser and the high performance DOM -implementation. +This module implements a Perl interface to the Gnome libxml2 library which +provides interfaces for parsing and manipulating XML files. This module allows +Perl programmers to make use of the highly capable validating XML parser and +the high performance DOM implementation. +Authors: + + Matt Sergeant, Christian Glahn, Petr Pajas %prep -%setup -q -n XML-LibXML-%{version} +%setup -q -n %{cpan_name}-%{version} %patch %build -perl Makefile.PL -make %{?_smp_mflags} +# [2,7,1,0], # broken release, broken utf-16 +%if 0%{?suse_version} == 1110 +%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" FORCE=1 +%else +%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" +%endif +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist %clean -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf $RPM_BUILD_ROOT -%files +%files -f %{name}.files %defattr(-,root,root) %doc Changes LICENSE README -%doc %{_mandir}/man3/* -%{perl_vendorarch}/XML -%{perl_vendorarch}/auto/XML -/var/adm/perl-modules/%{name} %changelog