File saltbundlepy-venvjail.spec of Package saltbundlepy-venvjail

#
# spec file for package saltbundlepy-venvjail
#
# Copyright (c) 2021 SUSE LLC.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           saltbundlepy-venvjail
Version:        0.2.git.1634900618.b13fb73
Release:        0
Summary:        Python virtualenv for OBS
License:        GPL-3.0
Group:          Development/Libraries/Python
Url:            https://github.com/SUSE-Cloud/venvjail
Source:         %{name}-%{version}.tar.gz
BuildRequires:  saltbundlepy
BuildRequires:  saltbundlepy-rpm-macros
Requires:       saltbundlepy
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Create Python virtualenvs in OBS.

This tool helps with the creation and management of Python virtual
environments in OBS. Is initially designed to deal with the creation
of venvs for OpenStack services, but can be generalized for other
cases.

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_bindir}
sed -i '1s|^#!.*$|#!%{__saltbundlepy}|' venvjail.py
install -m 0755 venvjail.py %{buildroot}%{_bindir}/venvjail

%files
%defattr(-,root,root)
%{_bindir}/venvjail

%changelog
openSUSE Build Service is sponsored by