[packages/python3-huawei-lte-api] Initial.

arekm arekm at pld-linux.org
Mon Jul 19 13:52:27 CEST 2021


commit c7cd6df2de2f05a23dba1b5f2db774bb0115a866
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Jul 19 13:52:12 2021 +0200

    Initial.

 python3-huawei-lte-api.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
---
diff --git a/python3-huawei-lte-api.spec b/python3-huawei-lte-api.spec
new file mode 100644
index 0000000..43285ee
--- /dev/null
+++ b/python3-huawei-lte-api.spec
@@ -0,0 +1,65 @@
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+%define		pkgname	huawei-lte-api
+%define		module	huawei_lte_api
+
+Summary:	API For huawei LAN/WAN LTE Modems
+Name:		python3-huawei-lte-api
+Version:	1.4.18
+Release:	1
+License:	LGPL v3
+Group:		Libraries/Python
+# if pypi:
+Source0:	https://github.com/Salamek/huawei-lte-api/archive/refs/tags/%{version}.tar.gz
+# Source0-md5:	bca439589d1db0997256aad7f0ba8072
+URL:		https://github.com/Salamek/huawei-lte-api
+BuildRequires:	python3-modules >= 1:3.2
+%if %{with tests}
+BuildRequires:	python3-dicttoxml
+BuildRequires:	python3-xmltodict
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+API For huawei LAN/WAN LTE Modems, you can use this to simply send
+SMS, get information about your internet usage, signal, and tons of
+other stuff.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%dir %{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}/*.py
+%{py3_sitescriptdir}/%{module}/__pycache__
+%{py3_sitescriptdir}/%{module}/api/*.py
+%{py3_sitescriptdir}/%{module}/api/__pycache__
+%{py3_sitescriptdir}/%{module}/config/*.py
+%{py3_sitescriptdir}/%{module}/config/__pycache__
+%{py3_sitescriptdir}/%{module}/enums/*.py
+%{py3_sitescriptdir}/%{module}/enums/__pycache__
+%{py3_sitescriptdir}/%{module}/usermanual/*.py
+%{py3_sitescriptdir}/%{module}/usermanual/__pycache__
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-huawei-lte-api.git/commitdiff/c7cd6df2de2f05a23dba1b5f2db774bb0115a866



More information about the pld-cvs-commit mailing list