python-easy-vault/python-easy-vault.spec

106 lines
3.5 KiB
RPMSpec
Raw Permalink Normal View History

%global _empty_manifest_terminate_build 0
Name: python-easy-vault
Version: 0.7.0
Release: 1
Summary: Secure vault files that are easy to use
License: Apache-2.0
URL: https://github.com/andy-maier/easy-vault
Source0: https://files.pythonhosted.org/packages/7e/8b/bdd0da7d035473fd22eed7eaa15635d61065eb59c6b6874ac0607512314e/easy-vault-0.7.0.tar.gz
BuildArch: noarch
%description
The easy-vault Python package provides commands for encrypting and decrypting
vault files that can be in any format. It provides for programmatic access to
encrypted vault files from Python programs, so that the file itself can stay
encrypted in the file system but can still be used by the program in clear text.
%package -n python3-easy-vault
Summary: Secure vault files that are easy to use
Provides: python-easy-vault
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-six
BuildRequires: python3-yamlloader
BuildRequires: python3-cffi
BuildRequires: python3-pyyaml
BuildRequires: python3-click
BuildRequires: python3-cryptography
BuildRequires: python3-keyring
# Test running requires
BuildRequires: python3-pytest
# General requires
Requires: python3-six
Requires: python3-yamlloader
Requires: python3-cffi
Requires: python3-pyyaml
Requires: python3-click
Requires: python3-cryptography
Requires: python3-keyring
%description -n python3-easy-vault
The easy-vault Python package provides commands for encrypting and decrypting
vault files that can be in any format. It provides for programmatic access to
encrypted vault files from Python programs, so that the file itself can stay
encrypted in the file system but can still be used by the program in clear text.
%package help
Summary: Secure vault files that are easy to use
Provides: python3-easy-vault-doc
%description help
The easy-vault Python package provides commands for encrypting and decrypting
vault files that can be in any format. It provides for programmatic access to
encrypted vault files from Python programs, so that the file itself can stay
encrypted in the file system but can still be used by the program in clear text.
%prep
%autosetup -n easy-vault-%{version}
%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 .
%check
pytest -v
%files -n python3-easy-vault -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Jul 15 2022 OpenStack_SIG <openstack@openeuler.org> - 0.7.0-1
- Init package python3-easy-vault of version 0.7.0