## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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-pypandoc Version: 1.15 Release: %autorelease Summary: Thin wrapper for pandoc License: MIT URL: https://github.com/bebraw/pypandoc Source: https://github.com/JessicaTegner/pypandoc/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz BuildArch: noarch # for tests BuildRequires: pandoc BuildRequires: texlive-scheme-basic BuildRequires: texlive-collection-fontsrecommended BuildRequires: tex(ecrm1000.tfm) BuildRequires: python%{python3_pkgversion}-devel %global _description %{expand: pypandoc provides a thin Python wrapper for pandoc, a universal document converter, allowing parsing and conversion of pandoc-formatted text.} %description %_description %package -n python%{python3_pkgversion}-pypandoc Summary: %{summary} Requires: pandoc %if 0%{?fedora} || 0%{?rhel} >= 8 Recommends: texlive-scheme-basic Recommends: texlive-collection-fontsrecommended %endif %description -n python%{python3_pkgversion}-pypandoc %_description %prep %autosetup -p1 -n pypandoc-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pypandoc %check # Disable test that requires network sed -i -r 's/test_basic_conversion_from_http_url/_disabled_\0/' tests.py # https://github.com/NicklasTegner/pypandoc/issues/277 sed -i -r 's/test_basic_conversion_from_file_pattern/_disabled_\0/' tests.py # https://github.com/jgm/pandoc/issues/8128 sed -i -r 's/test_conversion_with_data_files/_disabled_\0/' tests.py # disable pypandoc tests; it's not in epel9 sed -i -r 's/test_conversion_with_mixed_filters/_disabled_\0/' tests.py sed -i -r 's/test_conversion_with_python_filter/_disabled_\0/' tests.py %python3 tests.py %global _docdir_fmt %{name} %files -n python%{python3_pkgversion}-pypandoc -f %pyproject_files %license LICENSE %doc README.md examples/ %changelog ## START: Generated by rpmautospec * Thu Jan 09 2025 Nick Black - 1.15-3 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec