[perl-XML-Hash-LX] Import
Petr Pisar
ppisar at fedoraproject.org
Wed Mar 20 10:14:11 UTC 2013
commit dfa7f28df48eb36953cd0c5bd1ed0c9ed89a68af
Author: Petr Písař <ppisar at redhat.com>
Date: Wed Mar 20 11:13:32 2013 +0100
Import
.gitignore | 1 +
perl-XML-Hash-LX.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..905db86 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XML-Hash-LX-0.0603.tar.gz
diff --git a/perl-XML-Hash-LX.spec b/perl-XML-Hash-LX.spec
new file mode 100644
index 0000000..9843be8
--- /dev/null
+++ b/perl-XML-Hash-LX.spec
@@ -0,0 +1,61 @@
+%global cpan_version 0.0603
+Name: perl-XML-Hash-LX
+# use 2-digits version because it is expected in the future
+Version: %(echo '%{cpan_version}' | sed 's/\(\...\)\(.\)/\1.\2/')
+Release: 1%{?dist}
+Summary: Convert hash to XML and XML to hash using LibXML
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/XML-Hash-LX/
+Source0: http://www.cpan.org/authors/id/M/MO/MONS/XML-Hash-LX-%{cpan_version}.tar.gz
+BuildArch: noarch
+BuildRequires: perl
+BuildRequires: perl(inc::Module::Install) >= 0.79
+BuildRequires: perl(Module::Install::AutoInstall)
+# Run-time:
+BuildRequires: perl(Carp)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+BuildRequires: perl(XML::LibXML)
+# Tests:
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(lib::abs) >= 0.90
+BuildRequires: perl(Test::More)
+# Optional tests:
+BuildRequires: perl(Test::NoWarnings)
+BuildRequires: perl(Test::Pod) >= 1.22
+BuildRequires: perl(Test::Pod::Coverage) >= 1.08
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(Carp)
+
+%description
+This module is a companion for XML::LibXML. It operates with LibXML
+objects, could return or accept LibXML objects, and may be used for
+easy data transformations.
+
+%prep
+%setup -q -n XML-Hash-LX-%{cpan_version}
+# Remove bundled modules
+rm -rf ./inc/*
+sed -i -e '/^inc\//d' MANIFEST
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes ex LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Wed Mar 06 2013 Petr Pisar <ppisar at redhat.com> 0.06.03-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..f9b1556 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+43103ac528427f1cf7212ad5412ade2d XML-Hash-LX-0.0603.tar.gz
More information about the scm-commits
mailing list