diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a03353 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/vault-0.0.1.tar.gz +/vault-0.0.2.tar.gz +/vault-0.0.3.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..aa272c1 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# vault + +The vault package \ No newline at end of file diff --git a/dead.package b/dead.package deleted file mode 100644 index b4eb464..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -EOL project diff --git a/sources b/sources new file mode 100644 index 0000000..41f8888 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vault-0.0.3.tar.gz) = eed630f74744da96cd593eddfa7293014ced101ff3cec246bcd7b86586eb41b73122fc6f12087160fb83e2c4bb4e695c8f0b832f3cdccb8a4e4db9a6d0206237 diff --git a/vault.spec b/vault.spec new file mode 100644 index 0000000..b46cb18 --- /dev/null +++ b/vault.spec @@ -0,0 +1,88 @@ +Name: vault +# NOTE: if you update version, *make sure* to also update `vault/__init__.py` +Version: 0.0.3 +Release: 1%{?dist} +Summary: Secrets storage for automated tasks + +License: GPLv2+ +URL: https://pagure.io/taskotron/vault +Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +Requires: python3-alembic +Requires: python3-flask +Requires: python3-flask-httpauth +Requires: python3-flask-login +Requires: python3-flask-wtf +Requires: python3-flask-oidc +Requires: python3-flask-restful +Requires: python3-flask-sqlalchemy +Requires: python3-crypto +Requires: python3-munch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + + +%description +Vault stores and controls encrypted data like passwords, +API keys or other secrets. +Implements bucket-based access control, and secret versioning. +%prep +%setup -q + +%check +# This seems to be the only place where we can remove pyco files, see: +# https://fedoraproject.org/wiki/Packaging:Python#Byte_compiling +rm -f %{buildroot}%{_sysconfdir}/vault/*.py{c,o} + +%build +%py3_build + +%install +%py3_install + +# apache and wsgi settings +install -d %{buildroot}%{_datadir}/vault/conf +install -p -m 0644 conf/vault.conf %{buildroot}%{_datadir}/vault/conf/ +install -p -m 0644 conf/vault.wsgi %{buildroot}%{_datadir}/vault/ + +# alembic config and data +cp -r --preserve=timestamps alembic %{buildroot}%{_datadir}/vault/ +install -p -m 0644 alembic.ini %{buildroot}%{_datadir}/vault/ + +# vault config +install -d %{buildroot}%{_sysconfdir}/vault +install -p -m 0644 conf/settings.py.example %{buildroot}%{_sysconfdir}/vault/settings.py + +%files +%doc README.md +%license LICENSE +%{python3_sitelib}/vault +%{python3_sitelib}/*.egg-info + +%{_bindir}/vault +%dir %{_sysconfdir}/vault +%config(noreplace) %{_sysconfdir}/vault/settings.py +%dir %{_datadir}/vault +%{_datadir}/vault/* + + +%changelog +* Thu Jan 24 2019 Frantisek Zatloukal - 0.0.3-1 +- Use Python 3 +- Use qa-make Makefile +- Fix secrets serialization +- Change the API side a bit +- Move OIDC config + +* Sat Jul 14 2018 Fedora Release Engineering - 0.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed May 30 2018 Frantisek Zatloukal - 0.0.2-1 +- Use python-flask-login for F27 +- New Release + +* Tue May 22 2018 Josef Skladanka - 0.0.1-1 +- initial packaging