summaryrefslogtreecommitdiff
path: root/PythonLibs.spec
diff options
context:
space:
mode:
Diffstat (limited to 'PythonLibs.spec')
-rw-r--r--PythonLibs.spec59
1 files changed, 59 insertions, 0 deletions
diff --git a/PythonLibs.spec b/PythonLibs.spec
new file mode 100644
index 0000000..0f7251c
--- /dev/null
+++ b/PythonLibs.spec
@@ -0,0 +1,59 @@
+%global pypi_name PythonLibs
+
+Name: python-%{pypi_name}
+Version: 0.01
+Release: 1%{?dist}
+Summary: Python learning repository with utility modules for GitHub API and email
+
+License: GPL-3.0
+URL: https://github.com/Michel4lves/pythonlibs
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+
+%description
+PythonLibs is a Python learning repository containing utility modules for
+GitHub API interaction (avatar lookup), database connections, user modeling,
+and email sending. It is a setuptools-based pure Python package.
+
+%package -n python3-%{pypi_name}
+Summary: Python learning repository with utility modules for GitHub API and email
+Provides: python-%{pypi_name} = %{version}-%{release}
+Provides: python3dist(pythonlibs) = %{version}
+Requires: python3-requests
+
+%description -n python3-%{pypi_name}
+PythonLibs is a Python learning repository containing utility modules for
+GitHub API interaction (avatar lookup), database connections, user modeling,
+and email sending. It is a setuptools-based pure Python package.
+
+%package help
+Summary: Development documents and examples for %{pypi_name}
+Requires: python3-%{pypi_name}
+
+%description help
+Development documents and examples for %{pypi_name}.
+
+%prep
+%autosetup -n %{name}-%{version} -p1
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%{python3_sitelib}/pythonlibs/
+%{python3_sitelib}/pythonlibs-%{version}*.egg-info/
+
+%files help
+%license LICENSE
+%doc README.md
+
+%changelog
+* Mon Sep 28 2026 Python_Bot <Python_Bot@openeuler.org> - 0.01-1
+- Initial package