[perl-File-Path-Tiny/el5/master] add BuildRoot to spec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit c209759d9dc829b17a79e2df77caf45849498f2b
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Tue Nov 23 05:16:48 2010 +0100

    add BuildRoot to spec

 perl-File-Path-Tiny.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/perl-File-Path-Tiny.spec b/perl-File-Path-Tiny.spec
index 94f934e..370c2c6 100644
--- a/perl-File-Path-Tiny.spec
+++ b/perl-File-Path-Tiny.spec
@@ -1,12 +1,13 @@
 Name:           perl-File-Path-Tiny
 Version:        0.1
-Release:        1%{?dist}
+Release:        1%{?dist}.1
 Summary:        Recursive versions of mkdir() and rmdir() without as much overhead as File::Path
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/File-Path-Tiny/
 Source0:        http://www.cpan.org/authors/id/D/DM/DMUEY/File-Path-Tiny-%{version}.tar.gz
 BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Pod)
@@ -27,6 +28,8 @@ rmdir() with as little code and overhead as possible.
 make %{?_smp_mflags}
 
 %install
+rm -rf $RPM_BUILD_ROOT
+
 make pure_install DESTDIR=%{buildroot}
 
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
@@ -37,6 +40,9 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 %check
 make test
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %files
 %defattr(-,root,root,-)
 %doc Changes README
@@ -44,5 +50,8 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Tue Nov 23 2010 Iain Arnell <iarnell@xxxxxxxxx> 0.1-1.1
+- add BuildRoot to spec
+
 * Sun Nov 14 2010 Iain Arnell <iarnell@xxxxxxxxx> 0.1-1
 - Specfile autogenerated by cpanspec 1.78.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux