From 989ee326a25aa4f116ba05c2a83d5c407446935c8b5208d95957dff06a47ca78 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Fri, 25 Oct 2024 23:48:49 +0000 Subject: [PATCH] add %{?sle15pythonmodule_pythons} to spec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypandoc?expand=0&rev=21 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + pypandoc-1.13.tar.gz | 3 ++ pypandoc-1.14.tar.gz | 3 ++ python-pypandoc.changes | 91 +++++++++++++++++++++++++++++++++++++++++ python-pypandoc.spec | 70 +++++++++++++++++++++++++++++++ 6 files changed, 191 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pypandoc-1.13.tar.gz create mode 100644 pypandoc-1.14.tar.gz create mode 100644 python-pypandoc.changes create mode 100644 python-pypandoc.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pypandoc-1.13.tar.gz b/pypandoc-1.13.tar.gz new file mode 100644 index 0000000..8545b2f --- /dev/null +++ b/pypandoc-1.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05fc905d23ae3220a301a3226d7366b64f1e226b1706dbaa9aa4009d3c5abe03 +size 70605 diff --git a/pypandoc-1.14.tar.gz b/pypandoc-1.14.tar.gz new file mode 100644 index 0000000..e9ddb21 --- /dev/null +++ b/pypandoc-1.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5b79144aa95beaf8365e2901b7da827759352f9794bfb082f395a11f873b6bf +size 70683 diff --git a/python-pypandoc.changes b/python-pypandoc.changes new file mode 100644 index 0000000..3d13e29 --- /dev/null +++ b/python-pypandoc.changes @@ -0,0 +1,91 @@ +------------------------------------------------------------------- +Fri Oct 25 20:02:10 UTC 2024 - Earl Sampson + +- enable sle15_python_module_pythons + +------------------------------------------------------------------- +Fri Oct 18 10:49:04 UTC 2024 - Dirk Müller + +- 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 + +- Add missing tex style amsmath.sty to BuildRequires. + +------------------------------------------------------------------- +Thu Mar 14 23:54:12 UTC 2024 - Steve Kowalik + +- 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 + +- 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 + +- Add build dependency texlive-xcolor + +------------------------------------------------------------------- +Mon Dec 20 10:34:32 UTC 2021 - Dominique Leuenberger + +- 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 + +- 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 + +- 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 + +- Replace ghc-pandoc-citeproc, removed as obsolete, with ghc-citeproc + +------------------------------------------------------------------- +Thu Jul 23 07:28:02 UTC 2020 - John Vandenberg + +- 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 + + diff --git a/python-pypandoc.spec b/python-pypandoc.spec new file mode 100644 index 0000000..d73799a --- /dev/null +++ b/python-pypandoc.spec @@ -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