From f518726fb5b4d5558a051523eb2bc7d45117313f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Wed, 9 Nov 2016 15:11:13 +0100 Subject: Import
--- .gitignore | 1 + ...Break-build-cycle-with-Module-Package-RDF.patch | 24 ++++++++ perl-HTML-HTML5-Writer.spec | 68 ++++++++++++++++++++++ sources | 1 + 4 files changed, 94 insertions(+) create mode 100644 HTML-HTML5-Writer-0.201-Break-build-cycle-with-Module-Package-RDF.patch create mode 100644 perl-HTML-HTML5-Writer.spec diff --git a/.gitignore b/.gitignore index e69de29..5999f87 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/HTML-HTML5-Writer-0.201.tar.gz diff --git a/HTML-HTML5-Writer-0.201-Break-build-cycle-with-Module-Package-RDF.patch b/HTML-HTML5-Writer-0.201-Break-build-cycle-with-Module-Package-RDF.patch new file mode 100644 index 0000000..bce308c --- /dev/null +++ b/HTML-HTML5-Writer-0.201-Break-build-cycle-with-Module-Package-RDF.patch @@ -0,0 +1,24 @@ +From 7c52b739554679c9d5770243ca0f94373e5cb33f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> +Date: Tue, 8 Nov 2016 17:29:05 +0100 +Subject: [PATCH] Break build cycle with Module-Package-RDF +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař <ppi...@redhat.com> +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index ea1da1b..b8d1399 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,2 +1,2 @@ +-use inc::Module::Package 'RDF:standard'; ++use inc::Module::Package; + +-- +2.7.4 + diff --git a/perl-HTML-HTML5-Writer.spec b/perl-HTML-HTML5-Writer.spec new file mode 100644 index 0000000..4419c93 --- /dev/null +++ b/perl-HTML-HTML5-Writer.spec @@ -0,0 +1,68 @@ +Name: perl-HTML-HTML5-Writer +Version: 0.201 +Release: 1%{?dist} +Summary: Output a DOM as HTML5 +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/HTML-HTML5-Writer/ +Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/HTML-HTML5-Writer-%{version}.tar.gz +# Break build cycle with Module-Package-RDF +Patch0: HTML-HTML5-Writer-0.201-Break-build-cycle-with-Module-Package-RDF.patch +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-generators +BuildRequires: perl(inc::Module::Package) +BuildRequires: sed +# Run-time: +BuildRequires: perl(:VERSION) >= 5.10.0 +BuildRequires: perl(base) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(HTML::HTML5::Entities) >= 0.001 +BuildRequires: perl(strict) +BuildRequires: perl(XML::LibXML) >= 1.60 +# Tests: +BuildRequires: perl(Test::More) >= 0.61 +BuildRequires: perl(utf8) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(XML::LibXML) >= 1.60 + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(XML::LibXML\\)$ + +%description +This Perl module outputs XML::LibXML::Node objects as HTML5 strings. It works +well on DOM trees that represent valid HTML/XHTML documents; less well on +other DOM trees. + +%prep +%setup -q -n HTML-HTML5-Writer-%{version} +%patch0 -p1 +# 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 -delete +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Nov 08 2016 Petr Pisar <ppi...@redhat.com> 0.201-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..2259252 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ef542e3014827b0ef05043c5ae6f9966 HTML-HTML5-Writer-0.201.tar.gz -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-HTML-HTML5-Writer.git/commit/?h=master&id=f518726fb5b4d5558a051523eb2bc7d45117313f _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org