[perl-File-chmod] Modernize spec
Petr Šabata
psabata at fedoraproject.org
Fri Aug 31 09:16:55 UTC 2012
commit c29b39af312aac4739c908bd4ecfc091ac0a8561
Author: Petr Šabata <contyk at redhat.com>
Date: Fri Aug 31 11:16:51 2012 +0200
Modernize spec
perl-File-chmod.spec | 34 +++++++++++++---------------------
1 files changed, 13 insertions(+), 21 deletions(-)
---
diff --git a/perl-File-chmod.spec b/perl-File-chmod.spec
index 9396e3a..3cf6cba 100644
--- a/perl-File-chmod.spec
+++ b/perl-File-chmod.spec
@@ -1,17 +1,16 @@
Name: perl-File-chmod
Version: 0.32
-Release: 14%{?dist}
+Release: 15%{?dist}
Summary: Implements symbolic and ls chmod modes
-
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/File-chmod/
Source0: http://search.cpan.org/CPAN/authors/id/P/PI/PINYAN/File-chmod-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
BuildArch: noarch
+BuildRequires: perl(Carp)
+BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
%{summary}
@@ -19,36 +18,29 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%prep
%setup -q -n File-chmod-%{version}
-
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+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 {} ';'
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+rm -rf %{buildroot}
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w %{buildroot}/*
%check
make test
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%files
-%defattr(-,root,root,-)
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
-
%changelog
+* Fri Aug 31 2012 Petr Šabata <contyk at redhat.com> - 0.32-15
+- Modernize spec, specify all dependencies, and drop command macros
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.32-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list