commit
97b593f7c5
@ -9,30 +9,19 @@ editing items, locking and unlocking collections (also support asynchronous unlo
|
|||||||
|
|
||||||
Name: python-SecretStorage
|
Name: python-SecretStorage
|
||||||
Version: 2.3.1
|
Version: 2.3.1
|
||||||
Release: 11
|
Release: 12
|
||||||
Summary: Python bindings to FreeDesktop.org Secret Service API
|
Summary: Python bindings to FreeDesktop.org Secret Service API
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://launchpad.net/python-secretstorage
|
URL: http://launchpad.net/python-secretstorage
|
||||||
Source0: https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-nose python2-devel python2-sphinx gnome-keyring python2-cryptography
|
BuildRequires: gnome-keyring xorg-x11-server-Xvfb dbus-x11 python3-devel
|
||||||
BuildRequires: python2-dbus xorg-x11-server-Xvfb dbus-x11 python3-devel python3-nose python3-dbus python3-cryptography
|
BuildRequires: python3-nose python3-dbus python3-cryptography python3-sphinx
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{package_description}
|
%{package_description}
|
||||||
|
|
||||||
%package -n python2-SecretStorage
|
|
||||||
Summary: Python 2.x module for secure storing of passwords and secrets
|
|
||||||
|
|
||||||
Requires: python2-dbus python2-cryptography
|
|
||||||
Recommends: python2-gobject
|
|
||||||
|
|
||||||
%{?python_provide:%python_provide python2-SecretStorage}
|
|
||||||
|
|
||||||
%description -n python2-SecretStorage
|
|
||||||
%{package_description}
|
|
||||||
|
|
||||||
%package -n python3-SecretStorage
|
%package -n python3-SecretStorage
|
||||||
Summary: Python 3.x module for secure storing of passwords and secrets
|
Summary: Python 3.x module for secure storing of passwords and secrets
|
||||||
|
|
||||||
@ -54,24 +43,15 @@ Documentation for SecretStorage
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n SecretStorage-%{version} -p1
|
%autosetup -n SecretStorage-%{version} -p1
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
rm -rf SecretStorage.egg-info
|
rm -rf SecretStorage.egg-info
|
||||||
rm .gitignore
|
rm .gitignore
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
cd %{py3dir}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
cd -
|
%{__python3} setup.py build_sphinx
|
||||||
|
|
||||||
%{__python2} setup.py build_sphinx
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
cd %{py3dir}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
cd -
|
|
||||||
|
|
||||||
rm -rf build/sphinx/html/.buildinfo
|
rm -rf build/sphinx/html/.buildinfo
|
||||||
rm -rf build/sphinx/doctrees
|
rm -rf build/sphinx/doctrees
|
||||||
@ -79,17 +59,8 @@ rm -rf build/sphinx/doctrees
|
|||||||
%check
|
%check
|
||||||
cd tests
|
cd tests
|
||||||
export $(dbus-launch)
|
export $(dbus-launch)
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} xvfb-run -a %{__python2} -m unittest discover
|
|
||||||
cd -
|
|
||||||
cd %{py3dir}
|
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run -a %{__python3} -m unittest discover
|
PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run -a %{__python3} -m unittest discover
|
||||||
|
|
||||||
%files -n python2-SecretStorage
|
|
||||||
%doc docs changelog README.rst
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/SecretStorage-%{version}-py?.?.egg-info
|
|
||||||
%{python2_sitelib}/secretstorage
|
|
||||||
|
|
||||||
%files -n python3-SecretStorage
|
%files -n python3-SecretStorage
|
||||||
%doc docs changelog README.rst
|
%doc docs changelog README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -100,6 +71,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run -a %{__python3} -m unittest d
|
|||||||
%doc build/sphinx/html/*
|
%doc build/sphinx/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 10 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 2.3.1-12
|
||||||
|
- Remove python2
|
||||||
|
|
||||||
* Mon Nov 25 2019 lihao <lihao129@huawei.com> - 2.3.1-11
|
* Mon Nov 25 2019 lihao <lihao129@huawei.com> - 2.3.1-11
|
||||||
- Package Init
|
- Package Init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user