Package examples as a documentation

This commit is contained in:
Petr Písař 2019-05-07 10:26:14 +02:00
parent 69b704058c
commit 616b0e698b
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 6b042eb2188528afa0b9c4eb490973430c802344 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 7 May 2019 10:30:00 +0200
Subject: [PATCH] Normalize shebangs in examples
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
examples/handler-order.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/handler-order.pl b/examples/handler-order.pl
index 813fac7..fb49424 100755
--- a/examples/handler-order.pl
+++ b/examples/handler-order.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
use strict;
use warnings;
--
2.20.1

View File

@ -8,6 +8,8 @@ Summary: A Perl interface to the World-Wide Web
License: GPL+ or Artistic
URL: https://metacpan.org/release/libwww-perl
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/libwww-perl-%{version}.tar.gz
# Normalize shelbangs, not suitable for an upstream
Patch0: libwww-perl-6.39-Normalize-shebangs-in-examples.patch
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators
@ -131,6 +133,7 @@ use and even classes that help you implement simple HTTP servers.
%prep
%setup -q -n libwww-perl-%{version}
%patch0 -p1
%build
# Install the aliases by default
@ -147,7 +150,7 @@ make test
%files
%license LICENSE
%doc Changes README.SSL
%doc Changes examples README.SSL
%{_bindir}/*
%{perl_vendorlib}/libwww/
%{perl_vendorlib}/LWP.pm