Update to 3.5.1 (#1644323)

This commit is contained in:
Miro Hrončok 2018-11-12 10:27:01 +01:00
commit ef2514a5db
4 changed files with 9 additions and 76 deletions

1
.gitignore vendored
View file

@ -8,3 +8,4 @@
/libarcus-3.2.1.tar.gz
/libarcus-3.3.0.tar.gz
/libarcus-3.4.1.tar.gz
/libarcus-3.5.1.tar.gz

View file

@ -1,66 +0,0 @@
diff -up libArcus-3.4.1/cmake/FindSIP.cmake.sip_flags libArcus-3.4.1/cmake/FindSIP.cmake
--- libArcus-3.4.1/cmake/FindSIP.cmake.sip_flags 2017-10-28 17:28:39.000000000 -0500
+++ libArcus-3.4.1/cmake/FindSIP.cmake 2018-08-28 11:04:13.654862074 -0500
@@ -17,6 +17,8 @@
#
# SIP_INCLUDE_DIR - Directory holding the SIP C++ header file.
#
+# SIP_FLAGS - PYQT_CONFIGURATION["sip_flags"] content
+#
# SIP_DEFAULT_SIP_DIR - Default directory where .sip files should be installed
# into.
@@ -50,6 +52,7 @@ ELSE(SIP_VERSION)
STRING(REGEX REPLACE ".*\nsip_bin:([^\n]+).*$" "\\1" SIP_BINARY_PATH ${sip_config})
STRING(REGEX REPLACE ".*\ndefault_sip_dir:([^\n]+).*$" "\\1" SIP_DEFAULT_SIP_DIR ${sip_config})
STRING(REGEX REPLACE ".*\nsip_inc_dir:([^\n]+).*$" "\\1" SIP_INCLUDE_DIR ${sip_config})
+ STRING(REGEX REPLACE ".*\nsip_flags:([^\n]+).*$" "\\1" SIP_FLAGS ${sip_config})
SET(SIP_FOUND TRUE)
ENDIF(sip_config_returncode EQUAL 0)
diff -up libArcus-3.4.1/cmake/FindSIP.py.sip_flags libArcus-3.4.1/cmake/FindSIP.py
--- libArcus-3.4.1/cmake/FindSIP.py.sip_flags 2017-10-28 17:28:39.000000000 -0500
+++ libArcus-3.4.1/cmake/FindSIP.py 2018-08-28 11:01:26.165708149 -0500
@@ -54,9 +54,13 @@ except ImportError:
except ImportError:
fail("Unable to import sipconfig and determine your sip configuration.")
+from PyQt5.Qt import PYQT_CONFIGURATION
+sip_flags = PYQT_CONFIGURATION["sip_flags"]
+
print("sip_version:%06.0x" % sip_version)
print("sip_version_num:%d" % sip_version)
print("sip_version_str:%s" % sip_version_str)
print("sip_bin:%s" % sip_bin)
print("default_sip_dir:%s" % default_sip_dir)
print("sip_inc_dir:%s" % sip_inc_dir)
+print("sip_flags:%s" % sip_flags)
diff -up libArcus-3.4.1/cmake/SIPMacros.cmake.sip_flags libArcus-3.4.1/cmake/SIPMacros.cmake
--- libArcus-3.4.1/cmake/SIPMacros.cmake.sip_flags 2017-10-28 17:28:39.000000000 -0500
+++ libArcus-3.4.1/cmake/SIPMacros.cmake 2018-08-28 11:06:51.802890122 -0500
@@ -34,12 +34,16 @@
#
# SIP_EXTRA_OPTIONS - Extra command line options which should be passed on to
# SIP.
+#
+# SIP_FLAGS - PYQT_CONFIGURATION["sip_flags"] content
+#
SET(SIP_INCLUDES)
SET(SIP_TAGS)
SET(SIP_CONCAT_PARTS 8)
SET(SIP_DISABLE_FEATURES)
SET(SIP_EXTRA_OPTIONS)
+#
MACRO(ADD_SIP_PYTHON_MODULE MODULE_NAME MODULE_SIP)
@@ -102,7 +106,7 @@ MACRO(ADD_SIP_PYTHON_MODULE MODULE_NAME
OUTPUT ${_sip_output_files}
COMMAND ${CMAKE_COMMAND} -E echo ${message}
COMMAND ${CMAKE_COMMAND} -E touch ${_sip_output_files}
- COMMAND ${SIP_BINARY_PATH} ${_sip_tags} ${_sip_x} ${SIP_EXTRA_OPTIONS} -j ${SIP_CONCAT_PARTS} -c ${CMAKE_CURRENT_BINARY_DIR}/${_module_path} ${_sip_includes} ${_abs_module_sip}
+ COMMAND ${SIP_BINARY_PATH} ${_sip_tags} ${_sip_x} ${SIP_FLAGS} ${SIP_EXTRA_OPTIONS} -j ${SIP_CONCAT_PARTS} -c ${CMAKE_CURRENT_BINARY_DIR}/${_module_path} ${_sip_includes} ${_abs_module_sip}
DEPENDS ${_abs_module_sip} ${SIP_EXTRA_FILES_DEPEND}
)
# not sure if type MODULE could be uses anywhere, limit to cygwin for now

View file

@ -1,25 +1,19 @@
Name: libarcus
Version: 3.4.1
Release: 2%{?dist}
Version: 3.5.1
Release: 1%{?dist}
Summary: Communication library between internal components for Ultimaker software
License: LGPLv3+
URL: https://github.com/Ultimaker/libArcus
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# https://bugzilla.redhat.com/show_bug.cgi?id=1601917
Patch1: libArcus-3.4.1-sip_flags.patch
BuildRequires: protobuf-devel
BuildRequires: python3-devel
BuildRequires: python3-protobuf
BuildRequires: python3-sip-devel
# patch1 introduces additional dependency
BuildRequires: python3-qt5-base
BuildRequires: /usr/bin/sip
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: git
BuildRequires: git-core
%description
Arcus library contains C++ code and Python 3 bindings for creating a socket in
@ -45,6 +39,7 @@ Development files.
%package -n python3-arcus
Summary: Python 3 libArcus bindings
Requires: python3-sip
%{?python_provide:%python_provide python3-arcus}
%description -n python3-arcus
@ -83,6 +78,9 @@ make install DESTDIR=%{buildroot}
%{python3_sitearch}/Arcus.so
%changelog
* Mon Nov 12 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-1
- Update to 3.5.1 (#1644323)
* Tue Aug 28 2018 Rex Dieter <rdieter@fedoraproject.org> - 3.4.1-2
- use more robust upstreamable sip_flags.patch (#1601917)

View file

@ -1 +1 @@
SHA512 (libarcus-3.4.1.tar.gz) = 63ed8d8da389641b91ed955624c04ca5488f98d3ef409c4a94ad1962155d6aedd8d61ca0231543cfe4e92ae10beb00001f957eb48f74b0c21447a1bd9b66d85d
SHA512 (libarcus-3.5.1.tar.gz) = a3cf8599aee83aa080d23849c2c9760e1342fd738db58f4e4bb974a9c3f3dfa34dab1fead6292aa6e27ad9a659fda7b92f031c141039bc3118df8f97cc4b8712