[snappy] add buildroot stuff for el5

Nathaniel McCallum npmccallum at fedoraproject.org
Tue Jan 17 17:53:27 UTC 2012


commit 6f0f488657156f440b207577f11051d2ca830d7a
Author: Nathaniel McCallum <nathaniel at themccallums.org>
Date:   Tue Jan 17 12:53:25 2012 -0500

    add buildroot stuff for el5

 snappy.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/snappy.spec b/snappy.spec
index 7ecb482..495ab66 100644
--- a/snappy.spec
+++ b/snappy.spec
@@ -1,6 +1,6 @@
 Name:           snappy
 Version:        1.0.4
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Fast compression and decompression library
 
 Group:          System Environment/Libraries
@@ -9,7 +9,7 @@ URL:            http://code.google.com/p/snappy/
 Source0:        http://snappy.googlecode.com/files/%{name}-%{version}.tar.gz
 
 BuildRequires:  gtest-devel
-
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 Snappy is a compression/decompression library. It does not aim for maximum 
@@ -40,10 +40,13 @@ make %{?_smp_mflags}
 
 
 %install
+rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
 rm -rf %{buildroot}%{_datadir}/doc/snappy/
 find %{buildroot} -name '*.la' -exec rm -f {} ';'
 
+%clean
+rm -rf %{buildroot}
 
 %check
 make check
@@ -67,6 +70,9 @@ make check
 
 
 %changelog
+* Tue Jan 17 2012 Nathaniel McCallum <nathaniel at natemccallum.com> - 1.0.4-3
+- Add in buildroot stuff for EL5 build
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.4-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list