[packages/cityhash] - new URLs, updated to 1.1.1 snapshot
qboosh
qboosh at pld-linux.org
Tue Jul 21 18:41:30 CEST 2026
commit a451125d9e1bdd172538f13235949191b1504a1c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 21 18:41:39 2026 +0200
- new URLs, updated to 1.1.1 snapshot
cityhash.spec | 58 +++++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 41 insertions(+), 17 deletions(-)
---
diff --git a/cityhash.spec b/cityhash.spec
index 0cd5d24..49bb180 100644
--- a/cityhash.spec
+++ b/cityhash.spec
@@ -1,57 +1,82 @@
#
# Conditional build:
-%bcond_without static_libs # don't build static libraries
+%bcond_without static_libs # static library
+%bcond_with sse42 # SSE 4.2 instructions
Summary: Fast hash functions for strings
+Summary(pl.UTF-8): Szybka funkcja haszująca dla łańcuchów znaków
Name: cityhash
-Version: 1.1.0
-Release: 2
+Version: 1.1.1
+%define gitref f5dc54147fcce12cefd16548c8e760d68ac04226
+%define snap 20220720
+%define rel 1
+Release: 0.%{snap}.%{rel}
License: MIT
Group: Libraries
-URL: http://code.google.com/p/cityhash
-Source0: http://cityhash.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: e591cfb40db0f71f39c73988cefdc14f
+#Source0Download: https://github.com/google/cityhash
+Source0: https://github.com/google/cityhash/archive/%{gitref}/%{name}-%{snap}.tar.gz
+# Source0-md5: 8d094c144754e39445b67c18d9d51826
+URL: https://github.com/google/cityhash
BuildRequires: libstdc++-devel
+%if %{with sse42}
+Requires: cpuinfo(sse4_2)
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
CityHash provides hash functions for strings. The functions mix the
input bits thoroughly but are not suitable for cryptography.
+%description -l pl.UTF-8
+Biblioteka CityHash udostępnia funkcje haszujące dla łańcuchów znaków.
+Funkcje mieszają gruntownie bity wejścia, ale nie nadają się do
+kryptografii.
+
%package devel
-Summary: Development files for %{name}
+Summary: Development files for CityHash library
+Summary(pl.UTF-8): Pliki programistyczne biblioteki CityHash
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: libstdc++-devel
%description devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
+This package contains header file for developing applications that
+use CityHash library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera plik nagłówkowy do tworzenia aplikacji
+wykorzystujących bibliotekę CityHash.
%package static
-Summary: Static %{name} library
-Summary(pl.UTF-8): Statyczna biblioteka %{name}
+Summary: Static CityHash library
+Summary(pl.UTF-8): Statyczna biblioteka CityHash
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
-Static %{name} library.
+Static CityHash library.
%description static -l pl.UTF-8
-Statyczna biblioteka %{name}.
+Statyczna biblioteka CityHash.
%prep
-%setup -q
+%setup -q -n %{name}-%{gitref}
%build
%configure \
+ %{?with_sse42:--enable-sse4.2} \
%{!?with_static_libs:--disable-static}
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcityhash.la
+
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
%clean
@@ -63,14 +88,13 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc NEWS README
-%attr(755,root,root) %{_libdir}/libcityhash.so.*.*.*
+%{_libdir}/libcityhash.so.*.*.*
%ghost %{_libdir}/libcityhash.so.0
%files devel
%defattr(644,root,root,755)
-%{_includedir}/city.h
%{_libdir}/libcityhash.so
-%{_libdir}/libcityhash.la
+%{_includedir}/city.h
%if %{with static_libs}
%files static
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cityhash.git/commitdiff/a451125d9e1bdd172538f13235949191b1504a1c
More information about the pld-cvs-commit
mailing list