--- rpms/ccnet/contribs9/ccnet.spec 2018/02/20 03:59:27 1.1 +++ rpms/ccnet/contribs9/ccnet.spec 2018/02/27 03:38:27 1.2 @@ -1,145 +1,165 @@ -%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 +%define major 0 +%define libname lib%{name} +%define develname %{name}-devel +%define release 3 +Name: ccnet +Version: 5.1.3 +Release: %{release}%{dist} +Summary: Networking library for Seafile +License: GPLv3+ +Group: Networking/File transfer +URL: https://github.com/haiwen/ccnet +Source0: https://github.com/haiwen/ccnet/archive/v%{version}/%{name}-%{version}.tar.gz +#Source0: https://github.com/haiwen/ccnet/archive/v%{version}/v%{version}.tar.gz +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(jansson) +#BuildRequires: pkgconfig(sqlite3) +BuildRequires: sqlite-devel +BuildRequires: sqlite +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(libevent) +BuildRequires: pkgconfig(uuid) >= 2.0 +BuildRequires: pkgconfig(libsearpc) +#BuildRequires: pkgconfig(python2) +BuildRequires: python-devel +#BuildRequires: vala >= 0.26 +BuildRequires: vala +Buildrequires: autoconf +Buildrequires: automake +Buildrequires: libtool +# server requirements +BuildRequires: pkgconfig(zdb) +Requires: pythonegg(2)(ccnet) = %{version}-%{release} %description -Ccnet is a framework for writing networked applications in C. It provides the -following basic services: +Ccnet is a framework for writing networked applications in C. + +#---------------------------------------------------- -* Peer identification -* Connection Management -* Service invocation -* Message sending +%package server +Summary: Ccnet server +Group: Networking/File transfer +Requires: pythonegg(2)(ccnet) = %{version}-%{release} -In ccnet network, there are two types of nodes, i.e., client and server. -Server has the following functions: +%description server +Ccnet is a framework for writing networked applications in C. +This package contains the server part for %{name}. -* User management -* Group management -* Cluster management +#---------------------------------------------------- +%package -n %{libname} +Summary: Library for %{name} +Group: System/Libraries -%package devel -Summary: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: glib2-devel -Requires: libevent2-devel -Requires: libsearpc-devel +%description -n %{libname} +Ccnet is a framework for writing networked applications in C. +This package contains library files for %{name}. +#---------------------------------------------------- -%description devel -The %{name}-devel package contains libraries and header files for +%package -n %{develname} +Summary: Development files for %{name} +Group: Development/C +Requires: %{libname} = %{version}-%{release} +Provides: %{name}-devel = %{version}-%{release} +Provides: lib%{name}-devel = %{version}-%{release} + +%description -n %{develname} +The %{develname} package contains libraries and header files for developing applications that use %{name}. +#---------------------------------------------------- + +%package -n python-%{name} +Summary: Python 2 bindings for %{name} +Group: Development/Python +BuildArch: noarch +Provides: pythonegg(2)(ccnet) = %{version}-%{release} + +%description -n python-%{name} +Ccnet is a framework for writing networked applications in C. +This package contains the python 2 bindings for %{name}. + +#---------------------------------------------------- %prep -%setup -qn %{name}-%{version} +%setup -q + sed -i -e /\(DESTDIR\)/d libccnet.pc.in +NOCONFIGURE=1 ./autogen.sh %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}" - +#%configure2_5x \ +%configure \ + --enable-server \ + --disable-static \ + --disable-compile-demo +#%make_build +make %install +#%make_install +#make install %{__make} install DESTDIR=%{buildroot} -find %{buildroot} -name '*.la' -exec rm -f {} ';' - - -%check -%{__make} check - - -%post -p /sbin/ldconfig - - -%postun -p /sbin/ldconfig +# we don't want these +find %{buildroot} -name '*.la' -delete %files %doc HACKING README.markdown -%doc LICENSE.txt -%{_libdir}/libccnet.so.* -%{_bindir}/%{name}* -%{python_sitearch}/%{name} +#%doc COPYRIGHT +%{_bindir}/%{name} +%{_bindir}/%{name}-init +%{_bindir}/%{name}-tool +%files server +%doc HACKING README.markdown +#%doc COPYRIGHT +%{_bindir}/%{name}-server +%{_bindir}/%{name}-servtool + +%files -n %{libname} +%{_libdir}/lib%{name}.so.%{major} +%{_libdir}/lib%{name}.so.%{major}.* -%files devel -%doc LICENSE.txt +%files -n %{develname} +%doc HACKING README.markdown %{_includedir}/* -%{_libdir}/libccnet.so +%{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/lib%{name}.pc +%files -n python-%{name} +%doc HACKING README.markdown +%{python_sitearch}/%{name}/ + %changelog -* Mon Feb 19 2018 Jean-Philippe Pialasse - 6.1.3-2 +* Mon Feb 19 2018 Jean-Philippe Pialasse - 5.1.3-3 +- rebuild with lib and server packages + +* Mon Feb 19 2018 Jean-Philippe Pialasse - 5.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 Nov 01 2016 daviddavid 5.1.3-1.mga5 ++ Revision: 1064478 +- new version: 5.1.3 + + + neoclust + - Use version 5.1.2 in backports + - Add to backports + +* Thu Jun 30 2016 daviddavid 5.1.3-1.mga6 ++ Revision: 1038171 +- new version: 5.1.3 + +* Thu May 12 2016 daviddavid 5.1.1-2.mga6 ++ Revision: 1014278 +- add the server part of ccnet + +* Fri May 06 2016 daviddavid 5.1.1-1.mga6 ++ Revision: 1009881 +- initial package ccnet -* Tue Aug 12 2014 Nikos Roussos - 3.1.4-1 -- Initial version of the package