From 0b248e7a65f4cf88b406a01aed84367f59c95544 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Jan 26 2016 15:57:06 +0000 Subject: Modernize spec file --- diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..ce4ed84 --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (Inotify|Scalable)"); diff --git a/auto.ini b/auto.ini deleted file mode 100644 index 26dfabd..0000000 --- a/auto.ini +++ /dev/null @@ -1,2 +0,0 @@ -[add_build_requires] -perl(Test::Simple)=0 diff --git a/perl-Linux-Inotify2.spec b/perl-Linux-Inotify2.spec index 7fed8c8..06e5208 100644 --- a/perl-Linux-Inotify2.spec +++ b/perl-Linux-Inotify2.spec @@ -1,67 +1,72 @@ Name: perl-Linux-Inotify2 Summary: Scalable directory/file change notification Version: 1.22 -Release: 12%{?dist} +Release: 13%{?dist} License: GPL+ or Artistic Group: Development/Libraries Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Linux-Inotify2-%{version}.tar.gz URL: http://search.cpan.org/dist/Linux-Inotify2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - -BuildRequires: perl(common::sense) +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: perl +BuildRequires: perl-devel +BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(common::sense) +BuildRequires: perl(Exporter) +BuildRequires: perl(Fcntl) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(XSLoader) +# Tests: BuildRequires: perl(Test::Simple) - -Requires: perl(common::sense) - +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(XSLoader) %{?perl_default_filter} %description -This module implements an interface to the Linux 2.6.13+ -Inotify file/directory change notification sytem. It has a -number of advantages over the Linux::Inotify module: +This module implements an interface to the Linux 2.6.13+ Inotify +file/directory change notification system. It has a number of advantages over +the Linux::Inotify module: - it is portable (Linux::Inotify only works on x86) - - the equivalent of fullname works correctly + - the equivalent of full name works correctly - it is better documented - - it has callback-style interface, which is better suited for - integration. + - it has callback-style interface, which is better suited for integration. %prep %setup -q -n Linux-Inotify2-%{version} - find . -type f -exec chmod -c -x {} ';' -find eg/ -type f -exec perl -pi -e 's|^#!/opt/bin/perl|#!%{__perl}|' {} ';' +find eg/ -type f -exec \ + perl -MConfig -pi -e 's|^#!/opt/bin/perl|$Config{startperl}|' {} ';' %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install -rm -rf %{buildroot} - make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' - %{_fixperms} %{buildroot}/* %check make test -%clean -rm -rf %{buildroot} - %files -%defattr(-,root,root,-) -%doc README Changes COPYING eg/ +%license COPYING +%doc Changes README eg/ %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto %{_mandir}/man3/*.3* %changelog +* Tue Jan 26 2016 Petr Pisar - 1.22-13 +- Modernize spec file + * Thu Jun 18 2015 Fedora Release Engineering - 1.22-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild