From da22d5396ea7e87d71addeb10ae346f77f1134ee Mon Sep 17 00:00:00 2001 From: Daniel Demus Date: Wed, 2 Apr 2025 00:14:05 +0200 Subject: [PATCH] First packaging --- python-pygelf.conf | 11 ++++++++++ python-pygelf.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 python-pygelf.conf create mode 100644 python-pygelf.spec diff --git a/python-pygelf.conf b/python-pygelf.conf new file mode 100644 index 0000000..9fa3fe8 --- /dev/null +++ b/python-pygelf.conf @@ -0,0 +1,11 @@ +archful = false +archive_name = "pygelf-0.4.2.tar.gz" +extras = [] +license = "MIT" +license_files_present = false +pypi_name = "pygelf" +pypi_version = "0.4.2" +python_name = "python-pygelf" +source = "PyPI" +summary = "Logging handlers with GELF support" +url = "https://github.com/keeprocking/pygelf" diff --git a/python-pygelf.spec b/python-pygelf.spec new file mode 100644 index 0000000..70af456 --- /dev/null +++ b/python-pygelf.spec @@ -0,0 +1,54 @@ +Name: python-pygelf +Version: 0.4.2 +Release: %autorelease +Summary: Logging handlers with GELF support + +License: MIT +URL: https://github.com/keeprocking/pygelf +Source: %{pypi_source pygelf} + +BuildArch: noarch +BuildRequires: python3-devel + + +# Fill in the actual package description to submit package to Fedora +%global _description %{expand: +Python logging handlers with GELF (Graylog Extended Log Format) support. + +Currently TCP, UDP, TLS (encrypted TCP) and HTTP logging handlers are supported.} + +%description %_description + +%package -n python3-pygelf +Summary: %{summary} + +%description -n python3-pygelf %_description + + +%prep +%autosetup -p1 -n pygelf-%{version} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +# Add top-level Python module names here as arguments, you can use globs +%pyproject_save_files pygelf + + +%check +%pyproject_check_import + + +%files -n python3-pygelf -f %{pyproject_files} + + +%changelog +%autochangelog