%global pypi_name pickleshare Name: python-%{pypi_name} Version: 0.7.3 Release: 1%{?dist} Summary: Tiny 'shelve'-like database with concurrency support License: MIT URL: https://github.com/pickleshare/pickleshare Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-setuptools BuildRequires: python2-devel BuildRequires: python3-setuptools BuildRequires: python3-devel %description PickleShare - a small ‘shelve’ like datastore with concurrency support. Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike shelve, many processes can access the database simultaneously. Changing a value in database is immediately visible to other processes accessing the same database. Concurrency is possible because the values are stored in separate files. Hence the “database” is a directory where all files are governed by PickleShare. %package -n python2-%{pypi_name} Summary: Tiny 'shelve'-like database with concurrency support %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} PickleShare - a small ‘shelve’ like datastore with concurrency support. Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike shelve, many processes can access the database simultaneously. Changing a value in database is immediately visible to other processes accessing the same database. Concurrency is possible because the values are stored in separate files. Hence the “database” is a directory where all files are governed by PickleShare. %package -n python3-%{pypi_name} Summary: Tiny 'shelve'-like database with concurrency support %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} PickleShare - a small ‘shelve’ like datastore with concurrency support. Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike shelve, many processes can access the database simultaneously. Changing a value in database is immediately visible to other processes accessing the same database. Concurrency is possible because the values are stored in separate files. Hence the “database” is a directory where all files are governed by PickleShare. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %py2_install %files -n python2-%{pypi_name} %license LICENSE %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %license LICENSE %dir %{python3_sitelib}/__pycache__/ %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Fri Aug 12 2016 Mukundan Ragavan - 0.7.3-1 - Initial package.