diff --git a/python-adb-shell.spec b/python-adb-shell.spec new file mode 100644 index 0000000000000000000000000000000000000000..69d9839a277026cf25eafe1d8808c21df7db6b48 --- /dev/null +++ b/python-adb-shell.spec @@ -0,0 +1,46 @@ +%global src_name adb-shell + +Name: python-%{src_name} +Version: 0.4.0 +Release: 1 +Summary: Python implementation for ADB shell and file sync + +License: ASL 2.0 +URL: https://github.com/JeffLIrion/adb_shell +Source0: https://github.com/JeffLIrion/adb_shell/archive/refs/tags/v0.4.0.tar.gz +BuildArch: noarch + +%description +Python package implements ADB shell and FileSync functionality. + +%package -n python3-%{src_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{src_name}} + +%description -n python3-%{src_name} +Python package implements ADB shell and FileSync functionality. + +%prep +%autosetup -n adb_shell-%{version} +rm -rf %{src_name}.egg-info +# Conflict with crypto +sed -i -e 's/pycryptodome/pycryptodomex/g' setup.py + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{src_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/adb_shell/ +%{python3_sitelib}/adb_shell-%{version}-py*.egg-info/ + +%changelog +* Mon Jul 19 2021 yinyongkang - 0.4.0-1 +- Init Package diff --git a/v0.4.0.tar.gz b/v0.4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..64de15a23d53ae62c9497e18ed94241a737c8fb4 Binary files /dev/null and b/v0.4.0.tar.gz differ