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 https://bugs.opensuse.org/
#


Name:           saltbundlepy-venvjail
Version:        0.2.git.1654012835.e8c1c1e
Release:        0
Summary:        Python virtualenv for OBS
License:        GPL-3.0-only
Group:          Development/Libraries/Python
URL:            https://github.com/SUSE-Cloud/venvjail
Source:         %{name}-%{version}.tar.gz
BuildRequires:  saltbundlepy >= 3.10
BuildRequires:  saltbundlepy-rpm-macros
Requires:       saltbundlepy >= 3.10
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