## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-wsgidav Version: 4.3.3 Release: %autorelease Summary: Generic and extendable WebDAV server based on WSGI # The entire source is (SPDX) MIT, except tests/davclient.py, which is # Apache-2.0 (but does not contribute to the licenses of the binary RPMs). License: MIT SourceLicense: %{license} AND Apache-2.0 URL: https://github.com/mar10/wsgidav # The GitHub source includes a few ancillary files that the PyPI sdist lacks; # for example, it contains tox.ini, which defines the test dependencies. Source0: %{url}/archive/v%{version}/wsgidav-%{version}.tar.gz # Man page hand-written for Fedora in groff_man(7) format based on --help Source1: wsgidav.1 BuildArch: noarch BuildRequires: python3-devel %global common_description %{expand: A generic and extendable WebDAV server written in Python and based on WSGI. Main features: • WsgiDAV is a stand-alone WebDAV server with SSL support, that can be installed and run as Python command line script. • The python-pam library is needed as extra requirement if pam-login authentication is used on Linux or OSX. • WebDAV is a superset of HTTP, so WsgiDAV is also a performant, multi-threaded web server with SSL support. • WsgiDAV is also a Python library that implements the WSGI protocol and can be run behind any WSGI compliant web server. • WsgiDAV is implemented as a configurable stack of WSGI middleware applications. Its open architecture allows to extend the functionality and integrate WebDAV services into your project. Typical use cases are: • Expose data structures as virtual, editable file systems. • Allow online editing of MS Office documents.} %description %{common_description} %package -n python3-wsgidav Summary: %{summary} %description -n python3-wsgidav %{common_description} %pyproject_extras_subpkg -n python3-wsgidav pam %prep %autosetup -n wsgidav-%{version} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters # - pytest-cov is a coverage tool # - pytest-html is not packaged, and is only used for generating reports sed -r -i 's/^([[:blank:]]*)(pytest-(cov|html)\b)/\1# \2/' tox.ini %if v"0%{?python3_version}" >= v"3.13" # python-webob fails to build with Python 3.13: ModuleNotFoundError: No module # named 'cgi' # https://bugzilla.redhat.com/show_bug.cgi?id=2245641 # # DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 # https://github.com/Pylons/webob/issues/437 # # The webtest test dependency depends on webob, which does not support Python # 3.13. sed -r -i 's/^([[:blank:]]*)(webtest\b)/\1# \2/' tox.ini %endif %generate_buildrequires %pyproject_buildrequires -x pam -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l wsgidav install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}' %check %if v"0%{?python3_version}" >= v"3.13" ignore="${ignore-} --ignore=tests/test_wsgidav_app.py" %endif # While tox.ini is useful for generating test dependencies, it also attempts to # pip-install pytest-html. Rather than patching this out (and patching out the # pytest arguments related to pytest-cov and pytest-html), we just run pytest # directly. %pytest -ra -v -x ${ignore-} %files -n python3-wsgidav -f %{pyproject_files} %doc CHANGELOG.md %doc README.md %{_bindir}/wsgidav %{_mandir}/man1/wsgidav.1* %changelog ## START: Generated by rpmautospec * Sun Dec 15 2024 Benjamin A. Beasley - 4.3.3-5 - Add a SourceLicense field * Fri Jul 19 2024 Fedora Release Engineering - 4.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 10 2024 Python Maint - 4.3.3-3 - Rebuilt for Python 3.13 * Sat Jun 01 2024 Benjamin A. Beasley - 4.3.3-2 - Omit webtest tests on Python 3.13 * Sun May 05 2024 Packit - 4.3.3-1 - Update to 4.3.3 upstream release - Resolves: rhbz#2279092 * Sun May 05 2024 Benjamin A. Beasley - 4.3.2-3 - Spec file comment typo fixes * Fri Mar 29 2024 Packit - 4.3.2-1 - [packit] 4.3.2 upstream release - Resolves rhbz#2271268 * Tue Feb 20 2024 Benjamin A. Beasley - 4.3.0-2 - Fix man page synopsis text * Thu Feb 15 2024 Benjamin A. Beasley - 4.3.0-1 - Initial package (close RHBZ#2264069) ## END: Generated by rpmautospec