diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..85cf465b3fb293d14d7e8528d89d8d71b89f45ec --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,2 @@ +python-structlog.spec +structlog-25.1.0.tar.gz diff --git a/python-structlog.spec b/python-structlog.spec new file mode 100644 index 0000000000000000000000000000000000000000..ebfb42f609a21a43fdeb6ac424d9e002c5a675ea --- /dev/null +++ b/python-structlog.spec @@ -0,0 +1,111 @@ +%global _empty_manifest_terminate_build 0 +Name: python-structlog +Version: 25.1.0 +Release: 1 +Summary: Structured Logging for Python +License: None +URL: https://pypi.org/project/structlog/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/25/fe/578db23e17392a8693b45a7b7dc6985370f51dd937157def8ecc7b20930d/structlog-25.1.0.tar.gz +BuildArch: noarch + +Requires: (python3-typing-extensions) +Requires: (python3-freezegun>=0.2.8) +Requires: (python3-mypy>=1.4) +Requires: (python3-pretend) +Requires: (python3-pytest-asyncio>=0.17) +Requires: (python3-pytest>=6.0) +Requires: (python3-rich) +Requires: (python3-simplejson) +Requires: (python3-twisted) +Requires: (python3-cogapp) +Requires: (python3-furo) +Requires: (python3-myst-parser) +Requires: (python3-sphinx) +Requires: (python3-sphinx-notfound-page) +Requires: (python3-sphinxcontrib-mermaid) +Requires: (python3-sphinxext-opengraph) +Requires: (python3-twisted) +Requires: (python3-freezegun>=0.2.8) +Requires: (python3-pretend) +Requires: (python3-pytest-asyncio>=0.17) +Requires: (python3-pytest>=6.0) +Requires: (python3-simplejson) +Requires: (python3-mypy>=1.4) +Requires: (python3-rich) +Requires: (python3-twisted) + +%description +[Full Changelog →](https://www.structlog.org/en/stable/changelog.html) +## Credits +*structlog* is written and maintained by [Hynek Schlawack](https://hynek.me/). +The idea of bound loggers is inspired by previous work by [Jean-Paul Calderone](https://github.com/exarkun) and [David Reid](https://github.com/dreid). +The development is kindly supported by my employer [Variomedia AG](https://www.variomedia.de/), *structlog*’s [Tidelift subscribers](https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek), and all my amazing [GitHub Sponsors](https://github.com/sponsors/hynek). +The logs-loving beaver logo has been contributed by [Lynn Root](https://www.roguelynn.com). + +%package -n python3-structlog +Summary: Structured Logging for Python +Provides: python-structlog +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-structlog +[Full Changelog →](https://www.structlog.org/en/stable/changelog.html) +## Credits +*structlog* is written and maintained by [Hynek Schlawack](https://hynek.me/). +The idea of bound loggers is inspired by previous work by [Jean-Paul Calderone](https://github.com/exarkun) and [David Reid](https://github.com/dreid). +The development is kindly supported by my employer [Variomedia AG](https://www.variomedia.de/), *structlog*’s [Tidelift subscribers](https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek), and all my amazing [GitHub Sponsors](https://github.com/sponsors/hynek). +The logs-loving beaver logo has been contributed by [Lynn Root](https://www.roguelynn.com). + +%package help +Summary: Development documents and examples for structlog +Provides: python3-structlog-doc +%description help +[Full Changelog →](https://www.structlog.org/en/stable/changelog.html) +## Credits +*structlog* is written and maintained by [Hynek Schlawack](https://hynek.me/). +The idea of bound loggers is inspired by previous work by [Jean-Paul Calderone](https://github.com/exarkun) and [David Reid](https://github.com/dreid). +The development is kindly supported by my employer [Variomedia AG](https://www.variomedia.de/), *structlog*’s [Tidelift subscribers](https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek), and all my amazing [GitHub Sponsors](https://github.com/sponsors/hynek). +The logs-loving beaver logo has been contributed by [Lynn Root](https://www.roguelynn.com). + +%prep +%autosetup -n structlog-25.1.0 + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +touch filelist.lst +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-structlog -f filelist.lst +%{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Mar 11 2025 Python_Bot - 25.1.0-1 +- Package Spec generated diff --git a/python-structlog.src.rpm b/python-structlog.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..8f84d491656b3e5f638294018e1b24db71935bf5 Binary files /dev/null and b/python-structlog.src.rpm differ diff --git a/structlog-25.1.0.tar.gz b/structlog-25.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a9ac736cae656b4b32ab1457c55eda006da478ed Binary files /dev/null and b/structlog-25.1.0.tar.gz differ