Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > 1293b417019f885b9d005b145cb98ba5 > files > 6

erlang-hyper-0-0.16.20161011git4b1abc4.1.mga9.src.rpm

%global realname hyper
%global upstream GameAnalytics
%global git_tag 4b1abc4284fc784f6def4f4928f715b0d33136f9
%global short_tag %(c=%{git_tag}; echo ${c:0:7})

%define _disable_ld_no_undefined 1

%define rel 1

Name:		erlang-%{realname}
Version:	0
Release:	%mkrel 0.16.20161011git%{short_tag}.%{rel}
Summary:	An implementation of the HyperLogLog algorithm in Erlang
License:	MIT
Group:          Development/Tools
URL:		https://github.com/%{upstream}/%{realname}
VCS:		scm:git:https://github.com/%{upstream}/%{realname}.git
#Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{git_tag}/%{realname}-%{version}.tar.gz
Patch1:		erlang-hyper-0001-remove-need-for-bisect-lib-hyper_bisect-as-it.patch
Patch2:		erlang-hyper-0002-Module-random-is-deprecated.patch
Patch3:		erlang-hyper-0003-Remove-unused-functions.patch
Patch4:		erlang-hyper-0004-Exclude-eunit-from-production-builds.patch
Patch5:		erlang-hyper-0005-Remove-test-failing-in-Erlang-20.patch
BuildRequires:	erlang-basho_stats
BuildRequires:	erlang-proper
BuildRequires:	erlang-rebar
BuildRequires:	erlang-stdlib2
BuildRequires:	gcc

%description
An implementation of the HyperLogLog algorithm in Erlang. Using HyperLogLog you
can estimate the cardinality of very large data sets using constant memory. The
relative error is 1.04 * sqrt(2^P). When creating a new HyperLogLog filter, you
provide the precision P, allowing you to trade memory for accuracy. The union
of two filters is lossless.


%prep
%autosetup -p1 -n %{realname}-%{git_tag}


%build
%{erlang_compile}


%install
%{erlang_install}


%check
%{erlang_test}


%files
%license LICENSE
%doc README.md
%{erlang_appdir}/


%changelog
* Thu Jan 05 2023 daviddavid <daviddavid> 0-0.16.20161011git4b1abc4.1.mga9
+ Revision: 1930427
- fix release tag

* Thu Jan 05 2023 daviddavid <daviddavid> 0-0.15.20161011git4b1abc41.mga9
+ Revision: 1930361
- Mageia 9 Mass Rebuild

* Mon Jan 04 2021 joequant <joequant> 0-0.14.20161011git4b1abc4.mga8
+ Revision: 1668688
- imported package erlang-hyper