Accepting request 701543 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/701543 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-smartypants?expand=0&rev=4
This commit is contained in:
commit
3e4940af91
76
COPYING
76
COPYING
@ -1,76 +0,0 @@
|
|||||||
=========
|
|
||||||
Copyright
|
|
||||||
=========
|
|
||||||
|
|
||||||
SmartyPants
|
|
||||||
===========
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
Copyright (c) 2003 John Gruber
|
|
||||||
(http://daringfireball.net/)
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in
|
|
||||||
the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
|
|
||||||
* Neither the name "SmartyPants" nor the names of its contributors
|
|
||||||
may be used to endorse or promote products derived from this
|
|
||||||
software without specific prior written permission.
|
|
||||||
|
|
||||||
This software is provided by the copyright holders and contributors "as
|
|
||||||
is" and any express or implied warranties, including, but not limited
|
|
||||||
to, the implied warranties of merchantability and fitness for a
|
|
||||||
particular purpose are disclaimed. In no event shall the copyright
|
|
||||||
owner or contributors be liable for any direct, indirect, incidental,
|
|
||||||
special, exemplary, or consequential damages (including, but not
|
|
||||||
limited to, procurement of substitute goods or services; loss of use,
|
|
||||||
data, or profits; or business interruption) however caused and on any
|
|
||||||
theory of liability, whether in contract, strict liability, or tort
|
|
||||||
(including negligence or otherwise) arising in any way out of the use
|
|
||||||
of this software, even if advised of the possibility of such damage.
|
|
||||||
|
|
||||||
|
|
||||||
smartypants
|
|
||||||
===========
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
smartypants is a derivative work of SmartyPants.
|
|
||||||
|
|
||||||
Copyright (c) 2017, Leo Hemsted
|
|
||||||
Copyright (c) 2013, 2014, 2015, 2016 Yu-Jie Lin
|
|
||||||
Copyright (c) 2004, 2005, 2007, 2013 Chad Miller
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in
|
|
||||||
the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
|
|
||||||
This software is provided by the copyright holders and contributors "as
|
|
||||||
is" and any express or implied warranties, including, but not limited
|
|
||||||
to, the implied warranties of merchantability and fitness for a
|
|
||||||
particular purpose are disclaimed. In no event shall the copyright
|
|
||||||
owner or contributors be liable for any direct, indirect, incidental,
|
|
||||||
special, exemplary, or consequential damages (including, but not
|
|
||||||
limited to, procurement of substitute goods or services; loss of use,
|
|
||||||
data, or profits; or business interruption) however caused and on any
|
|
||||||
theory of liability, whether in contract, strict liability, or tort
|
|
||||||
(including negligence or otherwise) arising in any way out of the use
|
|
||||||
of this software, even if advised of the possibility of such damage.
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 7 15:40:36 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Activate test suite
|
||||||
|
- Update Summary and Description
|
||||||
|
- Add %doc
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 4 12:54:22 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
Tue Dec 4 12:54:22 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-smartypants
|
# spec file for package python-smartypants
|
||||||
#
|
#
|
||||||
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,13 +20,14 @@
|
|||||||
Name: python-smartypants
|
Name: python-smartypants
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A smart-quotes plugin for SmartyPants
|
Summary: Python fork of perl SmartyPants
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/leohemsted/smartypants.py
|
Url: https://github.com/leohemsted/smartypants.py
|
||||||
Source0: https://files.pythonhosted.org/packages/py2.py3/s/smartypants/smartypants-%{version}-py2.py3-none-any.whl
|
Source: https://github.com/leohemsted/smartypants.py/archive/v%{version}.tar.gz#/smartypants-%{version}.tar.gz
|
||||||
Source10: https://raw.githubusercontent.com/leohemsted/smartypants.py/v%{version}/COPYING
|
BuildRequires: %{python_module docutils}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pygments}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
@ -36,27 +37,21 @@ BuildArch: noarch
|
|||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module encapsulates Chad Miller's SmartyPants module so that
|
smartypants is a Python implementation of the perl SmartyPants,
|
||||||
it's available on PyPI. For more information, consult
|
which translates plain ASCII punctuation characters into smart
|
||||||
|
typographic punctuation HTML entities.
|
||||||
* http://web.chad.org/projects/smartypants.py/
|
|
||||||
* http://daringfireball.net/projects/smartypants/
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -T -c -n smartypants-%{version}
|
%setup -q -n smartypants.py-%{version}
|
||||||
cp %{SOURCE10} .
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Not needed
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{python_expand pip%{$python_bin_suffix} install --root %{buildroot} %{SOURCE0}
|
%python_install
|
||||||
sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/smartypants.py
|
%{python_expand sed -i '1{/^#!/d}' %{buildroot}%{$python_sitelib}/smartypants.py
|
||||||
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/smartypants.py
|
|
||||||
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/smartypants.py
|
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
%fdupes %{buildroot}%{$python_sitelib}
|
||||||
}
|
}
|
||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/smartypants
|
%python_clone -a %{buildroot}%{_bindir}/smartypants
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -66,10 +61,11 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sm
|
|||||||
%python_uninstall_alternative smartypants
|
%python_uninstall_alternative smartypants
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# todo
|
%python_exec setup.py test
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%doc README.rst docs/*.rst
|
||||||
%python_alternative %{_bindir}/smartypants
|
%python_alternative %{_bindir}/smartypants
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8db97f7cbdf08d15b158a86037cd9e116b4cf37703d24e0419a0d64ca5808f0d
|
|
||||||
size 9875
|
|
BIN
smartypants-2.0.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
smartypants-2.0.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user