Hello community,

here is the log from the commit of package antlr for openSUSE:Factory checked 
in at 2018-01-16 09:38:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/antlr (Old)
 and      /work/SRC/openSUSE:Factory/.antlr.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "antlr"

Tue Jan 16 09:38:41 2018 rev:42 rq:564042 version:2.7.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/antlr/antlr.changes      2017-12-19 
10:52:05.743863775 +0100
+++ /work/SRC/openSUSE:Factory/.antlr.new/antlr.changes 2018-01-16 
09:39:01.887066977 +0100
@@ -1,0 +2,7 @@
+Fri Jan 12 11:53:47 UTC 2018 - tchva...@suse.com
+
+- Add condition about python2 module, the rewrite happened in antlr4
+  for python3 support and it is completely different than the antlr2
+  * The python module is not used by any package in TW bsc#1068226
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ antlr-bootstrap.spec ++++++
--- /var/tmp/diff_new_pack.ItgT5q/_old  2018-01-16 09:39:02.791024665 +0100
+++ /var/tmp/diff_new_pack.ItgT5q/_new  2018-01-16 09:39:02.795024478 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package antlr-bootstrap
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++++++ antlr.spec ++++++
--- /var/tmp/diff_new_pack.ItgT5q/_old  2018-01-16 09:39:02.827022980 +0100
+++ /var/tmp/diff_new_pack.ItgT5q/_new  2018-01-16 09:39:02.831022792 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package antlr
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without python2
 Name:           antlr
 Version:        2.7.7
 Release:        0
@@ -36,7 +37,9 @@
 BuildRequires:  gcc-c++
 BuildRequires:  java-devel >= 1.6
 BuildRequires:  javapackages-tools
+%if %{with python2}
 BuildRequires:  python2-base
+%endif
 BuildRequires:  xml-commons-apis
 Requires:       %{name}-java
 Provides:       %{name}-bootstrap = %{version}
@@ -124,7 +127,9 @@
     jar
 %configure
 make -j1
+%if %{with python2}
 %py_compile lib/python/antlr
+%endif
 
 %install
 #### jars ###
@@ -141,14 +146,17 @@
 install -m 0755 scripts/%{name}-config %{buildroot}%{_bindir}/
 
 ### python runtime ###
+%if %{with python2}
 install -d -m 0755 %{buildroot}%{py_sitedir}/%{name}
 cp -a lib/python/antlr/* %{buildroot}%{py_sitedir}/%{name}
 # compat symlink
 ln -s -f %{py_sitedir}/%{name}/*.py %{buildroot}%{_datadir}/%{name}-%{version}/
 ln -s -f %{py_sitedir}/%{name}/*.pyc 
%{buildroot}%{_datadir}/%{name}-%{version}/
+%endif
 
 ### cpp runtime ###
-install -m 0644 lib/cpp/src/lib%{name}.a %{buildroot}%{_libdir}
+mkdir -p %{buildroot}%{_libdir}
+install -m 0755 lib/cpp/src/lib%{name}.a %{buildroot}%{_libdir}
 install -d -m 0755 %{buildroot}%{_includedir}/%{name}
 install -m 0644 lib/cpp/%{name}/*hpp %{buildroot}%{_includedir}/%{name}
 
@@ -173,13 +181,15 @@
 %doc doc examples
 
 %files devel
-%attr(755,root,root) %{_libdir}/libantlr.a
+%{_libdir}/libantlr.a
 %{_includedir}/%{name}
 
+%if %{with python2}
 %files -n python-%{name}
 %dir %{_datadir}/%{name}-%{version}
 %{_datadir}/%{name}-%{version}/*py
 %{_datadir}/%{name}-%{version}/*pyc
 %{py_sitedir}/%{name}
+%endif
 
 %changelog


Reply via email to