From 614500a2fc9eefd19c30ea1beb3bc7bbef0c3d3c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Thu, 28 Jan 2016 17:49:18 +0100
Subject: Package cleanup

- Don't ship the KQueue watcher
---
 perl-File-ChangeNotify.spec | 75 ++++++++++++++++++++-------------------------
 1 file changed, 33 insertions(+), 42 deletions(-)

diff --git a/perl-File-ChangeNotify.spec b/perl-File-ChangeNotify.spec
index d2d8b57..609b1d7 100644
--- a/perl-File-ChangeNotify.spec
+++ b/perl-File-ChangeNotify.spec
@@ -1,55 +1,48 @@
 Name:           perl-File-ChangeNotify
 Summary:        Watch for changes to files, cross-platform style
 Version:        0.24
-Release:        5%{?dist}
+Release:        6%{?dist}
 License:        Artistic 2.0
-Group:          Development/Libraries
 Source0:        
http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/File-ChangeNotify-%{version}.tar.gz
 
 URL:            http://search.cpan.org/dist/File-ChangeNotify
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 BuildArch:      noarch
-
+# Build
+BuildRequires:  perl
+BuildRequires:  perl(Module::Build) >= 0.37
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Runtime
 BuildRequires:  perl(Carp)
-BuildRequires:  perl(Class::MOP)
+BuildRequires:  perl(Class::Load)
 BuildRequires:  perl(File::Find)
-BuildRequires:  perl(File::Path)
 BuildRequires:  perl(File::Spec)
-BuildRequires:  perl(File::Temp)
-BuildRequires:  perl(Module::Build) >= 0.37
+# XXX: BuildRequires:  perl(IO::KQueue)
+BuildRequires:  perl(Linux::Inotify2) >= 1.2
+BuildRequires:  perl(List::MoreUtils)
 BuildRequires:  perl(Module::Pluggable::Object)
 BuildRequires:  perl(Moose)
+BuildRequires:  perl(Moose::Util::TypeConstraints)
 BuildRequires:  perl(MooseX::Params::Validate) >= 0.08
 BuildRequires:  perl(MooseX::SemiAffordanceAccessor)
 BuildRequires:  perl(namespace::autoclean)
-BuildRequires:  perl(Test::Exception)
-BuildRequires:  perl(Test::More) >= 0.88
-BuildRequires:  perl(Test::Without::Module)
 BuildRequires:  perl(Time::HiRes)
+# Tests only
+BuildRequires:  perl(base)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Path)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(FindBin)
+BuildRequires:  perl(lib)
 BuildRequires:  perl(Test::Exception)
-BuildRequires:  perl(Linux::Inotify2)
-
-Requires:       perl(Carp)
-Requires:       perl(Class::MOP)
-Requires:       perl(File::Find)
-Requires:       perl(File::Spec)
-Requires:       perl(Module::Pluggable::Object)
-Requires:       perl(Moose)
-Requires:       perl(MooseX::Params::Validate) >= 0.08
-Requires:       perl(MooseX::SemiAffordanceAccessor)
-Requires:       perl(namespace::autoclean)
-Requires:       perl(Time::HiRes)
-
-%{?filter_setup:
-%filter_from_requires /^perl(IO::KQueue)/d
-%?perl_default_filter
-}
-%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}perl\\(IO::KQueue\\)
+BuildRequires:  perl(Test::More) >= 0.96
+# Optional tests only
+BuildRequires:  perl(Test::Without::Module)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 
 %description
 Watch for changes to files, easily, cleanly, and across different platforms.
 
-
 %prep
 %setup -q -n File-ChangeNotify-%{version}
 
@@ -58,27 +51,25 @@ perl Build.PL --installdirs vendor
 ./Build
 
 %install
-rm -rf %{buildroot}
-
-./Build install --destdir %{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
-
+./Build install --destdir %{buildroot} --create_packlist=0
 %{_fixperms} %{buildroot}/*
 
 %check
 ./Build test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
-%doc Changes README LICENSE
+%license LICENSE
+%doc Changes README
+%exclude %{perl_vendorlib}/File/ChangeNotify/Watcher/KQueue.pm
 %{perl_vendorlib}/*
+%exclude %{_mandir}/man3/File::ChangeNotify::Watcher::KQueue.3pm*
 %{_mandir}/man3/*.3*
 
 %changelog
+* Thu Jan 28 2016 Petr Ĺ abata <con...@redhat.com> - 0.24-6
+- Package cleanup
+- Don't ship the KQueue watcher
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.24-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-File-ChangeNotify.git/commit/?h=master&id=614500a2fc9eefd19c30ea1beb3bc7bbef0c3d3c
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to