summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-06-15 11:09:37 +0200
committerRemi Collet <remi@remirepo.net>2020-06-15 11:09:37 +0200
commit6b4d47f4019f87be37418df1856c0ede12ec0c8e (patch)
tree11017177d80ae3f655dbb7bff11d367f3872e628
parentee1530bb98042f82b366570422129b56fa4f0098 (diff)
update to 0.10.0
soname bump to 6 add option to not install static libraries from https://github.com/HdrHistogram/HdrHistogram_c/pull/84 add hdr_histogram_perf command
-rw-r--r--HdrHistogram_c-static.patch56
-rw-r--r--compat_reports/0.9.13_to_0.10.0/compat_report.html546
-rw-r--r--hdrhistogram.spec42
-rw-r--r--libhdr_histogram.xml2
4 files changed, 636 insertions, 10 deletions
diff --git a/HdrHistogram_c-static.patch b/HdrHistogram_c-static.patch
new file mode 100644
index 0000000..de85b37
--- /dev/null
+++ b/HdrHistogram_c-static.patch
@@ -0,0 +1,56 @@
+From d74a6abee509010a17c4a2c18e9d29acd3bad5d4 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 15 Jun 2020 10:50:12 +0200
+Subject: [PATCH] add options to be able to not install libraries
+
+---
+ src/CMakeLists.txt | 18 +++++++++++-------
+ 1 file changed, 11 insertions(+), 7 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index a30f8fc..60be048 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -28,7 +28,7 @@ set(HDR_HISTOGRAM_PUBLIC_HEADERS
+ hdr_time.h
+ hdr_writer_reader_phaser.h)
+
+-function(hdr_histogram_add_library NAME LIBRARY_TYPE)
++function(hdr_histogram_add_library NAME LIBRARY_TYPE DO_INSTALL)
+ add_library(${NAME} ${LIBRARY_TYPE}
+ ${HDR_HISTOGRAM_SOURCES}
+ ${HDR_HISTOGRAM_PRIVATE_HEADERS}
+@@ -44,23 +44,27 @@ function(hdr_histogram_add_library NAME LIBRARY_TYPE)
+ PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
+- install(
+- TARGETS ${NAME}
+- EXPORT ${PROJECT_NAME}-targets
+- DESTINATION ${CMAKE_INSTALL_LIBDIR})
++ if(DO_INSTALL)
++ install(
++ TARGETS ${NAME}
++ EXPORT ${PROJECT_NAME}-targets
++ DESTINATION ${CMAKE_INSTALL_LIBDIR})
++ endif()
+ endfunction()
+
+ option(HDR_HISTOGRAM_BUILD_SHARED "Build shared library" ON)
++option(HDR_HISTOGRAM_BUILD_SHARED "Install shared library" ON)
+ if(HDR_HISTOGRAM_BUILD_SHARED)
+- hdr_histogram_add_library(hdr_histogram SHARED)
++ hdr_histogram_add_library(hdr_histogram SHARED ${HDR_HISTOGRAM_BUILD_SHARED})
+ set_target_properties(hdr_histogram PROPERTIES
+ VERSION ${HDR_VERSION}
+ SOVERSION ${HDR_SOVERSION})
+ endif()
+
+ option(HDR_HISTOGRAM_BUILD_STATIC "Build static library" ON)
++option(HDR_HISTOGRAM_INSTALL_STATIC "Install static library" ON)
+ if(HDR_HISTOGRAM_BUILD_STATIC)
+- hdr_histogram_add_library(hdr_histogram_static STATIC)
++ hdr_histogram_add_library(hdr_histogram_static STATIC ${HDR_HISTOGRAM_INSTALL_STATIC})
+ endif()
+
+ install(
diff --git a/compat_reports/0.9.13_to_0.10.0/compat_report.html b/compat_reports/0.9.13_to_0.10.0/compat_report.html
new file mode 100644
index 0000000..844bb15
--- /dev/null
+++ b/compat_reports/0.9.13_to_0.10.0/compat_report.html
@@ -0,0 +1,546 @@
+<!-- kind:binary;verdict:compatible;affected:0;added:2;removed:0;type_problems_high:0;type_problems_medium:0;type_problems_low:0;interface_problems_high:0;interface_problems_medium:0;interface_problems_low:0;changed_constants:0;constant_changes_other:1;tool_version:2.3 -->
+<!-- kind:source;verdict:compatible;affected:0;added:2;removed:0;type_problems_high:0;type_problems_medium:0;type_problems_low:0;interface_problems_high:0;interface_problems_medium:0;interface_problems_low:0;changed_constants:0;constant_changes_other:1;tool_version:2.3 -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="viewport" content="width=device-width,initial-scale=1" />
+<meta name="keywords" content="libhdr_histogram, compatibility, API, ABI, report" />
+<meta name="description" content="API/ABI compatibility report for the libhdr_histogram library between 0.9.13 and 0.10.0 versions" />
+<title>libhdr_histogram: 0.9.13 to 0.10.0 compatibility report</title>
+<style type="text/css">
+body {
+ font-family:Arial, sans-serif;
+ background-color:White;
+ color:Black;
+}
+hr {
+ color:Black;
+ background-color:Black;
+ height:1px;
+ border:0;
+}
+h1 {
+ margin-bottom:0px;
+ padding-bottom:0px;
+ font-size:1.625em;
+}
+h2 {
+ margin-bottom:0px;
+ padding-bottom:0px;
+ font-size:1.25em;
+ white-space:nowrap;
+}
+span.section {
+ font-weight:bold;
+ cursor:pointer;
+ color:#003E69;
+ white-space:nowrap;
+ margin-left:0.3125em;
+}
+span.new_sign {
+ font-weight:bold;
+ margin-left:1.65em;
+ color:#003E69;
+}
+span.new_sign_lbl {
+ margin-left:3em;
+ font-size:1em;
+ color:Black;
+}
+span:hover.section {
+ color:#336699;
+}
+span.sect_aff {
+ cursor:pointer;
+ padding-left:1.55em;
+ font-size:0.875em;
+ color:#cc3300;
+}
+span.sect_info {
+ cursor:pointer;
+ padding-left:1.55em;
+ font-size:0.875em;
+ color:Black;
+}
+span.ext {
+ font-weight:normal;
+}
+span.h_name {
+ color:#cc3300;
+ font-size:0.875em;
+ font-weight:bold;
+}
+div.h_list, div.lib_list {
+ font-size:0.94em;
+ padding-left:0.4em;
+}
+span.ns {
+ color:#408080;
+ font-size:0.94em;
+}
+span.lib_name {
+ color:Green;
+ font-size:0.875em;
+ font-weight:bold;
+}
+span.iname {
+ font-weight:bold;
+ color:#003E69;
+ margin-left:0.3125em;
+}
+span.iname_b {
+ font-weight:bold;
+}
+span.iname_a {
+ color:#333333;
+ font-weight:bold;
+ font-size:0.94em;
+}
+span.sym_p {
+ font-weight:normal;
+ white-space:normal;
+}
+span.sym_pd {
+ white-space:normal;
+}
+span.sym_p span, span.sym_pd span {
+ white-space:nowrap;
+}
+div.affect {
+ padding-left:1em;
+ padding-bottom:10px;
+ font-size:0.87em;
+ font-style:italic;
+ line-height:0.9em;
+}
+div.affected {
+ padding-left:1.9em;
+ padding-top:10px;
+}
+table.ptable {
+ border-collapse:collapse;
+ border:1px outset black;
+ margin-left:0.95em;
+ margin-top:3px;
+ margin-bottom:3px;
+ width:56.25em;
+}
+table.ptable td {
+ border:1px solid gray;
+ padding:3px;
+ font-size:0.875em;
+ text-align:left;
+ vertical-align:top;
+ max-width:28em;
+ word-wrap:break-word;
+}
+table.ptable th.pn {
+ width:2%;
+}
+table.ptable th.chg {
+ width:47%;
+}
+table.vtable {
+ border-collapse:collapse;
+ border:1px outset black;
+ margin-left:1.9em;
+ margin-top:0.7em;
+}
+table.vtable td {
+ border:1px solid gray;
+ padding:3px;
+ font-size:0.875em;
+ vertical-align:top;
+ max-width:450px;
+ word-wrap:break-word;
+}
+table.ptable th, table.vtable th {
+ background-color:#eeeeee;
+ font-weight:bold;
+ color:#333333;
+ font-family:Verdana, Arial;
+ font-size:0.875em;
+ border:1px solid gray;
+ text-align:center;
+ vertical-align:top;
+ white-space:nowrap;
+ padding:3px;
+}
+table.summary {
+ border-collapse:collapse;
+ border:1px outset black;
+}
+table.summary th {
+ background-color:#eeeeee;
+ font-weight:normal;
+ text-align:left;
+ font-size:0.94em;
+ white-space:nowrap;
+ border:1px inset gray;
+ padding:3px;
+}
+table.summary td {
+ text-align:right;
+ white-space:nowrap;
+ border:1px inset gray;
+ padding:3px 5px 3px 10px;
+}
+span.mngl {
+ padding-left:1em;
+ font-size:0.875em;
+ cursor:text;
+ color:#444444;
+ font-weight:bold;
+}
+span.pleft {
+ padding-left:2.5em;
+}
+span.sym_ver {
+ color:#333333;
+ white-space:nowrap;
+ font-family:"DejaVu Sans Mono", Monospace;
+}
+span.attr {
+ color:#333333;
+ font-weight:normal;
+}
+span.color_p {
+ font-style:italic;
+ color:Brown;
+}
+span.p {
+ font-style:italic;
+}
+span.fp {
+ font-style:italic;
+ background-color:#DCDCDC;
+}
+span.ttype {
+ font-weight:normal;
+}
+span.nowrap {
+ white-space:nowrap;
+}
+span.value {
+ font-weight:bold;
+}
+.passed {
+ background-color:#CCFFCC;
+ font-weight:normal;
+}
+.warning {
+ background-color:#F4F4AF;
+ font-weight:normal;
+}
+.failed {
+ background-color:#FFCCCC;
+ font-weight:normal;
+}
+.new {
+ background-color:#C6DEFF;
+ font-weight:normal;
+}
+.compatible {
+ background-color:#CCFFCC;
+ font-weight:normal;
+}
+.almost_compatible {
+ background-color:#FFDAA3;
+ font-weight:normal;
+}
+.incompatible {
+ background-color:#FFCCCC;
+ font-weight:normal;
+}
+.gray {
+ background-color:#DCDCDC;
+ font-weight:normal;
+}
+.top_ref {
+ font-size:0.69em;
+}
+.footer {
+ font-size:0.75em;
+}
+
+.tabset {
+ float:left;
+}
+a.tab {
+ border:1px solid Black;
+ float:left;
+ margin:0px 5px -1px 0px;
+ padding:3px 5px 3px 5px;
+ position:relative;
+ font-size:0.875em;
+ background-color:#DDD;
+ text-decoration:none;
+ color:Black;
+}
+a.disabled:hover
+{
+ color:Black;
+ background:#EEE;
+}
+a.active:hover
+{
+ color:Black;
+ background:White;
+}
+a.active {
+ border-bottom-color:White;
+ background-color:White;
+}
+div.tab {
+ border-top:1px solid Black;
+ padding:0px;
+ width:100%;
+ clear:both;
+}
+</style>
+<script type="text/javascript" language="JavaScript">
+<!--
+function showContent(header, id)
+{
+ e = document.getElementById(id);
+ if(e.style.display == 'none')
+ {
+ e.style.display = 'block';
+ e.style.visibility = 'visible';
+ header.innerHTML = header.innerHTML.replace(/\[[^0-9 ]\]/gi,"[&minus;]");
+ }
+ else
+ {
+ e.style.display = 'none';
+ e.style.visibility = 'hidden';
+ header.innerHTML = header.innerHTML.replace(/\[[^0-9 ]\]/gi,"[+]");
+ }
+}
+function initTabs()
+{
+ var url = window.location.href;
+ if(url.indexOf('_Source_')!=-1 || url.indexOf('#Source')!=-1)
+ {
+ var tab1 = document.getElementById('BinaryID');
+ var tab2 = document.getElementById('SourceID');
+ tab1.className='tab disabled';
+ tab2.className='tab active';
+ }
+ var sets = document.getElementsByTagName('div');
+ for (var i = 0; i < sets.length; i++)
+ {
+ if (sets[i].className.indexOf('tabset') != -1)
+ {
+ var tabs = [];
+ var links = sets[i].getElementsByTagName('a');
+ for (var j = 0; j < links.length; j++)
+ {
+ if (links[j].className.indexOf('tab') != -1)
+ {
+ tabs.push(links[j]);
+ links[j].tabs = tabs;
+ var tab = document.getElementById(links[j].href.substr(links[j].href.indexOf('#') + 1));
+ //reset all tabs on start
+ if (tab)
+ {
+ if (links[j].className.indexOf('active')!=-1) {
+ tab.style.display = 'block';
+ }
+ else {
+ tab.style.display = 'none';
+ }
+ }
+ links[j].onclick = function()
+ {
+ var tab = document.getElementById(this.href.substr(this.href.indexOf('#') + 1));
+ if (tab)
+ {
+ //reset all tabs before change
+ for (var k = 0; k < this.tabs.length; k++)
+ {
+ document.getElementById(this.tabs[k].href.substr(this.tabs[k].href.indexOf('#') + 1)).style.display = 'none';
+ this.tabs[k].className = this.tabs[k].className.replace('active', 'disabled');
+ }
+ this.className = 'tab active';
+ tab.style.display = 'block';
+ // window.location.hash = this.id.replace('ID', '');
+ return false;
+ }
+ }
+ }
+ }
+ }
+ }
+ if(url.indexOf('#')!=-1) {
+ location.href=location.href;
+ }
+}
+if (window.addEventListener) window.addEventListener('load', initTabs, false);
+else if (window.attachEvent) window.attachEvent('onload', initTabs);
+-->
+</script>
+</head>
+<body><a name='Source'></a><a name='Binary'></a><a name='Top'></a><h1>API compatibility report for the <span style='color:Blue;'>libhdr_histogram</span> library between <span style='color:Red;'>0.9.13</span> and <span style='color:Red;'>0.10.0</span> versions on <span style='color:Blue;'>x86_64</span></h1>
+
+ <br/>
+ <div class='tabset'>
+ <a id='BinaryID' href='#BinaryTab' class='tab active'>Binary<br/>Compatibility</a>
+ <a id='SourceID' href='#SourceTab' style='margin-left:3px' class='tab disabled'>Source<br/>Compatibility</a>
+ </div><div id='BinaryTab' class='tab'>
+<h2>Test Info</h2><hr/>
+<table class='summary'>
+<tr><th>Library Name</th><td>libhdr_histogram</td></tr>
+<tr><th>Version #1</th><td>0.9.13</td></tr>
+<tr><th>Version #2</th><td>0.10.0</td></tr>
+<tr><th>Arch</th><td>x86_64</td></tr>
+<tr><th>GCC Version</th><td>9</td></tr>
+<tr><th>Subject</th><td width='150px'>Binary Compatibility</td></tr>
+</table>
+<h2>Test Results</h2><hr/>
+<table class='summary'><tr><th>Total Header Files</th><td><a href='#Headers' style='color:Blue;'>6</a></td></tr>
+<tr><th>Total Libraries</th><td><a href='#Libs' style='color:Blue;'>1</a></td></tr>
+<tr><th>Total Symbols / Types</th><td>79 / 33</td></tr>
+<tr><th>Compatibility</th>
+<td class='compatible'>100%</td>
+</tr>
+</table>
+<h2>Problem Summary</h2><hr/>
+<table class='summary'><tr><th></th><th style='text-align:center;'>Severity</th><th style='text-align:center;'>Count</th></tr><tr><th>Added Symbols</th><td>-</td><td class='new'><a href='#Binary_Added' style='color:Blue;'>2</a></td></tr>
+<tr><th>Removed Symbols</th><td>High</td><td>0</td></tr>
+<tr><th rowspan='3'>Problems with<br/>Data Types</th><td>High</td><td>0</td></tr>
+<tr><td>Medium</td><td>0</td></tr>
+<tr><td>Low</td><td>0</td></tr>
+<tr><th rowspan='3'>Problems with<br/>Symbols</th><td>High</td><td>0</td></tr>
+<tr><td>Medium</td><td>0</td></tr>
+<tr><td>Low</td><td>0</td></tr>
+<tr><th>Problems with<br/>Constants</th><td>Low</td><td>0</td></tr>
+<tr><th>Other Changes<br/>in Constants</th><td>-</td><td class='passed'><a href='#Other_Binary_Changes_In_Constants' style='color:Blue;'>1</a></td></tr>
+</table>
+
+<a name='Binary_Added'></a><h2>Added Symbols <span class='new'>&nbsp;2&nbsp;</span></h2><hr/>
+<span class='h_name'>hdr_histogram_log.h</span>, <span class='lib_name'>libhdr_histogram.so.6.1.0</span><br/>
+<span class="iname">hdr_log_read_entry&#160;<span class='sym_p'><span>(&#160;struct hdr_log_reader* <span class='color_p'>reader</span></span>, <span>FILE* <span class='color_p'>file</span></span>, <span>struct hdr_log_entry* <span class='color_p'>entry</span></span>, <span>struct hdr_histogram** <span class='color_p'>histogram</span></span>&#160;)</span></span><br/>
+<span class="iname">hdr_log_write_entry&#160;<span class='sym_p'><span>(&#160;struct hdr_log_writer* <span class='color_p'>writer</span></span>, <span>FILE* <span class='color_p'>file</span></span>, <span>struct hdr_log_entry* <span class='color_p'>entry</span></span>, <span>struct hdr_histogram* <span class='color_p'>histogram</span></span>&#160;)</span></span><br/>
+<br/>
+<a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Other_Binary_Changes'></a><a name='Other_Binary_Changes_In_Constants'></a>
+<h2>Other Changes in Constants <span class='passed'>&nbsp;1&nbsp;</span></h2><hr/>
+<span class='h_name'>hdr_histogram_log.h</span><br/>
+<span class="section" onclick="javascript:showContent(this, 'c_1')">
+<span class='ext'>[+]</span> HDR_LOG_TAG_MAX_BUFFER_LEN</span>
+<br/>
+<div id="c_1" style="display:none;">
+<table class='ptable'>
+<tr>
+<th class='pn'></th>
+<th class='chg'>Change</th>
+<th>Effect</th>
+</tr>
+<tr>
+<th>1</th>
+<td>The constant <b>HDR_LOG_TAG_MAX_BUFFER_LEN</b> with value <b>(1024)</b> has been added.</td>
+<td>No effect.</td>
+</tr>
+</table>
+<br/>
+</div>
+
+<br/>
+<a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Headers'></a><h2>Header Files <span class='gray'>&nbsp;6&nbsp;</span></h2><hr/>
+<div class='h_list'>
+hdr_histogram.h<br/>
+hdr_histogram_log.h<br/>
+hdr_interval_recorder.h<br/>
+hdr_thread.h<br/>
+hdr_time.h<br/>
+hdr_writer_reader_phaser.h<br/>
+</div>
+<br/><a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Libs'></a><h2>Libraries <span class='gray'>&nbsp;1&nbsp;</span></h2><hr/>
+<div class='lib_list'>
+libhdr_histogram.so.5.0.0<br/>
+</div>
+<br/><a class='top_ref' href='#Top'>to the top</a><br/>
+<br/><br/><br/></div><div id='SourceTab' class='tab'>
+<h2>Test Info</h2><hr/>
+<table class='summary'>
+<tr><th>Library Name</th><td>libhdr_histogram</td></tr>
+<tr><th>Version #1</th><td>0.9.13</td></tr>
+<tr><th>Version #2</th><td>0.10.0</td></tr>
+<tr><th>Arch</th><td>x86_64</td></tr>
+<tr><th>Subject</th><td width='150px'>Source Compatibility</td></tr>
+</table>
+<h2>Test Results</h2><hr/>
+<table class='summary'><tr><th>Total Header Files</th><td><a href='#Headers' style='color:Blue;'>6</a></td></tr>
+<tr><th>Total Libraries</th><td><a href='#Libs' style='color:Blue;'>1</a></td></tr>
+<tr><th>Total Symbols / Types</th><td>79 / 33</td></tr>
+<tr><th>Compatibility</th>
+<td class='compatible'>100%</td>
+</tr>
+</table>
+<h2>Problem Summary</h2><hr/>
+<table class='summary'><tr><th></th><th style='text-align:center;'>Severity</th><th style='text-align:center;'>Count</th></tr><tr><th>Added Symbols</th><td>-</td><td class='new'><a href='#Source_Added' style='color:Blue;'>2</a></td></tr>
+<tr><th>Removed Symbols</th><td>High</td><td>0</td></tr>
+<tr><th rowspan='3'>Problems with<br/>Data Types</th><td>High</td><td>0</td></tr>
+<tr><td>Medium</td><td>0</td></tr>
+<tr><td>Low</td><td>0</td></tr>
+<tr><th rowspan='3'>Problems with<br/>Symbols</th><td>High</td><td>0</td></tr>
+<tr><td>Medium</td><td>0</td></tr>
+<tr><td>Low</td><td>0</td></tr>
+<tr><th>Problems with<br/>Constants</th><td>Low</td><td>0</td></tr>
+<tr><th>Other Changes<br/>in Constants</th><td>-</td><td class='passed'><a href='#Other_Source_Changes_In_Constants' style='color:Blue;'>1</a></td></tr>
+</table>
+
+<a name='Source_Added'></a><h2>Added Symbols <span class='new'>&nbsp;2&nbsp;</span></h2><hr/>
+<span class='h_name'>hdr_histogram_log.h</span><br/>
+<span class="iname">hdr_log_read_entry&#160;<span class='sym_p'><span>(&#160;struct hdr_log_reader* <span class='color_p'>reader</span></span>, <span>FILE* <span class='color_p'>file</span></span>, <span>struct hdr_log_entry* <span class='color_p'>entry</span></span>, <span>struct hdr_histogram** <span class='color_p'>histogram</span></span>&#160;)</span></span><br/>
+<span class="iname">hdr_log_write_entry&#160;<span class='sym_p'><span>(&#160;struct hdr_log_writer* <span class='color_p'>writer</span></span>, <span>FILE* <span class='color_p'>file</span></span>, <span>struct hdr_log_entry* <span class='color_p'>entry</span></span>, <span>struct hdr_histogram* <span class='color_p'>histogram</span></span>&#160;)</span></span><br/>
+<br/>
+<a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Other_Source_Changes'></a><a name='Other_Source_Changes_In_Constants'></a>
+<h2>Other Changes in Constants <span class='passed'>&nbsp;1&nbsp;</span></h2><hr/>
+<span class='h_name'>hdr_histogram_log.h</span><br/>
+<span class="section" onclick="javascript:showContent(this, 'c_2')">
+<span class='ext'>[+]</span> HDR_LOG_TAG_MAX_BUFFER_LEN</span>
+<br/>
+<div id="c_2" style="display:none;">
+<table class='ptable'>
+<tr>
+<th class='pn'></th>
+<th class='chg'>Change</th>
+<th>Effect</th>
+</tr>
+<tr>
+<th>1</th>
+<td>The constant <b>HDR_LOG_TAG_MAX_BUFFER_LEN</b> with value <b>(1024)</b> has been added.</td>
+<td>No effect.</td>
+</tr>
+</table>
+<br/>
+</div>
+
+<br/>
+<a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Headers'></a><h2>Header Files <span class='gray'>&nbsp;6&nbsp;</span></h2><hr/>
+<div class='h_list'>
+hdr_histogram.h<br/>
+hdr_histogram_log.h<br/>
+hdr_interval_recorder.h<br/>
+hdr_thread.h<br/>
+hdr_time.h<br/>
+hdr_writer_reader_phaser.h<br/>
+</div>
+<br/><a class='top_ref' href='#Top'>to the top</a><br/>
+<a name='Libs'></a><h2>Libraries <span class='gray'>&nbsp;1&nbsp;</span></h2><hr/>
+<div class='lib_list'>
+libhdr_histogram.so.5.0.0<br/>
+</div>
+<br/><a class='top_ref' href='#Top'>to the top</a><br/>
+<br/><br/><br/></div><hr/>
+<div class='footer' align='right'><i>Generated by <a href='https://github.com/lvc/abi-compliance-checker'>ABI Compliance Checker</a> 2.3 &#160;</i>
+</div>
+<br/>
+
+</body></html>
diff --git a/hdrhistogram.spec b/hdrhistogram.spec
index 6c25771..881011e 100644
--- a/hdrhistogram.spec
+++ b/hdrhistogram.spec
@@ -7,25 +7,32 @@
# Please, preserve the changelog entries
#
-%global gh_commit 933c5dc1f347358450c4cd678132dd93e6ac2134
+%global gh_commit f400fa0de945d458dc83201bf5a369db5220899e
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner HdrHistogram
%global gh_project HdrHistogram_c
%global libname libhdr_histogram
-%global soname 5
+%global soname 6
Name: hdrhistogram
Summary: A High Dynamic Range (HDR) Histogram
-Version: 0.9.13
+Version: 0.10.0
Release: 1%{?dist}
License: CC0 or BSD
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
+Patch0: %{gh_project}-static.patch
+
+%if 0%{?rhel} == 6 || 0%{?rhel} == 7
+BuildRequires: cmake3 >= 3.5
+BuildRequires: devtoolset-6-toolchain
+%else
+BuildRequires: cmake >= 3.5
BuildRequires: gcc
BuildRequires: gcc-c++
-BuildRequires: cmake > 2.8
+%endif
BuildRequires: zlib-devel
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
@@ -62,24 +69,32 @@ This package contains the %{libname} library.
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch0 -p1 -b .pr84
mkdir docs
cp -pr examples docs/examples
-grep CMAKE_C_FLAGS CMakeLists.txt
-
%build
-export CFLAGS="%{optflags} -Wno-unknown-pragmas -std=gnu99"
+%if 0%{?rhel} == 6 || 0%{?rhel} == 7
+source /opt/rh/devtoolset-6/enable
-%cmake .
+%cmake3 \
+%else
+%cmake \
+%endif
+ -DHDR_HISTOGRAM_INSTALL_STATIC=OFF \
+ .
make %{_smp_mflags}
%install
+%if 0%{?rhel} == 6 || 0%{?rhel} == 7
+source /opt/rh/devtoolset-6/enable
+%endif
+
make install DESTDIR="%{buildroot}"
-rm %{buildroot}/%{_libdir}/%{libname}_static.a
rm %{buildroot}/%{_bindir}/*test
@@ -98,6 +113,7 @@ make test
%doc *.md
%{_bindir}/hiccup
%{_bindir}/hdr_decoder
+%{_bindir}/hdr_histogram_perf
%files libs
%{!?_licensedir:%global license %%doc}
@@ -109,10 +125,18 @@ make test
%doc *.md
%doc docs/examples
%{_libdir}/%{libname}.so
+%{_libdir}/cmake/hdr_histogram
%{_includedir}/hdr
%changelog
+* Mon Jun 15 2020 Remi Collet <remi@remirepo.net> - 0.10.0-1
+- update to 0.10.0
+- soname bump to 6
+- add option to not install static libraries from
+ https://github.com/HdrHistogram/HdrHistogram_c/pull/84
+- add hdr_histogram_perf command
+
* Tue Feb 18 2020 Remi Collet <remi@remirepo.net> - 0.9.13-1
- update to 0.9.13
- soname bump to 5
diff --git a/libhdr_histogram.xml b/libhdr_histogram.xml
index 747c7ec..b722015 100644
--- a/libhdr_histogram.xml
+++ b/libhdr_histogram.xml
@@ -9,7 +9,7 @@
<version>
<!-- Version of the library -->
-0.9.13
+0.10.0
</version>
<headers>