%global _hardened_build 1 %define release 2 Name: ccnet Version: 6.1.3 Release: %{release}%{?dist} Summary: A framework for writing networked applications in C License: GPLv3 URL: https://github.com/haiwen/%{name} Source0: https://github.com/haiwen/%{name}/archive/v%{version}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: glib2-devel BuildRequires: sqlite-devel BuildRequires: openssl-devel BuildRequires: libevent2-devel BuildRequires: libuuid-devel BuildRequires: libsearpc-devel BuildRequires: libzdb-devel BuildRequires: python2-devel BuildRequires: vala %description Ccnet is a framework for writing networked applications in C. It provides the following basic services: * Peer identification * Connection Management * Service invocation * Message sending In ccnet network, there are two types of nodes, i.e., client and server. Server has the following functions: * User management * Group management * Cluster management %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: glib2-devel Requires: libevent2-devel Requires: libsearpc-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -qn %{name}-%{version} sed -i -e /\(DESTDIR\)/d libccnet.pc.in %build ./autogen.sh --enable-server --enable-client %configure --disable-static --disable-compile-demo sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool %{__make} %{?_smp_mflags} CFLAGS="%{optflags}" %install %{__make} install DESTDIR=%{buildroot} find %{buildroot} -name '*.la' -exec rm -f {} ';' %check %{__make} check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc HACKING README.markdown %doc LICENSE.txt %{_libdir}/libccnet.so.* %{_bindir}/%{name}* %{python_sitearch}/%{name} %files devel %doc LICENSE.txt %{_includedir}/* %{_libdir}/libccnet.so %{_libdir}/pkgconfig/lib%{name}.pc %changelog * Mon Feb 19 2018 Jean-Philippe Pialasse - 6.1.3-2 - first import for SME Server - adapt spec file for buildsystem * Mon Nov 06 2017 Julien Enselme - 6.1.3-1 - Update to 6.1.3 * Thu Aug 10 2017 Julien Enselme - 6.1.0-1 - Update to 6.1.0 * Tue Mar 07 2017 Julien Enselme - 6.0.4-1 - Update to 6.0.4 * Sun Oct 23 2016 Julien Enselme - 6.0.0-1 - Update to 6.0.0 - Unretire package * Tue Jul 19 2016 Fedora Release Engineering - 5.1.2-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Sat May 14 2016 Julien Enselme - 5.1.2-1 - Update to 5.1.2 * Tue Feb 02 2016 Nikos Roussos - 5.0.5-1 - Update to 5.0.5 * Thu Dec 03 2015 Nikos Roussos - 5.0.0-1 - Update to 5.0.0 - Add license to devel subpackage - Add optflags - Add libzdb-devel requirement - Add python2-devel requirement - unused-direct-shlib-dependency * Wed Sep 16 2015 Nikos Roussos - 4.3.4-1 - Update to 4.3.4 * Sat Apr 11 2015 Nikos Roussos - 4.1.4-1 - Update to 4.1.4 - Hardened build * Wed Nov 05 2014 Nikos Roussos - 3.1.8-1 - Update to 3.1.8 * Tue Aug 12 2014 Nikos Roussos - 3.1.4-1 - Initial version of the package