[packages/cityhash] new, version 1.0.3

glen glen at pld-linux.org
Fri Mar 1 23:33:29 CET 2013


commit d6ffcb3cdf16d709ae6974eb20f491c3d4623ff7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Mar 2 00:32:57 2013 +0200

    new, version 1.0.3
    
    based on package for fedora
    http://fedora.hyperdex.org/src/cityhash-1.0.3-1.fc17.src.rpm

 cityhash.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
---
diff --git a/cityhash.spec b/cityhash.spec
new file mode 100644
index 0000000..4324bc9
--- /dev/null
+++ b/cityhash.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static libraries
+
+Summary:	Fast hash functions for strings
+Name:		cityhash
+Version:	1.0.3
+Release:	1
+License:	MIT
+Group:		Libraries
+URL:		http://code.google.com/p/cityhash
+Source0:	http://cityhash.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5:	4d1a1102e696e699613c93ca8aeddd00
+BuildRequires:	libstdc++-devel
+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.
+
+%package devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package static
+Summary:	Static %{name} library
+Summary(pl.UTF-8):	Statyczna biblioteka %{name}
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka %{name}.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	%{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README
+%attr(755,root,root) %{_libdir}/libcityhash.so.*.*.*
+%ghost %{_libdir}/libcityhash.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/city.h
+%{_libdir}/libcityhash.so
+%{_libdir}/libcityhash.la
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcityhash.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cityhash.git/commitdiff/d6ffcb3cdf16d709ae6974eb20f491c3d4623ff7



More information about the pld-cvs-commit mailing list