From 835c2e8736ee8f66771eb035cc9143f129389e26 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Oct 10 2020 11:31:47 +0000 Subject: * Thu Sep 03 2020 Fabian Affolter - 0.4-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..20068a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pylacrosse-0.4.tar.gz diff --git a/python-lacrosse.spec b/python-lacrosse.spec new file mode 100644 index 0000000..97db9ee --- /dev/null +++ b/python-lacrosse.spec @@ -0,0 +1,54 @@ +%global pypi_name pylacrosse +%global pkg_name lacrosse + +Name: python-%{pkg_name} +Version: 0.4 +Release: 1%{?dist} +Summary: LaCrosse Python sensor library + +License: LGPLv2+ +URL: http://github.com/hthiery/python-lacrosse +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +Python libray to work with the Jeelink USB RF adapter. + +%package -n python3-%{pkg_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(pyserial) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(nose) +BuildRequires: python3dist(setuptools) +%{?python_provide:%python_provide python3-%{pkg_name}} + +%description -n python3-%{pkg_name} +Python libray to work with the Jeelink USB RF adapter. + +%prep +%autosetup -n %{name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%pytest -v tests + +%files -n python3-%{pkg_name} +%doc AUTHORS README.rst +%license COPYING +%{_bindir}/pylacrosse +%{python3_sitelib}/%{pypi_name}/ +# Unversioned egg-info: https://github.com/hthiery/python-lacrosse/issues/11 +%{python3_sitelib}/%{pypi_name}*py%{python3_version}.egg-info/ +%exclude %{python3_sitelib}/tests + +%changelog +* Thu Sep 03 2020 Fabian Affolter - 0.4-1 +- Initial package for Fedora \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..a546d3d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pylacrosse-0.4.tar.gz) = ef60c69ba288e11827fac864ac6e8f8b0ef32ecf06168e89cc1ddac81c84e57909d27260165c12106001c6bf5a5e9f2c0c98803a739b5545931b723002890294