Hello community,
here is the log from the commit of package libtorrent-rasterbar for openSUSE:Factory checked in at 2017-04-11 09:35:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libtorrent-rasterbar (Old)
and /work/SRC/openSUSE:Factory/.libtorrent-rasterbar.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libtorrent-rasterbar"
Tue Apr 11 09:35:08 2017 rev:47 rq:483413 version:1.1.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/libtorrent-rasterbar/libtorrent-rasterbar.changes 2017-03-12 20:03:20.315372419 +0100
+++ /work/SRC/openSUSE:Factory/.libtorrent-rasterbar.new/libtorrent-rasterbar.changes 2017-04-11 09:35:11.333620974 +0200
@@ -1,0 +2,7 @@
+Wed Mar 29 14:36:39 UTC 2017 - sor.alexei@meowr.ru
+
+- Add libtorrent-rasterbar-1.1.2-fix-python-timestamp.patch:
+ Restore announce_entry's timestamp fields to POSIX time in
+ Python bindings (commit 852fada, boo#1031510).
+
+-------------------------------------------------------------------
New:
----
libtorrent-rasterbar-1.1.2-fix-python-timestamp.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libtorrent-rasterbar.spec ++++++
--- /var/tmp/diff_new_pack.oQC1H9/_old 2017-04-11 09:35:12.217496115 +0200
+++ /var/tmp/diff_new_pack.oQC1H9/_new 2017-04-11 09:35:12.221495550 +0200
@@ -31,6 +31,8 @@
Source: https://github.com/arvidn/%{_name}/releases/download/%{_name}-%{_version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM libtorrent-rasterbar-fix-build-boost-1.54.patch sor.alexei@meowr.ru -- Fix building with Boost 1.54.
Patch0: libtorrent-rasterbar-fix-build-boost-1.54.patch
+# PATCH-FIX-UPSTREAM libtorrent-rasterbar-1.1.2-fix-python-timestamp.patch -- Restore announce_entry's timestamp fields to POSIX time in Python bindings (commit 852fada).
+Patch1: libtorrent-rasterbar-1.1.2-fix-python-timestamp.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: python-devel
@@ -140,6 +142,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
++++++ libtorrent-rasterbar-1.1.2-fix-python-timestamp.patch ++++++
--- a/bindings/python/src/torrent_handle.cpp
+++ b/bindings/python/src/torrent_handle.cpp
@@ -231,6 +231,21 @@ void add_tracker(torrent_handle& h, dict d)
h.add_tracker(ae);
}
+namespace
+{
+#if defined BOOST_ASIO_HAS_STD_CHRONO
+ using std::chrono::system_clock;
+#else
+ using boost::chrono::system_clock;
+#endif
+
+ time_t to_ptime(time_point tpt)
+ {
+ return system_clock::to_time_t(system_clock::now()
+ + duration_cast