From b0cf162d02e761943e7e50b8f2f2dead69e6cb88 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 8 Mar 2018 12:47:08 +0000 Subject: [PATCH] - revert epoch, instead do what other distros do - package as version 4.40 - fix perl path in treescan --- IO-AIO-path.patch | 9 +++++++++ IO-AIO-version.patch | 45 ++++++++++++++++++++++++++++++++++++++++++++ perl-IO-AIO.spec | 12 ++++++++---- 3 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 IO-AIO-path.patch create mode 100644 IO-AIO-version.patch diff --git a/IO-AIO-path.patch b/IO-AIO-path.patch new file mode 100644 index 0000000..dc8be08 --- /dev/null +++ b/IO-AIO-path.patch @@ -0,0 +1,9 @@ +diff -ur IO-AIO-4.4.orig/bin/treescan IO-AIO-4.4/bin/treescan +--- IO-AIO-4.4.orig/bin/treescan 2017-12-18 12:58:00.000000000 +0000 ++++ IO-AIO-4.4/bin/treescan 2018-03-08 12:44:41.045764429 +0000 +@@ -1,4 +1,4 @@ +-#!/opt/bin/perl ++#!/usr/bin/perl + + # inspired by treescan by Jamie Lokier + # about 40% faster than the original version (on my fs and raid :) diff --git a/IO-AIO-version.patch b/IO-AIO-version.patch new file mode 100644 index 0000000..7aa86ff --- /dev/null +++ b/IO-AIO-version.patch @@ -0,0 +1,45 @@ +diff -ur IO-AIO-4.4.orig/AIO.pm IO-AIO-4.4/AIO.pm +--- IO-AIO-4.4.orig/AIO.pm 2018-02-20 05:44:15.000000000 +0000 ++++ IO-AIO-4.4/AIO.pm 2018-03-08 12:43:23.252765304 +0000 +@@ -173,7 +173,7 @@ + use base 'Exporter'; + + BEGIN { +- our $VERSION = 4.4; ++ our $VERSION = 4.40; + + our @AIO_REQ = qw(aio_sendfile aio_seek aio_read aio_write aio_open aio_close + aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx +diff -ur IO-AIO-4.4.orig/Changes IO-AIO-4.4/Changes +--- IO-AIO-4.4.orig/Changes 2018-02-20 06:54:29.000000000 +0000 ++++ IO-AIO-4.4/Changes 2018-03-08 12:43:12.604765424 +0000 +@@ -34,7 +34,7 @@ + TODO: define useful rules for [[$wd, $path], $path] &c and implement them + TODO: https://github.com/coreutils/coreutils/blob/master/src/stat.c maybe IO::AIO::FSID + +-4.4 Tue Feb 20 07:54:12 CET 2018 ++4.40 Tue Feb 20 07:54:12 CET 2018 + - new aio_slurp request. + - add (experimental) IO::AIO::eventfd and timerfd* function. + - add (experimental) IO::AIO::get_fdlimit and IO::AIO::min_fdlimit. +diff -ur IO-AIO-4.4.orig/META.json IO-AIO-4.4/META.json +--- IO-AIO-4.4.orig/META.json 2018-02-20 06:54:40.000000000 +0000 ++++ IO-AIO-4.4/META.json 2018-03-08 12:43:18.204765361 +0000 +@@ -38,6 +38,6 @@ + } + }, + "release_status" : "stable", +- "version" : 4.4, ++ "version" : 4.40, + "x_serialization_backend" : "JSON::PP version 2.27300" + } +diff -ur IO-AIO-4.4.orig/META.yml IO-AIO-4.4/META.yml +--- IO-AIO-4.4.orig/META.yml 2018-02-20 06:54:40.000000000 +0000 ++++ IO-AIO-4.4/META.yml 2018-03-08 12:43:03.260765530 +0000 +@@ -20,5 +20,5 @@ + - inc + requires: + common::sense: '0' +-version: 4.4 ++version: 4.40 + x_serialization_backend: 'CPAN::Meta::YAML version 0.012' diff --git a/perl-IO-AIO.spec b/perl-IO-AIO.spec index 0f111f5..3af1fdb 100644 --- a/perl-IO-AIO.spec +++ b/perl-IO-AIO.spec @@ -5,16 +5,18 @@ %include /usr/lib/rpm/macros.perl %define pdir IO %define pnam AIO +%define dist_ver 4.4 Summary: IO::AIO - Perl Asynchronous Input/Output Summary(pl.UTF-8): IO::AIO - asynchroniczne wejście/wyjście w Perlu Name: perl-IO-AIO -Version: 4.4 +Version: 4.40 Release: 1 -Epoch: 1 License: GPL v1+ or Artistic Group: Development/Languages/Perl -Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz +Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{dist_ver}.tar.gz # Source0-md5: 74d97a2a5162bbac5af79fa33f88c9d1 +Patch0: %{pdir}-%{pnam}-path.patch +Patch1: %{pdir}-%{pnam}-version.patch URL: http://search.cpan.org/dist/IO-AIO/ BuildRequires: perl-devel >= 1:5.8.2 BuildRequires: rpm-perlprov >= 4.1-13 @@ -32,7 +34,9 @@ Ten moduł implementuje asynchroniczne we/wy przy użyciu dowolnych metod obsługiwanych przez system operacyjny. %prep -%setup -q -n %{pdir}-%{pnam}-%{version} +%setup -q -n %{pdir}-%{pnam}-%{dist_ver} +%patch0 -p1 +%patch1 -p1 %build PERL_CANARY_STABILITY_NOPROMPT=1 \ -- 2.43.0