Projects
openEuler:Mainline
python-smartypants
_service:tar_scm:python-smartypants.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:python-smartypants.spec of Package python-smartypants
%global pypi_name smartypants Name: python-%{pypi_name} Version: 2.0.1 Release: 1 Summary: plug-in that easily translates ASCII punctuation characters into smart entities License: BSD URL: https://github.com/leohemsted/smartypants.py Source0: https://github.com/leohemsted/smartypants.py/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: make python3-devel python3dist(setuptools) python3dist(sphinx) %description SmartyPants is a free web publishing plug-in for Movable Type, Blosxom, and BBEdit that easily translates plain ASCII punctuation characters into “smart” typographic punctuation HTML entities. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(setuptools) %description -n python3-%{pypi_name} SmartyPants is a free web publishing plug-in for Movable Type, Blosxom, and BBEdit that easily translates plain ASCII punctuation characters into “smart” typographic punctuation HTML entities. %prep %autosetup -n %{pypi_name}.py-%{version} rm -rf %{pypi_name}.egg-info for lib in $(find -type f -name '*.py'); do sed -i.python -e '1{\@^#!@d}' $lib done sed -i.python -e 's|#!/usr/bin/env python|#!/usr/bin/python3|' smartypants %build %py3_build # generate html documentation cd docs make html # remove the sphinx-build leftovers rm -rf _build/html/.{doctrees,buildinfo} %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %license COPYING %doc README.rst %doc CHANGES.rst %doc docs/_build/html %license COPYING %{_bindir}/%{pypi_name} %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 2.0.1-1 - initial packaging
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2