diff --git a/perl-Event-ExecFlow.spec b/perl-Event-ExecFlow.spec index 0b1a531..18dd4f6 100644 --- a/perl-Event-ExecFlow.spec +++ b/perl-Event-ExecFlow.spec @@ -1,20 +1,18 @@ +%global pkgname Event-ExecFlow + Name: perl-Event-ExecFlow Version: 0.64 -Release: 12%{?dist} +Release: 13%{?dist} Summary: High level API for event-based execution flow control - -Group: Development/Libraries License: (GPL+ or Artistic) and LGPLv2+ URL: http://search.cpan.org/dist/Event-ExecFlow/ -Source0: http://search.cpan.org/CPAN/authors/id/J/JR/JRED/Event-ExecFlow-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - +Source0: http://search.cpan.org/CPAN/authors/id/J/JR/JRED/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(AnyEvent) BuildRequires: perl(Test::More) BuildRequires: perl(Locale::TextDomain) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Event::ExecFlow offers a high level API to declare jobs, which mainly execute @@ -23,9 +21,8 @@ information, triggers actions when the command has been finished etc. Such jobs can be chained together in a recursive fashion to fulfill rather complex tasks which consist of many jobs. - %prep -%setup -q -n Event-ExecFlow-%{version} +%setup -qn %{pkgname}-%{version} # Convert encoding for f in $(find lib/ -name *.pm) README ; do @@ -35,31 +32,21 @@ touch -r ${f}.noutf8 ${f} rm ${f}.noutf8 done - %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} - %install -rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -delete # Fix perm -chmod 0755 $RPM_BUILD_ROOT%{_bindir}/execflow - +chmod 0755 %{buildroot}%{_bindir}/execflow %check make test - -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) %doc Changes README # This file is GPL+ or Artistic %{_bindir}/execflow @@ -67,8 +54,10 @@ rm -rf $RPM_BUILD_ROOT %{perl_vendorlib}/Event/ %{_mandir}/man3/*.3* - %changelog +* Thu Aug 08 2013 Christopher Meng - 0.64-13 +- SPEC cleanup. + * Sat Aug 03 2013 Fedora Release Engineering - 0.64-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild