15
0

Accepting request 519960 from devel:languages:python:singlespec-staging

1

OBS-URL: https://build.opensuse.org/request/show/519960
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markups?expand=0&rev=6
This commit is contained in:
2017-09-01 00:29:02 +00:00
committed by Git OBS Bridge
parent 6100571389
commit 8ceb3b4240
4 changed files with 41 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Markups
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@@ -16,23 +16,20 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Markups
Version: 0.6.1
Version: 2.0.1
Release: 0
Summary: A wrapper around various text markups
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/mitya57/pymarkups
Source: http://pypi.python.org/packages/source/M/Markups/Markups-%{version}.tar.gz
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python-importlib
Requires: python-importlib
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
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
%endif
%python_subpackages
%description
This module provides a wrapper around the various text markup languages,
@@ -42,14 +39,17 @@ such as Markdown and reStructuredText (these two are supported by default).
%setup -q -n Markups-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%files
%check
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst examples
%doc LICENSE README.rst changelog
%{python_sitelib}/*
%changelog