diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bb40ad7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vault-0.0.1.tar.gz +/vault-0.0.2.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..2bb50d7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vault-0.0.2.tar.gz) = 377a215171291222be190ae5042d13c3db63defd9aed7261eedc75433e3261da2cf1f114bdfece9e39dbe19ee2272e7193881a8f5a29c0b30ee9553c5f862c3e diff --git a/vault.spec b/vault.spec new file mode 100644 index 0000000..946381d --- /dev/null +++ b/vault.spec @@ -0,0 +1,81 @@ +Name: vault +Version: 0.0.2 +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: python2-alembic +Requires: python2-flask +Requires: python2-flask-httpauth +%if 0%{?fedora} <= 27 +Requires: python-flask-login +Requires: python-flask-wtf +%else +Requires: python2-flask-login +Requires: python2-flask-wtf +%endif +Requires: python2-flask-oidc +Requires: python2-flask-restful +Requires: python2-flask-sqlalchemy +Requires: python2-crypto + +BuildRequires: python2-devel +BuildRequires: python2-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 +%py2_build + +%install +%py2_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 +%{python2_sitelib}/vault +%{python2_sitelib}/*.egg-info + +%{_bindir}/vault +%dir %{_sysconfdir}/vault +%config(noreplace) %{_sysconfdir}/vault/settings.py +%dir %{_datadir}/vault +%{_datadir}/vault/* + + +%changelog +* 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