Hello community,

here is the log from the commit of package thrift for openSUSE:Factory checked 
in at 2017-11-21 15:19:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/thrift (Old)
 and      /work/SRC/openSUSE:Factory/.thrift.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "thrift"

Tue Nov 21 15:19:32 2017 rev:6 rq:542656 version:0.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/thrift/thrift.changes    2017-06-21 
13:49:41.506845924 +0200
+++ /work/SRC/openSUSE:Factory/.thrift.new/thrift.changes       2017-11-21 
15:19:36.920953114 +0100
@@ -1,0 +2,7 @@
+Fri Nov 10 13:50:10 UTC 2017 - [email protected]
+
+- Enable python3 support as well
+- Use naming of python subpackages that is consistent with current
+  Factory conventions
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ thrift.spec ++++++
--- /var/tmp/diff_new_pack.cJ3OD0/_old  2017-11-21 15:19:38.248904973 +0100
+++ /var/tmp/diff_new_pack.cJ3OD0/_new  2017-11-21 15:19:38.248904973 +0100
@@ -20,7 +20,8 @@
 %define libname    %{version}
 %bcond_without perl
 %bcond_without c
-%bcond_without python
+%bcond_without python2
+%bcond_without python3
 %bcond_with java
 %bcond_with ruby
 %bcond_with qt5
@@ -51,9 +52,14 @@
 BuildRequires:  pkgconfig(Qt5Core)
 BuildRequires:  pkgconfig(Qt5Network)
 %endif
-%if %{with python}
+%if %{with python2}
+BuildRequires:  python-rpm-macros
 BuildRequires:  pkgconfig(python2)
 %endif
+%if %{with python3}
+BuildRequires:  python-rpm-macros
+BuildRequires:  pkgconfig(python3)
+%endif
 %if %{with c}
 BuildRequires:  pkgconfig(glib-2.0)
 %endif
@@ -124,12 +130,29 @@
 Objective Caml, and Haskell.
 %endif
 
-%if %{with python}
-%package -n python-thrift
+%if %{with python2}
+%package -n python2-thrift
 Summary:        Thrift python library
 Group:          Development/Libraries/Python
+Provides:       python-thrift = %{version}-%{release}
+Obsoletes:      python-thrift < %{version}-%{release}
 
-%description -n python-thrift
+%description -n python2-thrift
+Thrift python library
+
+Thrift is a software framework for scalable cross-language services
+development. It combines a powerful software stack with a code generation
+engine to build services that work efficiently and seamlessly between C++,
+Java, C#, Python, Ruby, Perl, PHP, Objective C/Cocoa, Smalltalk, Erlang,
+Objective Caml, and Haskell.
+%endif
+
+%if %{with python3}
+%package -n python3-thrift
+Summary:        Thrift python library
+Group:          Development/Libraries/Python
+
+%description -n python3-thrift
 Thrift python library
 
 Thrift is a software framework for scalable cross-language services
@@ -161,9 +184,18 @@
 %make_install
 popd
 
-%if %{with python}
+%if %{with python2}
+pushd lib/py
+make clean
+%python2_install
+%fdupes %{buildroot}%{python_sitearch}
+popd
+%endif
+
+%if %{with python3}
 pushd lib/py
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+make clean
+%python3_install
 %fdupes %{buildroot}%{python_sitearch}
 popd
 %endif
@@ -210,11 +242,16 @@
 %{perl_vendorlib}/Thrift
 %endif
 
-%if %{with python}
-%files -n python-thrift
+%if %{with python2}
+%files -n python2-thrift
 %defattr(-,root,root)
-%{py_sitedir}/*
 %{python_sitearch}/*
 %endif
 
+%if %{with python3}
+%files -n python3-thrift
+%defattr(-,root,root)
+%{python3_sitearch}/*
+%endif
+
 %changelog




Reply via email to