[packages/sparsehash] new, version 1.12

glen glen at pld-linux.org
Sat Sep 7 21:00:28 CEST 2013


commit c35840ee9da8d7f79ef666ba185b41bafe23d9f2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Sep 7 21:59:29 2013 +0300

    new, version 1.12
    
    based on fedora package
    1d6e276b4ae2495d2afcf5c6b5f3e032744a8dca

 sparsehash.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 83 insertions(+)
---
diff --git a/sparsehash.spec b/sparsehash.spec
new file mode 100644
index 0000000..ca37dc7
--- /dev/null
+++ b/sparsehash.spec
@@ -0,0 +1,83 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+Summary:	Extremely memory-efficient C++ hash_map implementation
+Name:		sparsehash
+Version:	1.12
+Release:	1
+License:	BSD
+Group:		Development/Libraries
+Source0:	http://sparsehash.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5:	077b7d874d924f6f85e88d527ef42a42
+URL:		http://code.google.com/p/sparsehash
+%{?with_tests:BuildRequires:	libstdc++-devel}
+BuildRequires:	sed >= 4.0
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-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
+Requires:	libstdc++-devel
+
+%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 \
+	--host=%{_host} \
+	--build=%{_host}
+
+# clearing noinst_PROGRAMS helps not to build targets for tests
+%{__make} \
+	noinst_PROGRAMS=
+
+%if %{with tests}
+%{__make} check
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	noinst_PROGRAMS= \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# Remove unneeded files
+rm $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/INSTALL
+rm $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README_windows.txt
+
+# make noarch
+install -d $RPM_BUILD_ROOT%{_npkgconfigdir}
+mv $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_npkgconfigdir}}/libsparsehash.pc
+%{__sed} -i -e '/libdir/d' $RPM_BUILD_ROOT%{_npkgconfigdir}/libsparsehash.pc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files devel
+%defattr(644,root,root,755)
+%doc %{_docdir}/sparsehash-%{version}
+%dir %{_includedir}/google
+%{_includedir}/google/dense_hash_map
+%{_includedir}/google/dense_hash_set
+%{_includedir}/google/sparse_hash_map
+%{_includedir}/google/sparse_hash_set
+%{_includedir}/google/sparsetable
+%{_includedir}/google/template_util.h
+%{_includedir}/google/type_traits.h
+%{_includedir}/google/sparsehash
+%{_npkgconfigdir}/libsparsehash.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sparsehash.git/commitdiff/c35840ee9da8d7f79ef666ba185b41bafe23d9f2



More information about the pld-cvs-commit mailing list