From 5b88009ff03ebe0deb234a4b0b58120c085a6a8a Mon Sep 17 00:00:00 2001 From: Nikos Roussos Date: Dec 04 2015 13:32:28 +0000 Subject: Initial commit (#1129429) --- diff --git a/.gitignore b/.gitignore index e69de29..535edc3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v5.0.0.tar.gz diff --git a/ccnet.spec b/ccnet.spec new file mode 100644 index 0000000..0bc49a2 --- /dev/null +++ b/ccnet.spec @@ -0,0 +1,118 @@ +%global _hardened_build 1 + +Name: ccnet +Version: 5.0.0 +Release: 1%{?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: libevent-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: libevent-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 +%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 COPYRIGHT HACKING README.markdown +%license LICENCE.txt +%{_libdir}/libccnet.so.* +%{_bindir}/%{name}* +%{python2_sitearch}/%{name} + + +%files devel +%license LICENCE.txt +%{_includedir}/* +%{_libdir}/libccnet.so +%{_libdir}/pkgconfig/lib%{name}.pc + + +%changelog +* 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 diff --git a/sources b/sources index e69de29..3e25109 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0e4426566ef9393892408f8a9a9a02b4 v5.0.0.tar.gz