#global commit 2cfcaf3909d2c465671e383700e9342830aed4fe #global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: opendht Version: 1.3.3 Release: 1%{?commit:.git%{shortcommit}}%{?dist} Summary: A C++11 Distributed Hash Table implementation License: GPLv3+ URL: https://github.com/savoirfairelinux/opendht %if %{?commit:1}%{!?commit:0} Source0: https://github.com/savoirfairelinux/%{name}/archive/%{shortcommit}/%{name}-%{shortcommit}.tar.gz %else Source0: https://github.com/savoirfairelinux/%{name}/archive/%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: automake autoconf libtool BuildRequires: gnutls-devel BuildRequires: msgpack-devel BuildRequires: readline-devel BuildRequires: argon2-devel %description A lightweight C++11 Distributed Hash Table implementation. * Light and fast C++11 Kademlia DHT library. * Distributed shared key->value data-store * Clean and powerful distributed map API. * Storage of arbitrary binary values up to 64 kB. Keys are 160 bits long. * Optional public key cryptography layer providing data signature and encryption (using GnuTLS). * IPv4 and IPv6 support. %package devel Summary: Development files for OpenDHT Requires: %{name}%{?_isa} = %{version}-%{release} Requires: msgpack-devel Requires: gnutls-devel %description devel The opendht-devel package provides header and documentation files for developing applications which use OpenDHT. %prep %autosetup -p1 -n %{?commit:%{name}-%{commit}}%{!?commit:%{name}-%{version}} %build autoreconf -ifv %configure --disable-static %make_build %install %make_install find %{buildroot} -name "*.la" -exec rm {} \; %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README.md %license COPYING %{_bindir}/dhtchat %{_bindir}/dhtnode %{_bindir}/dhtscanner %{_libdir}/libopendht.so.0* %{_mandir}/man1/dhtnode.1* %files devel %{_includedir}/opendht.h %{_includedir}/opendht/ %{_libdir}/libopendht.so %{_libdir}/pkgconfig/opendht.pc %changelog * Tue May 30 2017 Sandro Mani - 1.3.3-1 - Update to 1.3.3 * Mon Mar 13 2017 Sandro Mani - 1.3.0-1 - Update to 1.3.0 * Mon Jan 02 2017 Sandro Mani - 1.2.1-1 - Update to 1.2.1 * Sat Jul 16 2016 Sandro Mani - 0.6.1-1 - Update to 0.6.1 * Tue May 05 2015 Sandro Mani - 0.1-0.1.git20150505 - Initial package