Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
python3-smartypants.29613
python3-smartypants.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-smartypants.spec of Package python3-smartypants.29613
# # spec file for package python-smartypants # # Copyright (c) 2021 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python3-smartypants Version: 2.0.1 Release: 0 Summary: Python fork of perl SmartyPants License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/leohemsted/smartypants.py Source: https://github.com/leohemsted/smartypants.py/archive/v%{version}.tar.gz#/smartypants-%{version}.tar.gz BuildRequires: %{python_module docutils} BuildRequires: %{python_module pygments} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch %python_subpackages %description smartypants is a Python implementation of the perl SmartyPants, which translates plain ASCII punctuation characters into smart typographic punctuation HTML entities. %prep %setup -q -n smartypants.py-%{version} %build %python_build sed -i 's:python:python3:' setup.py smartypants tests/*.py %install %python_install %{python_expand sed -i '1{/^#!/d}' %{buildroot}%{$python_sitelib}/smartypants.py %fdupes %{buildroot}%{$python_sitelib} } %python_clone -a %{buildroot}%{_bindir}/smartypants %post %python_install_alternative smartypants %postun %python_uninstall_alternative smartypants %check %pyunittest discover -v tests %files %{python_files} %license COPYING %doc README.rst docs/*.rst %python_alternative %{_bindir}/smartypants %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor