[perl-Crypt-Twofish] clean up spec for modern rpmbuild
Iain Arnell
iarnell at fedoraproject.org
Fri Sep 7 17:42:02 UTC 2012
commit 2920147b22773df1c18d8189393925c8e63db455
Author: Iain Arnell <iarnell at gmail.com>
Date: Fri Sep 7 11:40:23 2012 -0600
clean up spec for modern rpmbuild
perl-Crypt-Twofish.spec | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/perl-Crypt-Twofish.spec b/perl-Crypt-Twofish.spec
index 9898f03..61d9327 100644
--- a/perl-Crypt-Twofish.spec
+++ b/perl-Crypt-Twofish.spec
@@ -6,7 +6,6 @@ License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Crypt-Twofish/
Source0: http://www.cpan.org/authors/id/A/AM/AMS/Crypt-Twofish-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Crypt::CBC)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -26,8 +25,6 @@ free for all uses, as described at http://www.counterpane.com/twofish.html.
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
@@ -39,11 +36,7 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%check
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Crypt*
@@ -52,6 +45,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Sep 07 2012 Iain Arnell <iarnell at gmail.com> 2.15-1
- update to latest upstream version
+- clean up spec for modern rpmbuild
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.14-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list