From 3dffe55524f311ab863e28563900ab1beef5a10a Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Mon, 1 Feb 2016 18:04:45 +0100 Subject: Package cleanup
--- perl-B-Hooks-OP-Check-StashChange.spec | 56 ++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/perl-B-Hooks-OP-Check-StashChange.spec b/perl-B-Hooks-OP-Check-StashChange.spec index 4f4b4fc..8f8ea4d 100644 --- a/perl-B-Hooks-OP-Check-StashChange.spec +++ b/perl-B-Hooks-OP-Check-StashChange.spec @@ -1,26 +1,33 @@ Name: perl-B-Hooks-OP-Check-StashChange Version: 0.06 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Invoke callbacks when the stash code is being compiled in changes License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/B-Hooks-OP-Check-StashChange/ Source0: http://www.cpan.org/authors/id/F/FL/FLORA/B-Hooks-OP-Check-StashChange-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -BuildRequires: perl(B::Hooks::OP::Check) >= 0.14 -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-devel BuildRequires: perl(ExtUtils::Depends) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::ExtraTests) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time +BuildRequires: perl(B::Hooks::OP::Check) >= 0.14 +BuildRequires: perl(DynaLoader) BuildRequires: perl(parent) -# testing +# Tests +BuildRequires: perl(FindBin) +BuildRequires: perl(lib) BuildRequires: perl(Test::More) - -# don't "provide" private Perl libs -%global _use_internal_dependency_generator 0 -%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u -%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}" -%global __find_requires /bin/sh -c "%{__deploop R}" +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) %description Register callbacks when an opcode is being compiled in a different namespace @@ -28,36 +35,33 @@ than the previous one. %prep %setup -q -n B-Hooks-OP-Check-StashChange-%{version} +rm -r inc +sed -i -e '/^inc\// d' MANIFEST +find -type f -exec chmod -x {} + %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 PERL_INSTALL_ROOT=%{buildroot} - -find %{buildroot} -type f -name .packlist -exec rm -f {} \; -find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; - +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* %check make test -%clean -rm -rf %{buildroot} - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto %{_mandir}/man3/*.3* %changelog +* Mon Feb 01 2016 Jitka Plesnikova <jples...@redhat.com> - 0.06-19 +- Package cleanup + * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> - 0.06-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild -- cgit v0.11.2 http://pkgs.fedoraproject.org/cgit/perl-B-Hooks-OP-Check-StashChange.git/commit/?h=master&id=3dffe55524f311ab863e28563900ab1beef5a10a -- 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