rpms/perl-XML-Merge/F-8 perl-XML-Merge-makefile.patch, NONE, 1.1 perl-XML-Merge.spec, NONE, 1.1 sources, 1.1, 1.2

Xavier Bachelot (xavierb) fedora-extras-commits at redhat.com
Wed Jan 2 12:59:22 UTC 2008


Author: xavierb

Update of /cvs/pkgs/rpms/perl-XML-Merge/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20475/F-8

Modified Files:
	sources 
Added Files:
	perl-XML-Merge-makefile.patch perl-XML-Merge.spec 
Log Message:
Import into F-8 branch.


perl-XML-Merge-makefile.patch:

--- NEW FILE perl-XML-Merge-makefile.patch ---
--- Makefile.PL.orig	2007-08-30 16:42:30.000000000 +0200
+++ Makefile.PL	2007-08-30 16:43:32.000000000 +0200
@@ -8,8 +8,9 @@
     'AUTHOR'       => 'Pip Stuart <Pip at CPAN.Org>',
     'EXE_FILES'    => [ 
                       ],
+    'PL_FILES'     => {},
     'PREREQ_PM'    => {
       'XML::Tidy'                      => 0,
     }, # Module::Name => 1.1,
     'dist'         => { 'COMPRESS' => 'gzip', 'SUFFIX' => 'tgz' },
-  );
\ No newline at end of file
+  );


--- NEW FILE perl-XML-Merge.spec ---
Name:           perl-XML-Merge 
Version:        1.2.565EgGd
Release:        2%{?dist}
Summary:        Flexibly merge XML documents

Group:          Development/Libraries
License:        GPLv2
URL:            http://search.cpan.org/dist/XML-Merge/
Source0:        http://search.cpan.org/CPAN/authors/id/P/PI/PIP/XML-Merge-%{version}.tgz
Patch1:         perl-XML-Merge-makefile.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch 
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(XML::Tidy)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This module inherits from XML::Tidy which in turn inherits from XML::XPath.
This ensures that Merge objects' indenting can be tidied up after any merge
operation since such modification usually spells the ruination of indentation.
Polymorphism allows Merge objects to be utilized as normal XML::XPath objects
as well.
The merging behavior is setup to combine separate XML documents according to
certain rules and configurable options. If both documents have root nodes which
are elements of the same name, the documents are merged directly. Otherwise,
one is merged as a child of the other. An optional XPath location can be
specified as the place to perform the merge. If no location is specified, the
merge is attempted at the first matching element or is appended as the new last
child of the other root if no match is found.


%prep
%setup -q -n XML-Merge-%{version}
%patch1 -p0


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README
%{perl_vendorlib}/*
%{_mandir}/man3/XML::Merge.3pm.gz


%changelog
* Sat Dec 22 2007 Xavier Bachelot <xavier at bachelot.org> - 1.2.565EgGd-2
- Clean up spec.

* Thu Aug 30 2007 Xavier Bachelot <xavier at bachelot.org> - 1.2.565EgGd-1
- Initial build.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-XML-Merge/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	29 Dec 2007 21:17:11 -0000	1.1
+++ sources	2 Jan 2008 12:58:49 -0000	1.2
@@ -0,0 +1 @@
+bab8d2a11865ee20b2702b0378a53339  XML-Merge-1.2.565EgGd.tgz




More information about the fedora-extras-commits mailing list