add buildroot stuff for el5

This commit is contained in:
Nathaniel McCallum 2012-01-17 12:53:25 -05:00
parent 0d89c10867
commit 6f0f488657
1 changed files with 8 additions and 2 deletions

View File

@ -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@natemccallum.com> - 1.0.4-3
- Add in buildroot stuff for EL5 build
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild