2020-07-23 11:20:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pypandoc
|
|
|
|
#
|
2024-03-14 23:55:34 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-07-23 11:20:27 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-05-24 23:43:40 +00:00
|
|
|
%define base_name pypandoc
|
2020-07-23 11:20:27 +00:00
|
|
|
Name: python-pypandoc
|
2024-03-14 23:55:34 +00:00
|
|
|
Version: 1.13
|
2020-07-23 11:20:27 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Thin wrapper for pandoc
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/bebraw/pypandoc
|
2021-12-05 00:08:40 +00:00
|
|
|
Source: https://github.com/NicklasTegner/pypandoc/archive/refs/tags/v%{version}.tar.gz#/pypandoc-%{version}.tar.gz
|
2023-05-24 23:43:40 +00:00
|
|
|
BuildRequires: %{python_module pandocfilters}
|
2020-07-23 11:20:27 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-03-14 23:55:34 +00:00
|
|
|
BuildRequires: %{python_module poetry}
|
2020-11-22 14:26:09 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-07-23 11:20:27 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pandoc
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: texlive-latex-bin
|
2022-07-17 01:32:39 +00:00
|
|
|
BuildRequires: texlive-xcolor
|
2024-03-14 23:55:34 +00:00
|
|
|
BuildRequires: tex(bookmark.sty)
|
2020-07-23 11:20:27 +00:00
|
|
|
Requires: pandoc
|
2020-11-22 14:26:09 +00:00
|
|
|
Suggests: ghc-citeproc
|
2021-12-20 11:03:50 +00:00
|
|
|
ExcludeArch: %{ix86}
|
2023-05-24 23:43:40 +00:00
|
|
|
BuildArch: noarch
|
2020-07-23 11:20:27 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
pypandoc provides a thin wrapper for pandoc, a universal document converter.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pypandoc-%{version}
|
2021-12-05 00:08:40 +00:00
|
|
|
|
2020-07-23 11:20:27 +00:00
|
|
|
%build
|
2024-03-14 23:55:34 +00:00
|
|
|
%pyproject_wheel
|
2020-07-23 11:20:27 +00:00
|
|
|
|
|
|
|
%install
|
2024-03-14 23:55:34 +00:00
|
|
|
%pyproject_install
|
2020-07-23 11:20:27 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2023-05-24 23:43:40 +00:00
|
|
|
# 'test_basic_conversion_from_http_url' needs network
|
|
|
|
# 'test_conversion_with_data_files' => https://github.com/JessicaTegner/pypandoc/issues/278
|
|
|
|
%pytest tests.py -k 'not test_basic_conversion_from_http_url and not test_conversion_with_data_files'
|
2020-07-23 11:20:27 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2023-05-24 23:45:10 +00:00
|
|
|
%{python_sitelib}/pypandoc
|
2024-03-14 23:55:34 +00:00
|
|
|
%{python_sitelib}/pypandoc-%{version}.dist-info
|
2020-07-23 11:20:27 +00:00
|
|
|
|
|
|
|
%changelog
|