public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pylibmc] epel10.3: version upgrade; Added Python 3 support
@ 2026-09-25 17:22 Dominika Krejci
  0 siblings, 0 replies; only message in thread
From: Dominika Krejci @ 2026-09-25 17:22 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pylibmc
Branch : epel10.3
Commit : 0b2a48c0d708c164f3bd7dd66cb0c48191d37cd5
Author : Dominika Krejci <dkrejci@redhat.com>
Date   : 2016-05-05T13:07:38+02:00
Stats  : +64/-21 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pylibmc/c/0b2a48c0d708c164f3bd7dd66cb0c48191d37cd5?branch=epel10.3

Log:
version upgrade; Added Python 3 support

---
diff --git a/.gitignore b/.gitignore
index f1328f5..361ea92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /python-pylibmc-1.2.0.20110805gitf01c31.tar.xz
 /pylibmc-1.2.3.tar.gz
+/pylibmc-1.5.1.tar.gz

diff --git a/python-pylibmc.spec b/python-pylibmc.spec
index 04a9487..5c5bdcc 100644
--- a/python-pylibmc.spec
+++ b/python-pylibmc.spec
@@ -1,15 +1,20 @@
-Name:           python-pylibmc
-Version:        1.2.3
-Release:        7%{?dist}
-Summary:        Memcached client for Python
+%global srcname pylibmc
+%global sum Memcached client for Python
+
+Name:           python-%{srcname}
+Version:        1.5.1
+Release:        1%{?dist}
+Summary:        %{sum}
 
 Group:          Development/Libraries
 License:        BSD
 URL:            http://sendapatch.se/projects/pylibmc/
-Source0:        http://pypi.python.org/packages/source/p/pylibmc/pylibmc-%{version}.tar.gz
+Source0:        http://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
 
-BuildRequires:  python-devel
+BuildRequires:  python2-devel
 BuildRequires:  python-setuptools
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
 BuildRequires:  libmemcached-devel
 BuildRequires:  zlib-devel
 
@@ -19,28 +24,65 @@ around TangentOrg‘s libmemcached library. The interface is
 intentionally made as close to python-memcached as possible, 
 so that applications can drop-in replace it.
 
+
+%package -n python2-%{srcname}
+Summary:        %{sum}
+%{?python_provide:%python_provide python2-%{srcname}}
+
+%description -n python2-%{srcname}
+pylibmc is a client in Python 2 for memcached. It is a wrapper
+around TangentOrg‘s libmemcached library. The interface is 
+intentionally made as close to python-memcached as possible, 
+so that applications can drop-in replace it.
+
+
+%package -n python3-%{srcname}
+Summary:        %{sum}
+%{?python_provide:%python_provide python3-%{srcname}}
+
+%description -n python3-%{srcname}
+pylibmc is a client in Python 3 for memcached. It is a wrapper
+around TangentOrg‘s libmemcached library. The interface is 
+intentionally made as close to python-memcached as possible, 
+so that applications can drop-in replace it.
+
+
 %prep
-%setup -q -n pylibmc-%{version}
+%setup -q -n %{srcname}-%{version}
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
-%{?filter_setup:
-%filter_provides_in %{python_sitearch}/.*\.so$ 
-%filter_setup
-}
+%py2_build
+
+%py3_build
 
 %install
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-chmod 755 $RPM_BUILD_ROOT%{python_sitearch}/_pylibmc.so
+%py2_install
+chmod 755 $RPM_BUILD_ROOT%{python2_sitearch}/_pylibmc.so
 
-%files
+%py3_install
+
+# there is an asterisk in the name of the file,
+# because sometimes the suffix of the architecture is added
+chmod 755 $RPM_BUILD_ROOT%{python3_sitearch}/_pylibmc.cpython-%{python3_version_nodots}m*.so
+
+%files -n python2-%{srcname}
 %doc docs/ LICENSE README.rst
-%{python_sitearch}/pylibmc-%{version}*.egg-info
-%{python_sitearch}/pylibmc/
-%{python_sitearch}/*.so
+%{python2_sitearch}/%{srcname}-%{version}*.egg-info
+%{python2_sitearch}/%{srcname}/
+%{python2_sitearch}/*.so
+
+%files -n python3-%{srcname}
+%doc docs/ LICENSE README.rst
+%{python3_sitearch}/%{srcname}-%{version}*.egg-info
+%{python3_sitearch}/%{srcname}/
+%{python3_sitearch}/*.so
 
 
 %changelog
+* Wed May 04 2016 Dominika Krejci <dkrejci@redhat.com> - 1.5.1-1
+- version upgrade
+- Added Python 3 support
+
 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
@@ -56,10 +98,10 @@ chmod 755 $RPM_BUILD_ROOT%{python_sitearch}/_pylibmc.so
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
-* Tue Jan 28 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.2.3-2
+* Mon Jan 28 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.2.3-2
 - use dist macro
 
-* Tue Jan 28 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.2.3-1
+* Mon Jan 28 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 1.2.3-1
 - upstream release 1.2.3
 - resolves rhbz#905508
 

diff --git a/sources b/sources
index 5aaf824..8daaa60 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bfdcfef66a1bf260a65d2ffdcdd68466  pylibmc-1.2.3.tar.gz
+9077704e34afc8b6c7b0b686ae9579de  pylibmc-1.5.1.tar.gz

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-25 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 17:22 [rpms/python-pylibmc] epel10.3: version upgrade; Added Python 3 support Dominika Krejci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox