diff --git a/pykeepass-4.0.1.tar.gz b/pykeepass-4.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f572377b37be605e17f59a19fe082832605f6fdb Binary files /dev/null and b/pykeepass-4.0.1.tar.gz differ diff --git a/python-pykeepass.spec b/python-pykeepass.spec new file mode 100644 index 0000000000000000000000000000000000000000..68d2a71d7c6bacb788b8a48b38a5061c466d2966 --- /dev/null +++ b/python-pykeepass.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pykeepass +Version: 4.0.1 +Release: 1 +Summary: Python library to interact with keepass databases (supports KDBX3 and KDBX4) +License: GPL3 +URL: https://github.com/libkeepass/pykeepass +Source0: https://files.pythonhosted.org/packages/f1/08/b4b8f7bce23190ed4f34f4d9cf4f75f8a255f4f4c378296daf4b7027d2cb/pykeepass-4.0.1.tar.gz +BuildArch: noarch + + +%description +Python library to interact with keepass databases (supports KDBX3 and KDBX4) + +%package -n python3-pykeepass +Summary: Python library to interact with keepass databases (supports KDBX3 and KDBX4) +Provides: python-pykeepass +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-pykeepass +Python library to interact with keepass databases (supports KDBX3 and KDBX4) + +%package help +Summary: Development documents and examples for pykeepass +Provides: python3-pykeepass-doc +%description help +Python library to interact with keepass databases (supports KDBX3 and KDBX4) + +%prep +%autosetup -n pykeepass-4.0.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pykeepass -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Sep 06 2021 Python_Bot - 4.0.1-1 +- Package Init