# disable -debuginfo subpackage # This could be a noarch package instead, but since the package can run tests # at build time, I'd prefer that the tests were run at each architecture. %global debug_package %{nil} Name: sparsehash Version: 1.7 Release: 2%{?dist} Summary: Extremely memory-efficient C++ hash_map implementation Group: Development/Libraries License: BSD URL: http://code.google.com/p/google-sparsehash Source0: http://google-sparsehash.googlecode.com/files/sparsehash-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description The Google SparseHash project contains several C++ template hash-map implementations with different performance characteristics, including an implementation that optimizes for space and one that optimizes for speed. # all files are in -devel package %package devel Summary: Extremely memory-efficient C++ hash_map implementation Group: Development/Libraries %description devel The Google SparseHash project contains several C++ template hash-map implementations with different performance characteristics, including an implementation that optimizes for space and one that optimizes for speed. %prep %setup -q %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # Remove unneeded files rm $RPM_BUILD_ROOT%{_defaultdocdir}/sparsehash-%{version}/INSTALL rm $RPM_BUILD_ROOT%{_defaultdocdir}/sparsehash-%{version}/README.windows # Remove zero size file rm $RPM_BUILD_ROOT%{_defaultdocdir}/sparsehash-%{version}/NEWS %check make check %clean rm -rf $RPM_BUILD_ROOT %files devel %defattr(-,root,root,-) %doc %{_defaultdocdir}/sparsehash-%{version}/ %{_includedir}/google/ %changelog * Sat Jul 03 2010 Kalev Lember - 1.7-2 - Move all files to -devel (#609728) * Thu Jul 01 2010 Kalev Lember - 1.7-1 - Initial RPM release