diff --git a/.gitignore b/.gitignore index e69de29..86d446a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/XML-SemanticDiff-[0-9.]*.tar.gz diff --git a/perl-XML-SemanticDiff.spec b/perl-XML-SemanticDiff.spec new file mode 100644 index 0000000..98b965f --- /dev/null +++ b/perl-XML-SemanticDiff.spec @@ -0,0 +1,76 @@ +Name: perl-XML-SemanticDiff +Summary: Perl extension for comparing XML documents +Version: 1.0004 +Release: 2%{?dist} +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/XML-SemanticDiff/ +Source0: http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-SemanticDiff-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +# Module Build +BuildRequires: perl +BuildRequires: perl(File::Spec) +BuildRequires: perl(lib) +BuildRequires: perl(Module::Build) +# Module Runtime +BuildRequires: perl(Digest::MD5) +BuildRequires: perl(Encode) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +BuildRequires: perl(XML::Parser) +# Test Suite +BuildRequires: perl(Test) +BuildRequires: perl(Test::More) +# Optional Tests +%if 0%{?fedora} || 0%{?rhel} > 6 +BuildRequires: perl(Test::CPAN::Changes) +%endif +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +XML::SemanticDiff provides a way to compare the contents and structure of two +XML documents. By default, it returns a list of hashrefs where each hashref +describes a single difference between the two docs. + +%prep +%setup -q -n XML-SemanticDiff-%{version} + +%build +perl Build.PL --installdirs=vendor +./Build + +%install +rm -rf %{buildroot} +./Build install --destdir=%{buildroot} --create_packlist=0 +%{_fixperms} %{buildroot} + +%check +./Build test + +%clean +rm -rf %{buildroot} + +%files +%if 0%{?_licensedir:1} +%license LICENSE +%else +%doc LICENSE +%endif +%doc Changes eg/ README +%{perl_vendorlib}/XML/ +%{_mandir}/man3/XML::SemanticDiff.3* +%{_mandir}/man3/XML::SemanticDiff::BasicHandler.3* + +%changelog +* Mon Oct 6 2014 Paul Howarth - 1.0004-2 +- Incorporate feedback from package review (#1148577) + - Fix typo in %%description + - Package eg/ as documentation + +* Wed Oct 1 2014 Paul Howarth - 1.0004-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..5b1af47 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0d13434cbc3eb2721b45c942ddb05d97 XML-SemanticDiff-1.0004.tar.gz