package init
This commit is contained in:
parent
c0b67a6e87
commit
a763325135
BIN
pickleshare-0.7.4.tar.gz
Normal file
BIN
pickleshare-0.7.4.tar.gz
Normal file
Binary file not shown.
82
python-pickleshare.spec
Normal file
82
python-pickleshare.spec
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
Name: python-pickleshare
|
||||||
|
Version: 0.7.4
|
||||||
|
Release: 11
|
||||||
|
Summary: A small 'shelve' like datastore with concurrency support
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/pickleshare/pickleshare
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/p/pickleshare/pickleshare-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python2-setuptools python2-devel python3-setuptools 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-pickleshare
|
||||||
|
Summary: A small 'shelve' like datastore with concurrency support
|
||||||
|
%{?python_provide:%python_provide python2-pickleshare}
|
||||||
|
|
||||||
|
%description -n python2-pickleshare
|
||||||
|
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-pickleshare
|
||||||
|
Summary: A small 'shelve' like datastore with concurrency support
|
||||||
|
%{?python_provide:%python_provide python3-pickleshare}
|
||||||
|
|
||||||
|
%description -n python3-pickleshare
|
||||||
|
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 pickleshare-%{version} -p1
|
||||||
|
rm -rf pickleshare.egg-info
|
||||||
|
sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/python/' pickleshare.py
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py2_build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
%py2_install
|
||||||
|
|
||||||
|
%files -n python2-pickleshare
|
||||||
|
%license LICENSE
|
||||||
|
%{python2_sitelib}/pickleshare.py*
|
||||||
|
%{python2_sitelib}/pickleshare-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
|
%files -n python3-pickleshare
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/__pycache__/*
|
||||||
|
%{python3_sitelib}/pickleshare.py
|
||||||
|
%{python3_sitelib}/pickleshare-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Mar 5 2020 lingsheng <lingsheng@huawei.com> - 0.7.4-11
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user