Browse code

Bug 1937037:[Package: python-cassandra-driver] MakeCheck failed Added new package libev Change-Id: I1b2b0113f99784c115b6effbc67313d80353dd5f Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3548 Reviewed-by: Chang Lee <changlee@vmware.com> Tested-by: gerrit-photon <photon-checkins@vmware.com>

harishspqr authored on 2017/08/17 03:46:10
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,55 @@
0
+Summary:	A full-featured and high-performance event loop
1
+Name:		libev
2
+Version:	4.24
3
+Release:	1%{?dist}
4
+License:	BSD-2-Clause
5
+URL:		http://software.schmorp.de/pkg/libev.html
6
+Source0:	http://dist.schmorp.de/libev/%{name}-%{version}.tar.gz
7
+%define sha1 libev=436dd8eff00a45f8805b8cacfe4dd3bd993caedb
8
+Group:		System/Library
9
+Vendor:		VMware, Inc.
10
+Distribution:	Photon
11
+BuildRequires:  pkg-config
12
+#BuildRequires:  openssl-devel
13
+#Requires:       openssl
14
+
15
+%description
16
+A full-featured and high-performance event loop that is loosely modelled after libevent, but without its limitations and bugs.
17
+
18
+%package        devel
19
+Summary:        Development files for libev
20
+Group:          Development/Libraries
21
+Requires:       %{name} = %{version}-%{release}
22
+
23
+%description    devel
24
+The subpackage includes all development related headers and library for libev
25
+
26
+%prep
27
+%setup -q -n %{name}-%{version}
28
+
29
+%build
30
+%configure --disable-static
31
+make %{?_smp_mflags}
32
+
33
+%install
34
+%makeinstall
35
+find %{buildroot} -name '*.la' -delete
36
+
37
+%check
38
+make %{?_smp_mflags} -k check
39
+
40
+%post -p /sbin/ldconfig
41
+
42
+%files
43
+%defattr(-,root,root)
44
+%{_libdir}/*.so.*
45
+%{_mandir}/*
46
+
47
+%files devel
48
+%defattr(-,root,root)
49
+%{_includedir}/*
50
+%{_libdir}/*.so
51
+
52
+%changelog
53
+*	Mon Apr 03 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 4.24-1
54
+-       Initial Version.
... ...
@@ -6,7 +6,7 @@
6 6
 Summary:        A modern, feature-rich and highly-tunable Python client library for Apache Cassandra (2.1+)
7 7
 Name:           python-cassandra-driver
8 8
 Version:        3.10.0
9
-Release:        2%{?dist}
9
+Release:        3%{?dist}
10 10
 Url:            https://github.com/datastax/python-driver#datastax-python-driver-for-apache-cassandra
11 11
 License:        Apache 2.0
12 12
 Group:          Development/Languages/Python
... ...
@@ -20,7 +20,10 @@ BuildRequires:  cython
20 20
 BuildRequires:  python2-libs
21 21
 BuildRequires:  python2-devel
22 22
 BuildRequires:  python-setuptools
23
+BuildRequires:  python-pip
23 24
 BuildRequires:  python-pytest
25
+BuildRequires:  libev-devel
26
+BuildRequires:  libev
24 27
 Requires:       python2
25 28
 Requires:       python2-libs
26 29
 
... ...
@@ -61,14 +64,10 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --no-cython
61 61
 popd
62 62
 
63 63
 %check
64
-PATH=%{buildroot}%{_bindir}:${PATH} \
65
-PYTHONPATH=%{buildroot}%{python2_sitelib} \
66
-    py.test-%{python2_version} -v
67
-pushd ../p3dir
68
-PATH=%{buildroot}%{_bindir}:${PATH} \
69
-PYTHONPATH=%{buildroot}%{python3_sitelib} \
70
-    py.test-%{python3_version} -v
71
-popd
64
+easy_install_2=$(ls /usr/bin |grep easy_install |grep 2)
65
+$easy_install_2 nose
66
+pip install eventlet
67
+python setup.py nosetests -w tests/unit/
72 68
 
73 69
 %files
74 70
 %defattr(-,root,root)
... ...
@@ -79,6 +78,8 @@ popd
79 79
 %{python3_sitelib}/*
80 80
 
81 81
 %changelog
82
+*   Wed Aug 16 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.10.0-3
83
+-   Fix make check.
82 84
 *   Tue Jun 20 2017 Xiaolin Li <xiaolinl@vmware.com> 3.10.0-2
83 85
 -   Add python3-setuptools and python3-xml to python3 sub package Buildrequires.
84 86
 *   Thu Jun 15 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.10.0-1