14
0

add %{?sle15pythonmodule_pythons} to spec

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypandoc?expand=0&rev=21
This commit is contained in:
John Vandenberg
2024-10-25 23:48:49 +00:00
committed by Git OBS Bridge
commit 989ee326a2
6 changed files with 191 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
pypandoc-1.13.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:05fc905d23ae3220a301a3226d7366b64f1e226b1706dbaa9aa4009d3c5abe03
size 70605

3
pypandoc-1.14.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5b79144aa95beaf8365e2901b7da827759352f9794bfb082f395a11f873b6bf
size 70683

91
python-pypandoc.changes Normal file
View File

@@ -0,0 +1,91 @@
-------------------------------------------------------------------
Fri Oct 25 20:02:10 UTC 2024 - Earl Sampson <esampson@suse.com>
- enable sle15_python_module_pythons
-------------------------------------------------------------------
Fri Oct 18 10:49:04 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.14:
* Fix regex escape
* add project urls to setup files
* Fix invalid escape sequence in regex
-------------------------------------------------------------------
Wed Apr 3 06:35:39 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Add missing tex style amsmath.sty to BuildRequires.
-------------------------------------------------------------------
Thu Mar 14 23:54:12 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.13:
* Change when we do source file verification
- Drop tests.py file, it is shipped in the source tarball.
- Switch to pyproject macros.
-------------------------------------------------------------------
Wed May 24 17:47:42 UTC 2023 - Scott Bradnick <scott.bradnick@suse.com>
- Updating to upstream version 1.11 (as previous 1.6.4 fails)
* tests.py was also updated and needed another item excluded to
possibly account for how pandoc is built.
- Converting to noarch (per rpmlint).
- Adding pandocfilters module to BuildRequires
-------------------------------------------------------------------
Sun Jul 17 01:20:53 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
- Add build dependency texlive-xcolor
-------------------------------------------------------------------
Mon Dec 20 10:34:32 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Exclude build for %ix86: pandoc (entire haskell stack) is not
available on i586.
- As a result, do not mark package noarch: due to the missing
pandoc dependency, it is uninstallable on i586.
-------------------------------------------------------------------
Sat Dec 4 23:33:35 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Update to v1.6.4
- Remove no longer needed fix-test.patch
- Add tests.py from upstream master to workaround failures
-------------------------------------------------------------------
Sun Dec 27 03:51:58 UTC 2020 - Jason Craig <os-dev@jacraig.com>
- Add fix-test.patch to fix test: according to Pandoc documentation,
ATX-style headings are the default. See
https://pandoc.org/MANUAL#option--markdown-headings
-------------------------------------------------------------------
Sun Nov 22 13:21:43 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Replace ghc-pandoc-citeproc, removed as obsolete, with ghc-citeproc
-------------------------------------------------------------------
Thu Jul 23 07:28:02 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Activate test suite
- Update to v1.5
-------------------------------------------------------------------
Wed Aug 16 08:11:22 UTC 2017 - daniel.molkentin@suse.com
- Add fdupes
-------------------------------------------------------------------
Tue Aug 15 16:06:39 UTC 2017 - daniel.molkentin@suse.com
- Update to 1.4
- Convert to single spec
- Ran spec cleaner
-------------------------------------------------------------------
Tue Jan 24 21:37:32 UTC 2017 - termim@gmail.com
- Initial check in version 1.3.3

70
python-pypandoc.spec Normal file
View File

@@ -0,0 +1,70 @@
#
# spec file for package python-pypandoc
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define base_name pypandoc
%{?sle15_python_module_pythons}
Name: python-pypandoc
Version: 1.14
Release: 0
Summary: Thin wrapper for pandoc
License: MIT
URL: https://github.com/bebraw/pypandoc
Source: https://github.com/NicklasTegner/pypandoc/archive/refs/tags/v%{version}.tar.gz#/pypandoc-%{version}.tar.gz
BuildRequires: %{python_module pandocfilters}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: pandoc
BuildRequires: python-rpm-macros
BuildRequires: texlive-latex-bin
BuildRequires: texlive-xcolor
BuildRequires: tex(amsmath.sty)
BuildRequires: tex(bookmark.sty)
Requires: pandoc
Suggests: ghc-citeproc
ExcludeArch: %{ix86}
BuildArch: noarch
%python_subpackages
%description
pypandoc provides a thin wrapper for pandoc, a universal document converter.
%prep
%setup -q -n pypandoc-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# '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'
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/pypandoc
%{python_sitelib}/pypandoc-%{version}.dist-info
%changelog