diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..841a732 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pyedimax-0.2.1.tar.gz diff --git a/python-edimax.spec b/python-edimax.spec new file mode 100644 index 0000000..67d2dc5 --- /dev/null +++ b/python-edimax.spec @@ -0,0 +1,47 @@ +%global pypi_name pyedimax +%global pkg_name edimax + +Name: python-%{pkg_name} +Version: 0.2.1 +Release: 1%{?dist} +Summary: Interface with Edimax Smart Plugs + +License: MIT +URL: https://github.com/andreipop2005/pyedimax +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description +Pyedimax is a python library for interfacing with the Edimax Smart +Plug switches. + +%package -n python3-%{pkg_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pkg_name}} + +%description -n python3-%{pkg_name} +Pyedimax is a python library for interfacing with the Edimax Smart +Plug switches. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info +sed -i 's/\r$//' README.md + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pkg_name} +%doc README.md +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Thu Sep 03 2020 Fabian Affolter - 0.2.1-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..fda2c92 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pyedimax-0.2.1.tar.gz) = 76e9fb8940cb6f16e3daaecfcc9daa7373afcf09a73c1b84897f65afd007ed904d0423f0eb85214f087eb3bc9adef4744d777a40a6a0cd518a469a36c0f5f764