From ff42b0479efb5ee00cdb23c1722712f73a99aa1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Thu, 13 Jul 2017 14:55:23 +0200 Subject: Import
--- .gitignore | 1 + ...ML-PrettyPrint-0.006-Normalize-shell-bang.patch | 26 +++++++++ perl-XML-LibXML-PrettyPrint.spec | 64 ++++++++++++++++++++++ sources | 1 + 4 files changed, 92 insertions(+) create mode 100644 XML-LibXML-PrettyPrint-0.006-Normalize-shell-bang.patch create mode 100644 perl-XML-LibXML-PrettyPrint.spec diff --git a/.gitignore b/.gitignore index e69de29..aed109c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/XML-LibXML-PrettyPrint-0.006.tar.gz diff --git a/XML-LibXML-PrettyPrint-0.006-Normalize-shell-bang.patch b/XML-LibXML-PrettyPrint-0.006-Normalize-shell-bang.patch new file mode 100644 index 0000000..f98e552 --- /dev/null +++ b/XML-LibXML-PrettyPrint-0.006-Normalize-shell-bang.patch @@ -0,0 +1,26 @@ +From 01a2555beff4303908b4f940a2054b1938b32fb1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> +Date: Wed, 12 Jul 2017 08:42:26 +0200 +Subject: [PATCH] Normalize shell bang +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař <ppi...@redhat.com> +--- + bin/xml-pretty | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bin/xml-pretty b/bin/xml-pretty +index a9fd406..d647105 100644 +--- a/bin/xml-pretty ++++ b/bin/xml-pretty +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!perl + + use XML::LibXML::PrettyPrint qw(print_xml); + print_xml <>; +-- +2.9.4 + diff --git a/perl-XML-LibXML-PrettyPrint.spec b/perl-XML-LibXML-PrettyPrint.spec new file mode 100644 index 0000000..5c2678c --- /dev/null +++ b/perl-XML-LibXML-PrettyPrint.spec @@ -0,0 +1,64 @@ +Name: perl-XML-LibXML-PrettyPrint +Version: 0.006 +Release: 1%{?dist} +Summary: Add pleasant white space to an XML tree +# CONTRIBUTING: GPL+ or Artistic or CC-BY-SA +# COPYRIGHT: Public Domain +# LICENSE: GPL1 and Artistic license text +# Other files: GPL+ or Artistic +License: (GPL+ or Artistic) and (GPL+ or Artistic or CC-BY-SA) and Public Domain +URL: http://search.cpan.org/dist/XML-LibXML-PrettyPrint/ +Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/XML-LibXML-PrettyPrint-%{version}.tar.gz +# Do not use /usr/bin/env in scripts +Patch0: XML-LibXML-PrettyPrint-0.006-Normalize-shell-bang.patch +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +# Run-time: +BuildRequires: perl(:VERSION) >= 5.8.1 +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter::Tiny) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) +BuildRequires: perl(XML::LibXML) >= 1.62 +# Tests: +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::Warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +XML::LibXML::PrettyPrint is a Perl module that can be applied to an +XML::LibXML DOM tree to reformat it into a more readable result. + +%prep +%setup -q -n XML-LibXML-PrettyPrint-%{version} +%patch0 -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes CONTRIBUTING COPYRIGHT CREDITS README +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Wed Jul 12 2017 Petr Pisar <ppi...@redhat.com> 0.006-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..713b422 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (XML-LibXML-PrettyPrint-0.006.tar.gz) = d00259555cb2cc4bef8e20216798a9f800565cc831098320ffb0b47dc7fbd84d89002ec8b9c6df3808e5c5ddf2ccb2f26a1f3839c57224bc2cccfd0725ad3fcd -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-XML-LibXML-PrettyPrint.git/commit/?h=f26&id=ff42b0479efb5ee00cdb23c1722712f73a99aa1d _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org