3 %bcond_without static_libs # don't build static libraries
5 Summary: Fast hash functions for strings
11 URL: http://code.google.com/p/cityhash
12 Source0: http://cityhash.googlecode.com/files/%{name}-%{version}.tar.gz
13 # Source0-md5: e591cfb40db0f71f39c73988cefdc14f
14 BuildRequires: libstdc++-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 CityHash provides hash functions for strings. The functions mix the
19 input bits thoroughly but are not suitable for cryptography.
22 Summary: Development files for %{name}
23 Group: Development/Libraries
24 Requires: %{name} = %{version}-%{release}
27 The %{name}-devel package contains libraries and header files for
28 developing applications that use %{name}.
31 Summary: Static %{name} library
32 Summary(pl.UTF-8): Statyczna biblioteka %{name}
33 Group: Development/Libraries
34 Requires: %{name}-devel = %{version}-%{release}
37 Static %{name} library.
39 %description static -l pl.UTF-8
40 Statyczna biblioteka %{name}.
47 %{!?with_static_libs:--disable-static}
51 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
55 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
58 rm -rf $RPM_BUILD_ROOT
60 %post -p /sbin/ldconfig
61 %postun -p /sbin/ldconfig
64 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_libdir}/libcityhash.so.*.*.*
67 %ghost %{_libdir}/libcityhash.so.0
70 %defattr(644,root,root,755)
72 %{_libdir}/libcityhash.so
73 %{_libdir}/libcityhash.la
75 %if %{with static_libs}
77 %defattr(644,root,root,755)
78 %{_libdir}/libcityhash.a