diff --git a/python-restsh.spec b/python-restsh.spec new file mode 100644 index 0000000000000000000000000000000000000000..65f0a3bec7a6698e2d1db286e6beb8b3d98273b3 --- /dev/null +++ b/python-restsh.spec @@ -0,0 +1,54 @@ +%global pypi_name restsh +%global commit 4eb9f05d03cb3ab4e99c636b40be420a2fbe5915 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: python-%{pypi_name} +Version: 0.2 +Release: 1 +Summary: A simple rest shell client + +License: BSD +URL: https://github.com/jespino/restsh +Source0: https://github.com/jespino/%{pypi_name}/archive/%{commit}/%{pypi_name}-%{version}-%{shortcommit}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-versiontools + + +%description +A simple rest shell client. + +%package -n python3-%{pypi_name} +Summary: A simple rest shell client + +Provides: python3-%{pypi_name} +Requires: python3-requests + +%description -n python3-%{pypi_name} +A simple rest shell client. + +%prep +%setup -q -n %{pypi_name}-%{commit} +# this file shouldn't be executable +sed -i '1d' restshlib/restshlib.py + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE +%{_bindir}/restsh +%{python3_sitelib}/%{pypi_name}lib +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Tue Jan 25 2022 Lv Genggeng - 0.2-1 +- Package init + diff --git a/restsh-0.2-4eb9f05.tar.gz b/restsh-0.2-4eb9f05.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3efc5f0ffa6a03ca67b6d7d92b833a77cfe1d8d7 Binary files /dev/null and b/restsh-0.2-4eb9f05.tar.gz differ