Blame SPECS/python-memcached.spec

20a4f4
Name:           python-memcached
7b9730
Version:        1.59
7b9730
Release:        3%{?dist}
20a4f4
Summary:        A Python memcached client library
20a4f4
20a4f4
License:        Python
7b9730
URL:            https://github.com/linsomniac/python-memcached
7b9730
Source0:        https://github.com/linsomniac/python-memcached/archive/%{version}.tar.gz
20a4f4
20a4f4
BuildArch:      noarch
7b9730
BuildRequires:  python3-devel
7b9730
BuildRequires:  python3-setuptools
7b9730
BuildRequires:  python3-six
20a4f4
# Required for running test suite
7b9730
BuildRequires:  %{_bindir}/memcached
7b9730
BuildRequires:  python3-pytest
20a4f4
7b9730
%global _description\
7b9730
This software is a 100% Python interface to the memcached memory cache\
7b9730
daemon.  It is the client side software which allows storing values in one\
7b9730
or more, possibly remote, memcached servers.  Search google for memcached\
20a4f4
for more information.
20a4f4
7b9730
%description %_description
7b9730
7b9730
7b9730
%package -n python3-memcached
7b9730
Summary: %summary
7b9730
%{?python_provide:%python_provide python3-memcached}
7b9730
7b9730
%description -n python3-memcached %_description
7b9730
7b9730
20a4f4
%prep
7b9730
%autosetup -n %{name}-%{version}
7b9730
7b9730
# Fix version information
7b9730
sed -i 's/1\.58/1\.59/' memcache.py
7b9730
7b9730
# Use the standard library mock instead of the external one
7b9730
sed -i -e 's/^import mock/from unittest import mock/' \
7b9730
    tests/test_memcache.py
7b9730
20a4f4
20a4f4
%build
7b9730
%py3_build
7b9730
20a4f4
20a4f4
%install
7b9730
%py3_install
20a4f4
20a4f4
20a4f4
%check
20a4f4
pidfile=$(mktemp)
7b9730
memcached -d -P $pidfile
7b9730
7b9730
%pytest
7b9730
20a4f4
kill $(cat $pidfile)
20a4f4
7b9730
7b9730
%files -n python3-memcached
7b9730
%doc ChangeLog README.md
7b9730
%attr(755,root,root) %{python3_sitelib}/memcache.py
7b9730
%{python3_sitelib}/memcache.py
7b9730
%{python3_sitelib}/__pycache__/memcache.*
7b9730
%{python3_sitelib}/python_memcached-%{version}-py*.egg-info/
7b9730
20a4f4
20a4f4
%changelog
7b9730
* Mon Feb 08 2021 Charalampos Stratakis <cstratak@redhat.com> - 1.59-3
7b9730
- Enable testing with pytest and use the github tarball
7b9730
7b9730
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.59-2
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7b9730
7b9730
* Mon Sep 14 2020 Joel Capitao <jcapitao@redhat.com> - 1.59-1
7b9730
- Update to 1.59
7b9730
7b9730
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-14
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7b9730
7b9730
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.58-13
7b9730
- Rebuilt for Python 3.9
7b9730
7b9730
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-12
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7b9730
7b9730
* Tue Sep 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.58-11
7b9730
- Subpackage python2-memcached has been removed
7b9730
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
7b9730
7b9730
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.58-10
7b9730
- Rebuilt for Python 3.8
7b9730
7b9730
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-9
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7b9730
7b9730
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-8
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7b9730
7b9730
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-7
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7b9730
7b9730
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 1.58-6
7b9730
- Rebuilt for Python 3.7
7b9730
7b9730
* Wed May 23 2018 Miro Hrončok <mhroncok@redhat.com> - 1.58-5
7b9730
- Merge with the Python 3 package
7b9730
- Run upstream tests
7b9730
7b9730
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-4
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7b9730
7b9730
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.58-3
7b9730
- Update Python 2 dependency declarations to new packaging standards
7b9730
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
7b9730
7b9730
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.58-2
7b9730
- Python 2 binary package renamed to python2-memcached
7b9730
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
7b9730
7b9730
* Tue Aug 29 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 1.58-1
7b9730
- Upstream 1.58
7b9730
7b9730
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.54-6
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7b9730
7b9730
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.54-5
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7b9730
7b9730
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.54-4
7b9730
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
7b9730
7b9730
* Tue Mar  8 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.54-3
7b9730
- Use versioned python macros
7b9730
7b9730
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.54-2
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7b9730
7b9730
* Sat Dec 26 2015 Kevin Fenzi <kevin@scrye.com> - 1.54-1
7b9730
- Update to 1.54
7b9730
7b9730
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.53-3
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7b9730
7b9730
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.53-2
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7b9730
7b9730
* Tue Oct 15 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.53-1
7b9730
- New upstream release 1.53
7b9730
- Fixing set_multi() so that if the server closes the connection it will no
7b9730
  longer raise AttributeError
7b9730
- readline() now will mark the connection dead if the read fails
7b9730
- Changing check_keys to use re.match() instead of str.translate(), because
7b9730
  re.match() works with Python < 2.6
7b9730
- Add a MANIFEST.in file
7b9730
- Client() now takes a "check_keys" option, which defaults to True
7b9730
- Converting control character checking of keys based on performance testing of
7b9730
  alternatives
7b9730
- Converted unicode tests from using u''
7b9730
- Doing a "set" after server goes away, raised AttributeError: 'NoneType'
7b9730
  object has no attribute 'sendall'
7b9730
- incr/decr return None instead of 0 on server connection failure
7b9730
- Supports IPv6 connections using: "inet6:[fd00::32:19f7]:11000"
7b9730
7b9730
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.48-4
7b9730
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d47692
20a4f4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.48-3
20a4f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
20a4f4
20a4f4
* Thu Nov 01 2012 Radek Novacek <rnovacek@redhat.com> 1.48-2
20a4f4
- Enable running tests in %check
20a4f4
20a4f4
* Wed Oct 31 2012 Radek Novacek <rnovacek@redhat.com> 1.48-1
20a4f4
- Update to 1.48
20a4f4
20a4f4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.47-4
20a4f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
20a4f4
20a4f4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.47-3
20a4f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
20a4f4
20a4f4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.47-2
20a4f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
20a4f4
20a4f4
* Tue Dec 21 2010 Kevin Fenzi <kevin@tummy.vom> - 1.47-1
20a4f4
- Update to 1.47
20a4f4
20a4f4
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.43-6
20a4f4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
20a4f4
20a4f4
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.43-5
20a4f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
20a4f4
20a4f4
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.43-4
20a4f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
20a4f4
20a4f4
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.43-3
20a4f4
- Rebuild for Python 2.6
20a4f4
20a4f4
* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.43-2
20a4f4
- add BR: python-setuptools
20a4f4
20a4f4
* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.43-1
20a4f4
- fix license tag
20a4f4
- update to 1.43
20a4f4
20a4f4
* Tue Aug 14 2007 Sean Reifschneider <jafo@tummy.com> 1.39-1
20a4f4
- Update to 1.39 upstream release.
20a4f4
20a4f4
* Sat Aug 11 2007 Sean Reifschneider <jafo@tummy.com> 1.38-1
20a4f4
- Update to 1.38 upstream release.
20a4f4
20a4f4
* Sun Jun 10 2007 Sean Reifschneider <jafo@tummy.com> 1.36-3
20a4f4
- Changes based on feedback from Ruben Kerkhof:
20a4f4
- Fixing license.
20a4f4
- Removing PKG-INFO from doc.
20a4f4
- Fixing summary.
20a4f4
- Removing setuptools build dependency.
7b9730
- Changing permissions of memcache module to
20a4f4
20a4f4
* Sat Jun 09 2007 Sean Reifschneider <jafo@tummy.com> 1.36-2
20a4f4
- Adding python-devel build requirement.
20a4f4
20a4f4
* Sat Jun 09 2007 Sean Reifschneider <jafo@tummy.com> 1.36-1
20a4f4
- Initial RPM spec file.