[packages/python-enet] - updated to 1.3.17
qboosh
qboosh at pld-linux.org
Thu Jul 4 21:30:50 CEST 2024
commit 0e0cccb1a353283e1ce334743c903f36e9e7ca87
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 4 21:22:27 2024 +0200
- updated to 1.3.17
pyenet-build-against-system-enet.patch | 31 +++++++++--------------------
python-enet.spec | 36 ++++++++++++++++++----------------
2 files changed, 28 insertions(+), 39 deletions(-)
---
diff --git a/python-enet.spec b/python-enet.spec
index 9041970..7feafff 100644
--- a/python-enet.spec
+++ b/python-enet.spec
@@ -1,32 +1,33 @@
-# No releases, source only available through svn.
-# svn co http://pyenet.googlecode.com/svn/trunk/ pyenet-trunk-svn24
%define module pyenet
-%define svnrev svn24
-%define rel 4
Summary: Python bindings for ENet
+Summary(pl.UTF-8): Wiązania Pythona do biblioteki ENet
Name: python-enet
-Version: 0.0.0
-Release: 0.%{svnrev}.%{rel}
-License: MIT
+Version: 1.3.17
+Release: 1
+License: BSD
Group: Libraries/Python
-URL: http://code.google.com/p/pyenet
-BuildRequires: rpmbuild(macros) >= 1.710
-Source0: %{module}-trunk-%{svnrev}.tar.bz2
-# Source0-md5: 1fa3e0ff41974fee2defc88d03a1c293
+#Source0Download: https://pypi.org/simple/pyenet/
+Source0: https://files.pythonhosted.org/packages/source/p/pyenet/%{module}-%{version}.tar.gz
+# Source0-md5: baecbf35aa9365fac5172ff29abe8d84
Patch0: pyenet-build-against-system-enet.patch
+URL: https://pypi.org/project/pyenet/
BuildRequires: enet-devel >= 1.3.3
BuildRequires: python-Cython >= 0.13
BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Pyenet was written originally by Scott Robinson <scott at tranzoa.com>.
+pyenet is a Python wrapper for the ENet library by Lee Salzman,
+<http://enet.bespin.org/>.
-It's currently maintained by Andrew Resch <andrewresch at gmail.com> and
-provides the Python bindings for ENet.
+%description -l pl.UTF-8
+pyenet to pythonowe obudowanie biblioteki ENet autorstwa Lee Salzmana
+<http://enet.bespin.org/>.
%prep
-%setup -q -n %{module}-trunk-%{svnrev}
+%setup -q -n %{module}-%{version}
%patch0 -p1
%build
@@ -34,6 +35,7 @@ provides the Python bindings for ENet.
%install
rm -rf $RPM_BUILD_ROOT
+
%py_install
%clean
@@ -41,6 +43,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE README ChangeLog
+%doc ChangeLog LICENSE README.rst
%attr(755,root,root) %{py_sitedir}/enet.so
-%{py_sitedir}/enet-%{version}-py*.egg-info
+%{py_sitedir}/pyenet-%{version}-py*.egg-info
diff --git a/pyenet-build-against-system-enet.patch b/pyenet-build-against-system-enet.patch
index c02d7f5..d374e77 100644
--- a/pyenet-build-against-system-enet.patch
+++ b/pyenet-build-against-system-enet.patch
@@ -3,34 +3,21 @@ Origin: debian
Forwarded: no
Last-Update: 2011-05-01
---- python-enet-0.0~svn21.orig/setup.py
-+++ python-enet-0.0~svn21/setup.py
-@@ -31,22 +31,22 @@ import sys
+--- pyenet-1.3.17/setup.py.orig 2024-07-04 21:07:03.828217066 +0200
++++ pyenet-1.3.17/setup.py 2024-07-04 21:08:40.471026840 +0200
+@@ -10,9 +10,6 @@ import re
source_files = ["enet.pyx"]
-_enet_files = glob.glob("enet/*.c")
-+# _enet_files = glob.glob("enet/*.c")
-
--if not _enet_files:
-- print("You need to download and extract the enet 1.3 source to enet/")
-- print("Download the source from: http://enet.bespin.org/SourceDistro.html")
-- print("See the README for more instructions")
-- sys.exit(1)
--
-source_files.extend(_enet_files)
-+# if not _enet_files:
-+# print("You need to download and extract the enet 1.3 source to enet/")
-+# print("Download the source from: http://enet.bespin.org/SourceDistro.html")
-+# print("See the README for more instructions")
-+# sys.exit(1)
-+#
-+# source_files.extend(_enet_files)
+-
+ lib_version = "1.3.17"
+ package_version = lib_version
- define_macros = [('HAS_POLL', None),
- ('HAS_FCNTL', None),
- ('HAS_MSGHDR_FLAGS', None),
- ('HAS_SOCKLEN_T', None) ]
+@@ -39,7 +36,7 @@ class build_ext(_build_ext):
+ define_macros = [('HAS_POLL', None), ('HAS_FCNTL', None),
+ ('HAS_MSGHDR_FLAGS', None), ('HAS_SOCKLEN_T', None)]
-libraries = []
+libraries = ['enet']
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-enet.git/commitdiff/0e0cccb1a353283e1ce334743c903f36e9e7ca87
More information about the pld-cvs-commit
mailing list