add packaging
authorAnas Nashif <anas.nashif@intel.com>
Fri, 28 Dec 2012 03:04:28 +0000 (19:04 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Fri, 28 Dec 2012 03:04:28 +0000 (19:04 -0800)
packaging/XML-Simple-2.18-test.diff [new file with mode: 0644]
packaging/perl-XML-Simple.spec [new file with mode: 0644]

diff --git a/packaging/XML-Simple-2.18-test.diff b/packaging/XML-Simple-2.18-test.diff
new file mode 100644 (file)
index 0000000..6c80e84
--- /dev/null
@@ -0,0 +1,14 @@
+--- t/2_XMLout.t
++++ t/2_XMLout.t
+@@ -348,6 +348,11 @@
+     \s*<b\s+alpha="1"\s*/>
+   ){2}
+ \s*</opt>
++|
++<opt>
++  \s*<b\s+alpha="1"\s*/>
++  \s*<a\s+alpha="1"\s*/>
++\s*</opt>
+ }xs, 'and encodes as expected');
diff --git a/packaging/perl-XML-Simple.spec b/packaging/perl-XML-Simple.spec
new file mode 100644 (file)
index 0000000..3b2ec30
--- /dev/null
@@ -0,0 +1,43 @@
+#
+
+Name:           perl-XML-Simple
+Version:        2.18
+Release:        0
+License:        Artistic-1.0
+Summary:        Easy API to read/write XML (Perl module)
+Url:            http://cpan.org/modules/by-module/XML/
+Group:          Development/Libraries/Perl
+Source:         http://www.cpan.org/authors/id/G/GR/GRANTM/XML-Simple-%{version}.tar.gz
+Patch0:         XML-Simple-%{version}-test.diff
+BuildRequires:  perl-XML-Parser
+BuildRequires:  perl-macros
+Requires:       perl-XML-Parser
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%{perl_requires}
+
+%description
+XML::Simple - Easy API to read/write XML (esp config files)
+
+%prep
+%setup -q -n XML-Simple-%{version}
+%patch0
+
+%build
+perl Makefile.PL
+make
+
+%check
+make test
+
+%install
+%perl_make_install
+%perl_process_packlist
+
+%files
+%defattr(-,root,root)
+%doc README
+%doc %{_mandir}/man?/*
+%{perl_vendorlib}/XML
+%{perl_vendorarch}/auto/XML
+
+%changelog