diff --git a/pykeepass-3.0.3.tar.gz b/pykeepass-3.0.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ecdc5ed5ebfb1bf8129002916ffa04abf7bfee96 Binary files /dev/null and b/pykeepass-3.0.3.tar.gz differ diff --git a/python-pykeepass.spec b/python-pykeepass.spec new file mode 100644 index 0000000000000000000000000000000000000000..add9fc91479e118bb4d6d35ab2ddbf8c3afe78d3 --- /dev/null +++ b/python-pykeepass.spec @@ -0,0 +1,57 @@ +# Created by pyp2rpm-3.3.2 +%global pypi_name pykeepass + +Name: python-%{pypi_name} +Version: 3.0.3 +Release: 2 +Summary: Python library to interact with keepass databases + +License: GPLv3 +URL: https://github.com/pschmitt/pykeepass +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description +This library allows you to write entries to a KeePass database. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(argon2-cffi) +Requires: python3dist(construct) +Requires: python3dist(future) +Requires: python3dist(lxml) +Requires: python3dist(pycryptodomex) +Requires: python3dist(python-dateutil) + +%description -n python3-%{pypi_name} +This library allows you to write entries to a KeePass database. + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info +# Built with system 'pycryptodomex' +sed -i 's!pycryptodome!pycryptodomex!' requirements.txt +sed -i 's!pycryptodome!pycryptodomex!' setup.py +sed -i 's!Crypto.Cipher!Cryptodome.Cipher!' pykeepass/kdbx_parsing/common.py +sed -i 's!Crypto.Util!Cryptodome.Util!' pykeepass/kdbx_parsing/common.py +sed -i 's!Crypto.Util!Cryptodome.Util!' pykeepass/kdbx_parsing/twofish.py + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog