From f049f27990fc8bb68577fa0583d71fa5f4273a98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk(a)redhat.com>
Date: Wed, 2 Sep 2015 12:32:07 +0200
Subject: Don't remove nonexistent files
- Fix the dep list
- Correct bogus dates in %changelog
- Don't convert POD to text
- Modernize the spec
diff --git a/perl-Sys-Syscall.spec b/perl-Sys-Syscall.spec
index 65a2032..67c6af4 100644
--- a/perl-Sys-Syscall.spec
+++ b/perl-Sys-Syscall.spec
@@ -1,20 +1,28 @@
Name: perl-Sys-Syscall
Version: 0.25
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Access system calls that Perl doesn't normally provide access to
License: GPL+ or Artistic
-Group: Development/Libraries
URL:
http://search.cpan.org/dist/Sys-Syscall/
Source0:
http://www.cpan.org/modules/by-module/Sys/Sys-Syscall-%{version}.tar.gz
BuildArch: noarch
-Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo
$version))
+# Build
+BuildRequires: coreutils
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
BuildRequires: perl(constant)
BuildRequires: perl(Exporter)
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(POSIX)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+# Tests only
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(Socket)
BuildRequires: perl(Test::More)
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo
$version))
%description
Use epoll, sendfile, from Perl. Mostly Linux-only support now, but more
@@ -22,28 +30,32 @@ syscalls/OSes planned for future.
%prep
%setup -q -n Sys-Syscall-%{version}
-pod2text < README.pod > README
%build
-perl Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
-rm -v %{buildroot}%{_mandir}/man3/Sys::README.3pm
-rm -v %{buildroot}%{perl_vendorlib}/Sys/README.pod
+rm -v %{buildroot}%{_mandir}/man3/Sys::README.3pm*
%check
make test
%files
-%doc CHANGES README
+%doc CHANGES CONTRIBUTING.txt README.pod
%{perl_vendorlib}/Sys
%{_mandir}/man3/Sys::Syscall.*
%changelog
+* Wed Sep 02 2015 Petr Šabata <contyk(a)redhat.com> - 0.25-9
+- Don't remove nonexistent files
+- Fix the dep list
+- Correct bogus dates in %%changelog
+- Don't convert POD to text
+- Modernize the spec
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.25-8
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
@@ -102,10 +114,11 @@ make test
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.22-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
-* Thu Feb 08 2008 Tom "spot" Callaway <tcallawa(a)redhat.com> 0.22-3
+* Fri Feb 08 2008 Tom "spot" Callaway <tcallawa(a)redhat.com> 0.22-3
- rebuild for new perl
-* Thu May 08 2007 Ruben Kerkhof <ruben(a)rubenkerkhof.com> 0.22-2
+* Wed May 09 2007 Ruben Kerkhof <ruben(a)rubenkerkhof.com> 0.22-2
+
- Test::More added to BR (#239369)
* Mon May 07 2007 Ruben Kerkhof <ruben(a)rubenkerkhof.com> 0.22-1
- Specfile autogenerated by cpanspec 1.69.1.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Sys-Syscall.git/commit/?h=master&...