From eb9fd0e38bf7750aff45401c69bde929fa7e56f2f254532f5cbfc438d94bad45 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:39:51 +0000 Subject: [PATCH 1/3] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=8 --- python-Markups.changes | 5 +++++ python-Markups.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-Markups.changes b/python-Markups.changes index 1073409..09636df 100644 --- a/python-Markups.changes +++ b/python-Markups.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:50:17 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Thu Aug 31 06:25:00 UTC 2017 - toddrme2178@gmail.com diff --git a/python-Markups.spec b/python-Markups.spec index 4a07e08..a2ff2fc 100644 --- a/python-Markups.spec +++ b/python-Markups.spec @@ -1,7 +1,7 @@ # # spec file for package python-Markups # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,7 +25,6 @@ License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/mitya57/pymarkups Source: https://files.pythonhosted.org/packages/source/M/Markups/Markups-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch From f776048feb0df576cfaa0841792d702cb8bad96cb4d55608a10a529c755c9ebc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:16:41 +0000 Subject: [PATCH 2/3] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=9 --- python-Markups.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-Markups.spec b/python-Markups.spec index a2ff2fc..d5f7de9 100644 --- a/python-Markups.spec +++ b/python-Markups.spec @@ -23,7 +23,7 @@ Release: 0 Summary: A wrapper around various text markups License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/mitya57/pymarkups +URL: https://github.com/mitya57/pymarkups Source: https://files.pythonhosted.org/packages/source/M/Markups/Markups-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros @@ -47,8 +47,8 @@ such as Markdown and reStructuredText (these two are supported by default). %python_exec setup.py test %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst changelog +%license LICENSE +%doc README.rst changelog %{python_sitelib}/* %changelog From 04601bc6dd2883de1970ed850b84e103eaa8484ea759d5ba8d70f9bc43d311ac Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 2 Jan 2019 14:03:27 +0000 Subject: [PATCH 3/3] Accepting request 662451 from home:badshah400:branches:devel:languages:python NOTE: Depends on new package python-markdown-math (sr#662450). - Update to version 3.0.0: - Add python-markdown-math to Requires (new dependency). - Run fdupes to clean up duplicate files wasting space (add BuildRequires: fdupes). OBS-URL: https://build.opensuse.org/request/show/662451 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=10 --- Markups-2.0.1.tar.gz | 3 --- Markups-3.0.0.tar.gz | 3 +++ python-Markups.changes | 15 +++++++++++++++ python-Markups.spec | 13 ++++++++++--- 4 files changed, 28 insertions(+), 6 deletions(-) delete mode 100644 Markups-2.0.1.tar.gz create mode 100644 Markups-3.0.0.tar.gz diff --git a/Markups-2.0.1.tar.gz b/Markups-2.0.1.tar.gz deleted file mode 100644 index 08cebd0..0000000 --- a/Markups-2.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef65593afe187cd1135da1a9c9f6dde2b0ecd2cda4895790628d270e8b0b7030 -size 17002 diff --git a/Markups-3.0.0.tar.gz b/Markups-3.0.0.tar.gz new file mode 100644 index 0000000..2a3bd22 --- /dev/null +++ b/Markups-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ea19458dfca6a4562044e701aa8698089a0c659fc535689ed260f89a04f8d39 +size 16966 diff --git a/python-Markups.changes b/python-Markups.changes index 09636df..0e21b5c 100644 --- a/python-Markups.changes +++ b/python-Markups.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed Jan 2 12:46:35 UTC 2019 - badshah400@gmail.com + +- Update to version 3.0.0: + * The deprecated AbstractMarkup API has been removed. + * Python 3.2 is no longer supported. + * The output now uses HTML5 instead of HTML4. + * The custom markups are now registered with entry points. + * The ``get_custom_markups()`` method has been removed. + * New required dependency: python-markdown-math. + * Python-Markdown 3.x release is now supported. +- Add python-markdown-math to Requires (new dependency). +- Run fdupes to clean up duplicate files wasting space (add + BuildRequires: fdupes). + ------------------------------------------------------------------- Tue Dec 4 12:50:17 UTC 2018 - Matej Cepl diff --git a/python-Markups.spec b/python-Markups.spec index d5f7de9..a4fa177 100644 --- a/python-Markups.spec +++ b/python-Markups.spec @@ -1,7 +1,7 @@ # # spec file for package python-Markups # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,13 +12,13 @@ # 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/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Markups -Version: 2.0.1 +Version: 3.0.0 Release: 0 Summary: A wrapper around various text markups License: BSD-3-Clause @@ -26,7 +26,12 @@ Group: Development/Languages/Python URL: https://github.com/mitya57/pymarkups Source: https://files.pythonhosted.org/packages/source/M/Markups/Markups-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +# SECTION Required for %%check +BuildRequires: %{python_module markdown-math} +# /SECTION +Requires: python-markdown-math BuildArch: noarch %python_subpackages @@ -43,6 +48,8 @@ such as Markdown and reStructuredText (these two are supported by default). %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + %check %python_exec setup.py test