commit 4c02cd7b6579f6519b70046a899cc672b47be04f Author: Petr Písař <ppi...@redhat.com> Date: Tue Nov 22 09:53:34 2011 +0100
Import .gitignore | 1 + perl-XML-DifferenceMarkup.spec | 53 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 55 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..432cee3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/XML-DifferenceMarkup-1.04.tar.gz diff --git a/perl-XML-DifferenceMarkup.spec b/perl-XML-DifferenceMarkup.spec new file mode 100644 index 0000000..81c8d27 --- /dev/null +++ b/perl-XML-DifferenceMarkup.spec @@ -0,0 +1,53 @@ +Name: perl-XML-DifferenceMarkup +Version: 1.04 +Release: 1%{?dist} +Summary: XML diff and merge +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/XML-DifferenceMarkup/ +Source0: http://www.cpan.org/authors/id/V/VB/VBAR/XML-DifferenceMarkup-%{version}.tar.gz +BuildRequires: diffmark-devel +BuildRequires: libxml2-devel +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(XML::LibXML) >= 1.70 +BuildRequires: perl(XSLoader) +# Tests only: +BuildRequires: perl(Test) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(XML::LibXML) >= 1.70 + +%{?perl_default_filter} + +%description +This module implements an XML diff producing XML output. Both input and +output are DOM documents, as implemented by XML::LibXML. + +%prep +%setup -q -n XML-DifferenceMarkup-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +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 -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/XML* +%{_mandir}/man3/* + +%changelog +* Fri Nov 18 2011 Petr Pisar <ppi...@redhat.com> 1.04-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot and defattr from spec code diff --git a/sources b/sources index e69de29..139e2eb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d753b39fec3c8da3917c35c40d101fef XML-DifferenceMarkup-1.04.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-de...@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel