]> git.pld-linux.org Git - packages/cityhash.git/blame - cityhash.spec
up to 1.1.0
[packages/cityhash.git] / cityhash.spec
CommitLineData
d6ffcb3c
ER
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4
5Summary: Fast hash functions for strings
6Name: cityhash
a7e00a5a 7Version: 1.1.0
d6ffcb3c
ER
8Release: 1
9License: MIT
10Group: Libraries
11URL: http://code.google.com/p/cityhash
12Source0: http://cityhash.googlecode.com/files/%{name}-%{version}.tar.gz
a7e00a5a 13# Source0-md5: e591cfb40db0f71f39c73988cefdc14f
d6ffcb3c
ER
14BuildRequires: libstdc++-devel
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18CityHash provides hash functions for strings. The functions mix the
19input bits thoroughly but are not suitable for cryptography.
20
21%package devel
22Summary: Development files for %{name}
23Group: Development/Libraries
24Requires: %{name} = %{version}-%{release}
25
26%description devel
27The %{name}-devel package contains libraries and header files for
28developing applications that use %{name}.
29
30%package static
31Summary: Static %{name} library
32Summary(pl.UTF-8): Statyczna biblioteka %{name}
33Group: Development/Libraries
34Requires: %{name}-devel = %{version}-%{release}
35
36%description static
37Static %{name} library.
38
39%description static -l pl.UTF-8
40Statyczna biblioteka %{name}.
41
42%prep
43%setup -q
44
45%build
46%configure \
47 %{!?with_static_libs:--disable-static}
48%{__make}
49
50%install
51rm -rf $RPM_BUILD_ROOT
52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
54
55%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%post -p /sbin/ldconfig
61%postun -p /sbin/ldconfig
62
63%files
64%defattr(644,root,root,755)
65%doc NEWS README
66%attr(755,root,root) %{_libdir}/libcityhash.so.*.*.*
67%ghost %{_libdir}/libcityhash.so.0
68
69%files devel
70%defattr(644,root,root,755)
71%{_includedir}/city.h
72%{_libdir}/libcityhash.so
73%{_libdir}/libcityhash.la
74
75%if %{with static_libs}
76%files static
77%defattr(644,root,root,755)
78%{_libdir}/libcityhash.a
79%endif
This page took 0.13824 seconds and 4 git commands to generate.