/[smecontribs]/rpms/ccnet/contribs9/ccnet.spec
ViewVC logotype

Contents of /rpms/ccnet/contribs9/ccnet.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Mon Mar 26 20:51:50 2018 UTC (6 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: ccnet-5_1_3-5_el6_sme
Changes since 1.3: +62 -10 lines
* Mon Mar 26 2018 Jean-Philipe Pialasse <tests@pialasse.com> Version:	5.1.3-5.sme
- rebuild for python27 sclo

1 # define name of the scl
2 %global scl python27
3 %scl_package %scl
4
5 # Defaults for the values for the python27/rh-python35 Software Collection. These
6 # will be used when python27-scldevel (or rh-python35-scldevel) is not in the
7 # build root
8 %{!?scl_python:%global scl_python python27}
9 %{!?scl_no_vendor:%global scl_no_vendor python27}
10 %{!?scl_prefix_python:%global scl_prefix_python %{scl_python}-}
11
12 # Only for this build, you need to override default __os_install_post,
13 # because the default one would find /opt/.../lib/python2.7/ and try
14 # to bytecompile with the system /usr/bin/python2.7
15 %global __os_install_post %{%{scl_no_vendor}_os_install_post}
16 # Similarly, override __python_requires for automatic dependency generator
17 %global __python_requires %{%{scl_no_vendor}_python_requires}
18
19
20 %define major 0
21 %define libname lib%{name}
22 %define develname %{name}-devel
23 %define release 5
24 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
62 Ccnet is a framework for writing networked applications in C.
63
64 #----------------------------------------------------
65
66 %package server
67 Summary: Ccnet server
68 Group: Networking/File transfer
69 Requires: pythonegg(2)(ccnet) = %{version}-%{release}
70
71 %description server
72 Ccnet is a framework for writing networked applications in C.
73 This package contains the server part for %{name}.
74
75 #----------------------------------------------------
76
77 %package -n %{libname}
78 Summary: Library for %{name}
79 Group: System/Libraries
80
81 %description -n %{libname}
82 Ccnet is a framework for writing networked applications in C.
83 This package contains library files for %{name}.
84
85 #----------------------------------------------------
86
87 %package -n %{develname}
88 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}.
97
98 #----------------------------------------------------
99
100 %package -n %{scl_prefix_python}python-%{name}
101 Summary: Python 2 bindings for %{name}
102 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 #----------------------------------------------------
110
111 %package -n %{name}-debug
112 Summary: Debug for %{name}
113 Group: Development/C
114
115 %description -n %{name}-debug
116 Ccnet is a framework for writing networked applications in C.
117
118 #----------------------------------------------------
119
120 %prep
121 %setup -q
122
123 sed -i -e /\(DESTDIR\)/d libccnet.pc.in
124
125 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 %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
155 %doc HACKING README.markdown
156 #%doc COPYRIGHT
157 %{_bindir}/%{name}
158 %{_bindir}/%{name}-init
159 %{_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 -n %{develname}
172 %doc HACKING README.markdown
173 %{_includedir}/*
174 %{_libdir}/lib%{name}.so
175 %{_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 %files -n %{name}-debug
182 /usr/src/debug/*
183 /usr/lib/debug/.build-id/*
184 /usr/lib/debug/opt/rh/python27/root/usr/bin/*
185 /usr/lib/debug/opt/rh/python27/root/usr/lib64/*
186
187 %changelog
188 * Mon Mar 26 2018 Jean-Philipe Pialasse <tests@pialasse.com> Version: 5.1.3-5.sme
189 - rebuild for python27 sclo
190
191 * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-4
192 - rebuild with lib and server packages
193
194 * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-2
195 - first import for SME Server
196 - adapt spec file for buildsystem
197
198 * Tue Nov 01 2016 daviddavid <daviddavid> 5.1.3-1.mga5
199 + 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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed