1 |
%global _hardened_build 1 |
# define name of the scl |
2 |
%define release 2 |
%global scl python27 |
3 |
|
%scl_package %scl |
4 |
Name: ccnet |
|
5 |
Version: 6.1.3 |
# Defaults for the values for the python27/rh-python35 Software Collection. These |
6 |
Release: %{release}%{?dist} |
# will be used when python27-scldevel (or rh-python35-scldevel) is not in the |
7 |
Summary: A framework for writing networked applications in C |
# build root |
8 |
|
%{!?scl_python:%global scl_python python27} |
9 |
License: GPLv3 |
%{!?scl_no_vendor:%global scl_no_vendor python27} |
10 |
URL: https://github.com/haiwen/%{name} |
%{!?scl_prefix_python:%global scl_prefix_python %{scl_python}-} |
11 |
Source0: https://github.com/haiwen/%{name}/archive/v%{version}.tar.gz |
|
12 |
|
# Only for this build, you need to override default __os_install_post, |
13 |
BuildRequires: autoconf |
# because the default one would find /opt/.../lib/python2.7/ and try |
14 |
BuildRequires: automake |
# to bytecompile with the system /usr/bin/python2.7 |
15 |
BuildRequires: libtool |
%global __os_install_post %{%{scl_no_vendor}_os_install_post} |
16 |
BuildRequires: glib2-devel |
# Similarly, override __python_requires for automatic dependency generator |
17 |
BuildRequires: sqlite-devel |
%global __python_requires %{%{scl_no_vendor}_python_requires} |
18 |
BuildRequires: openssl-devel |
|
19 |
BuildRequires: libevent2-devel |
|
20 |
BuildRequires: libuuid-devel |
%define major 0 |
21 |
BuildRequires: libsearpc-devel |
%define libname lib%{name} |
22 |
BuildRequires: libzdb-devel |
%define develname %{name}-devel |
23 |
BuildRequires: python2-devel |
%define release 5 |
24 |
BuildRequires: vala |
Name: ccnet |
25 |
|
Version: 5.1.3 |
26 |
|
Release: %{release}%{dist} |
27 |
|
Summary: Networking library for Seafile |
28 |
|
License: GPLv3+ |
29 |
|
Group: Networking/File transfer |
30 |
|
URL: https://github.com/haiwen/ccnet |
31 |
|
Source0: https://github.com/haiwen/ccnet/archive/v%{version}/%{name}-%{version}.tar.gz |
32 |
|
#Source0: https://github.com/haiwen/ccnet/archive/v%{version}/v%{version}.tar.gz |
33 |
|
BuildRequires: pkgconfig(glib-2.0) |
34 |
|
BuildRequires: pkgconfig(jansson) |
35 |
|
#BuildRequires: pkgconfig(sqlite3) |
36 |
|
BuildRequires: sqlite-devel |
37 |
|
BuildRequires: sqlite |
38 |
|
BuildRequires: pkgconfig(openssl) |
39 |
|
BuildRequires: pkgconfig(libevent) |
40 |
|
BuildRequires: pkgconfig(uuid) >= 2.0 |
41 |
|
BuildRequires: pkgconfig(libsearpc) |
42 |
|
# maybe better with Buildrequires: %{scl_prefix_python}-libsearpc-devel |
43 |
|
#BuildRequires: pkgconfig(python2) |
44 |
|
# not for sclo py27 BuildRequires: python-devel |
45 |
|
#BuildRequires: vala >= 0.26 |
46 |
|
BuildRequires: vala |
47 |
|
Buildrequires: autoconf |
48 |
|
Buildrequires: automake |
49 |
|
Buildrequires: libtool |
50 |
|
# server requirements |
51 |
|
BuildRequires: pkgconfig(zdb) |
52 |
|
# scl python27 |
53 |
|
BuildRequires: scl-utils-build |
54 |
|
BuildRequires: %{scl_prefix_python}scldevel |
55 |
|
BuildRequires: %{scl_prefix_python}python-devel |
56 |
|
BuildRequires: %{scl_prefix_python}build |
57 |
|
BuildArch: x86_64 |
58 |
|
|
59 |
|
Requires: %{scl_prefix_python}pythonegg(2)(ccnet) = %{version}-%{release} |
60 |
|
|
61 |
%description |
%description |
62 |
Ccnet is a framework for writing networked applications in C. It provides the |
Ccnet is a framework for writing networked applications in C. |
63 |
following basic services: |
|
64 |
|
#---------------------------------------------------- |
65 |
|
|
66 |
* Peer identification |
%package server |
67 |
* Connection Management |
Summary: Ccnet server |
68 |
* Service invocation |
Group: Networking/File transfer |
69 |
* Message sending |
Requires: pythonegg(2)(ccnet) = %{version}-%{release} |
70 |
|
|
71 |
In ccnet network, there are two types of nodes, i.e., client and server. |
%description server |
72 |
Server has the following functions: |
Ccnet is a framework for writing networked applications in C. |
73 |
|
This package contains the server part for %{name}. |
74 |
|
|
75 |
* User management |
#---------------------------------------------------- |
|
* Group management |
|
|
* Cluster management |
|
76 |
|
|
77 |
|
%package -n %{libname} |
78 |
|
Summary: Library for %{name} |
79 |
|
Group: System/Libraries |
80 |
|
|
81 |
%package devel |
%description -n %{libname} |
82 |
Summary: Development files for %{name} |
Ccnet is a framework for writing networked applications in C. |
83 |
Requires: %{name}%{?_isa} = %{version}-%{release} |
This package contains library files for %{name}. |
|
Requires: glib2-devel |
|
|
Requires: libevent2-devel |
|
|
Requires: libsearpc-devel |
|
84 |
|
|
85 |
|
#---------------------------------------------------- |
86 |
|
|
87 |
%description devel |
%package -n %{develname} |
88 |
The %{name}-devel package contains libraries and header files for |
Summary: Development files for %{name} |
89 |
|
Group: Development/C |
90 |
|
Requires: %{libname} = %{version}-%{release} |
91 |
|
Provides: %{name}-devel = %{version}-%{release} |
92 |
|
Provides: lib%{name}-devel = %{version}-%{release} |
93 |
|
|
94 |
|
%description -n %{develname} |
95 |
|
The %{develname} package contains libraries and header files for |
96 |
developing applications that use %{name}. |
developing applications that use %{name}. |
97 |
|
|
98 |
|
#---------------------------------------------------- |
99 |
|
|
100 |
%prep |
%package -n %{scl_prefix_python}python-%{name} |
101 |
%setup -qn %{name}-%{version} |
Summary: Python 2 bindings for %{name} |
102 |
sed -i -e /\(DESTDIR\)/d libccnet.pc.in |
Group: Development/Python |
103 |
|
Provides: %{scl_prefix_python}pythonegg(2)(ccnet) = %{version}-%{release} |
104 |
|
|
105 |
|
%description -n %{scl_prefix_python}python-%{name} |
106 |
|
Ccnet is a framework for writing networked applications in C. |
107 |
|
This package contains the python 2 bindings for %{name}. |
108 |
|
|
109 |
%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}" |
|
110 |
|
|
111 |
|
%package -n %{name}-debug |
112 |
|
Summary: Debug for %{name} |
113 |
|
Group: Development/C |
114 |
|
|
115 |
%install |
%description -n %{name}-debug |
116 |
%{__make} install DESTDIR=%{buildroot} |
Ccnet is a framework for writing networked applications in C. |
|
find %{buildroot} -name '*.la' -exec rm -f {} ';' |
|
117 |
|
|
118 |
|
#---------------------------------------------------- |
119 |
|
|
120 |
%check |
%prep |
121 |
%{__make} check |
%setup -q |
122 |
|
|
123 |
|
sed -i -e /\(DESTDIR\)/d libccnet.pc.in |
124 |
|
|
125 |
%post -p /sbin/ldconfig |
NOCONFIGURE=1 ./autogen.sh |
126 |
|
|
127 |
|
%build |
128 |
|
scl enable %{scl_python} "bash" |
129 |
|
%{?scl:scl enable %{scl_python} - << \EOF} |
130 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
131 |
|
#%configure2_5x \ |
132 |
|
%configure \ |
133 |
|
--enable-server \ |
134 |
|
--disable-static \ |
135 |
|
--disable-compile-demo |
136 |
|
#%make_build |
137 |
|
make |
138 |
|
%{?scl:EOF} |
139 |
|
|
140 |
%postun -p /sbin/ldconfig |
%install |
141 |
|
%scl_install |
142 |
|
%{?scl:scl enable %{scl_python} - << \EOF} |
143 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
144 |
|
%{__make} install DESTDIR=%{buildroot} |
145 |
|
%{?scl:EOF} |
146 |
|
|
147 |
|
# we don't want these |
148 |
|
find %{buildroot} -name '*.la' -delete |
149 |
|
rm -rf %{buildroot}/etc/rpm/macros.python27-config |
150 |
|
rm -rf %{buildroot}/etc/scl/prefixes/python27 |
151 |
|
rm -rf %{buildroot}/opt/rh/python27/root/usr/tmp |
152 |
|
rm -rf %{buildroot}/opt/rh/python27/root/var/mail |
153 |
|
|
154 |
%files |
%files |
155 |
%doc HACKING README.markdown |
%doc HACKING README.markdown |
156 |
%doc LICENSE.txt |
#%doc COPYRIGHT |
157 |
%{_libdir}/libccnet.so.* |
%{_bindir}/%{name} |
158 |
%{_bindir}/%{name}* |
%{_bindir}/%{name}-init |
159 |
%{python_sitearch}/%{name} |
%{_bindir}/%{name}-tool |
160 |
|
|
161 |
|
%files server |
162 |
|
%doc HACKING README.markdown |
163 |
|
#%doc COPYRIGHT |
164 |
|
%{_bindir}/%{name}-server |
165 |
|
%{_bindir}/%{name}-servtool |
166 |
|
|
167 |
|
%files -n %{libname} |
168 |
|
%{_libdir}/lib%{name}.so.%{major} |
169 |
|
%{_libdir}/lib%{name}.so.%{major}.* |
170 |
|
|
171 |
%files devel |
%files -n %{develname} |
172 |
%doc LICENSE.txt |
%doc HACKING README.markdown |
173 |
%{_includedir}/* |
%{_includedir}/* |
174 |
%{_libdir}/libccnet.so |
%{_libdir}/lib%{name}.so |
175 |
%{_libdir}/pkgconfig/lib%{name}.pc |
%{_libdir}/pkgconfig/lib%{name}.pc |
176 |
|
|
177 |
|
%files -n %{scl_prefix_python}python-%{name} |
178 |
|
%doc HACKING README.markdown |
179 |
|
%{python_sitearch}/%{name}/ |
180 |
|
|
181 |
%changelog |
%files -n %{name}-debug |
182 |
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 6.1.3-2 |
/usr/src/debug/* |
183 |
- first import for SME Server |
/usr/lib/debug/.build-id/* |
184 |
- adapt spec file for buildsystem |
/usr/lib/debug/opt/rh/python27/root/usr/bin/* |
185 |
|
/usr/lib/debug/opt/rh/python27/root/usr/lib64/* |
|
* Mon Nov 06 2017 Julien Enselme <jujens@jujens.eu> - 6.1.3-1 |
|
|
- Update to 6.1.3 |
|
|
|
|
|
* Thu Aug 10 2017 Julien Enselme <jujens@jujens.eu> - 6.1.0-1 |
|
|
- Update to 6.1.0 |
|
|
|
|
|
* Tue Mar 07 2017 Julien Enselme <jujens@jujens.eu> - 6.0.4-1 |
|
|
- Update to 6.0.4 |
|
|
|
|
|
* Sun Oct 23 2016 Julien Enselme <jujens@jujens.eu> - 6.0.0-1 |
|
|
- Update to 6.0.0 |
|
|
- Unretire package |
|
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-2 |
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages |
|
|
|
|
|
* Sat May 14 2016 Julien Enselme <jujens@jujens.eu> - 5.1.2-1 |
|
|
- Update to 5.1.2 |
|
|
|
|
|
* Tue Feb 02 2016 Nikos Roussos <comzeradd@fedoraproject.org> - 5.0.5-1 |
|
|
- Update to 5.0.5 |
|
186 |
|
|
187 |
* Thu Dec 03 2015 Nikos Roussos <comzeradd@fedoraproject.org> - 5.0.0-1 |
%changelog |
188 |
- Update to 5.0.0 |
* Mon Mar 26 2018 Jean-Philipe Pialasse <tests@pialasse.com> Version: 5.1.3-5.sme |
189 |
- Add license to devel subpackage |
- rebuild for python27 sclo |
|
- Add optflags |
|
|
- Add libzdb-devel requirement |
|
|
- Add python2-devel requirement |
|
|
- unused-direct-shlib-dependency |
|
190 |
|
|
191 |
* Wed Sep 16 2015 Nikos Roussos <comzeradd@fedoraproject.org> - 4.3.4-1 |
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-4 |
192 |
- Update to 4.3.4 |
- rebuild with lib and server packages |
193 |
|
|
194 |
* Sat Apr 11 2015 Nikos Roussos <comzeradd@fedoraproject.org> - 4.1.4-1 |
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-2 |
195 |
- Update to 4.1.4 |
- first import for SME Server |
196 |
- Hardened build |
- adapt spec file for buildsystem |
197 |
|
|
198 |
* Wed Nov 05 2014 Nikos Roussos <comzeradd@fedoraproject.org> - 3.1.8-1 |
* Tue Nov 01 2016 daviddavid <daviddavid> 5.1.3-1.mga5 |
199 |
- Update to 3.1.8 |
+ Revision: 1064478 |
200 |
|
- new version: 5.1.3 |
201 |
|
|
202 |
|
+ neoclust <neoclust> |
203 |
|
- Use version 5.1.2 in backports |
204 |
|
- Add to backports |
205 |
|
|
206 |
|
* Thu Jun 30 2016 daviddavid <daviddavid> 5.1.3-1.mga6 |
207 |
|
+ Revision: 1038171 |
208 |
|
- new version: 5.1.3 |
209 |
|
|
210 |
|
* Thu May 12 2016 daviddavid <daviddavid> 5.1.1-2.mga6 |
211 |
|
+ Revision: 1014278 |
212 |
|
- add the server part of ccnet |
213 |
|
|
214 |
|
* Fri May 06 2016 daviddavid <daviddavid> 5.1.1-1.mga6 |
215 |
|
+ Revision: 1009881 |
216 |
|
- initial package ccnet |
217 |
|
|
|
* Tue Aug 12 2014 Nikos Roussos <comzeradd@fedoraproject.org> - 3.1.4-1 |
|
|
- Initial version of the package |
|