[packages/libtorrent-rasterbar] - fix python bindings install, rel 9

baggins baggins at pld-linux.org
Wed Aug 16 22:25:41 CEST 2023


commit 19a31f6fb532d047313ebcc4684efe1597faf949
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Aug 16 22:18:03 2023 +0200

    - fix python bindings install, rel 9

 libtorrent-rasterbar.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec
index 4030d12..0f4d16b 100644
--- a/libtorrent-rasterbar.spec
+++ b/libtorrent-rasterbar.spec
@@ -6,7 +6,7 @@ Summary(hu.UTF-8):	C++ BitTorrent könyvtár
 Summary(pl.UTF-8):	Biblioteka BitTorrenta napisana w C++
 Name:		libtorrent-rasterbar
 Version:	1.2.7
-Release:	8.1
+Release:	9
 Epoch:		2
 License:	BSD
 Group:		Libraries
@@ -157,6 +157,10 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# fix python bindings install mixup
+%{__mv} $RPM_BUILD_ROOT%{py3_sitedir}/python_libtorrent-*.egg/* $RPM_BUILD_ROOT%{py3_sitedir}/
+%{__mv} $RPM_BUILD_ROOT%{py3_sitedir}/{EGG-INFO,libtorrent-%{version}-py%{py3_ver}.egg-info}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -185,4 +189,4 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python3-libtorrent-rasterbar
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py3_sitedir}/libtorrent.*.so
-%{py3_sitedir}/python_libtorrent-*.egg-info
+%{py3_sitedir}/libtorrent-*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtorrent-rasterbar.git/commitdiff/19a31f6fb532d047313ebcc4684efe1597faf949



More information about the pld-cvs-commit mailing list