Browse code

mesos python files fix

Change-Id: Iac4cd857a2b5a4cf484a5f22333e835548c2939c
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3864
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>
Reviewed-by: Sarah Choi <sarahc@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

Priyesh Padmavilasomb authored on 2017/09/26 05:43:17
Showing 1 changed files
... ...
@@ -3,7 +3,7 @@
3 3
 Summary:	Mesos
4 4
 Name:		mesos
5 5
 Version:	1.2.0
6
-Release:	1%{?dist}
6
+Release:	2%{?dist}
7 7
 License:	Apache
8 8
 URL:		http://mesos.apache.org
9 9
 Group:		Applications/System
... ...
@@ -38,8 +38,6 @@ Requires:	cyrus-sasl >= 2.1.26
38 38
 Requires:	expat
39 39
 Requires:	openjre >= 1.8.0.45
40 40
 Requires:	subversion >= 1.8.13
41
-Requires:       python-pip
42
-Requires:       protobuf-python
43 41
 
44 42
 
45 43
 %description
... ...
@@ -48,11 +46,18 @@ Requires:       protobuf-python
48 48
 
49 49
 %package	devel
50 50
 Summary:	Header and development files for mesos
51
-Requires:	%{name} = %{version}
51
+Requires:	%{name} = %{version}-%{release}
52 52
 %description    devel
53 53
  mesos-devel package contains header files, pkfconfig files, and libraries
54 54
  needed to build applications for mesos.
55 55
 
56
+%package	python
57
+Summary:	python bindings for mesos
58
+Requires:       python2
59
+Requires:       protobuf-python
60
+%description    python
61
+ python bindings for mesos
62
+
56 63
 %prep
57 64
 %setup -q
58 65
 
... ...
@@ -78,6 +83,10 @@ make check
78 78
 export JAVA_HOME=/usr/lib/jvm/OpenJDK-%{JAVA_VERSION}
79 79
 make DESTDIR=%{buildroot} install
80 80
 find %{buildroot}%{_libdir} -name '*.la' -delete
81
+mv %{buildroot}%{python2_sitelib}/mesos %{buildroot}/python-mesos
82
+rm -rf %{buildroot}%{python2_sitelib}/*
83
+mv %{buildroot}/python-mesos %{buildroot}%{python2_sitelib}/mesos
84
+find %{buildroot}%{python2_sitelib}/mesos -name '*.pyc' -delete
81 85
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
82 86
 
83 87
 %files
... ...
@@ -105,11 +114,15 @@ find %{buildroot}%{_libdir} -name '*.la' -delete
105 105
 %{_includedir}/*
106 106
 %{_libdir}/libfixed_resource_estimator*
107 107
 %{_libdir}/pkgconfig/mesos.pc
108
-%{python2_sitelib}/*
109 108
 %{_prefix}/etc/mesos/*
110 109
 %exclude %{_libdir}/debug/
111 110
 
111
+%files python
112
+%{python2_sitelib}/mesos/*
113
+
112 114
 %changelog
115
+*	Thu Sep 21 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.2.0-2
116
+-	for python files, package only mesos python files.
113 117
 *	Fri Sep 1 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.2.0-1
114 118
 -	Update to 1.2.0-1
115 119
 *	Fri May 19 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.28.2-3