Projects
Eulaceura:Factory
perl-XML-Merge
_service:obs_scm:perl-XML-Merge.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-XML-Merge.spec of Package perl-XML-Merge
Name: perl-XML-Merge Version: 1.4 Release: 1 Summary: Flexibly merge XML documents License: GPLv3 URL: https://metacpan.org/release/XML-Merge Source0: https://cpan.metacpan.org/authors/id/P/PI/PIP/XML-Merge-%{version}.tgz Patch1: perl-XML-Merge-1.4-makefile.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) # Run-time: BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: perl(XML::Tidy) # Tests: BuildRequires: perl(Test) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(XML::XPath) 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 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 %files %doc README %license LICENSE %{perl_vendorlib}/* %{_mandir}/man3/XML::Merge.3pm.gz %changelog * Thu Apr 21 2022 liweiganga <liweiganga@uniontech.com> - 1.4-1 - init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2