python-sphinxcontrib-youtube/python-sphinxcontrib-youtube.spec
2023-08-02 11:21:10 +08:00

55 lines
1.5 KiB
RPMSpec

# Created by pyp2rpm-3.2.2
%global pypi_name sphinxcontrib-youtube
Name: python-%{pypi_name}
Version: 1.2.0
Release: 1
Summary: Sphinx "youtube" extension
License: BSD
URL: https://github.com/sphinx-contrib/youtube
Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
This package contains the youtube Sphinx extension.The extension defines the
directives, "youtube" and "vimeo", for embedding YouTube and Vimeo videos,
respectively.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-sphinx >= 0.6
Requires: python3-requests
%description -n python3-%{pypi_name}
This package contains the youtube Sphinx extension.The extension defines the
directives, "youtube" and "vimeo", for embedding YouTube and Vimeo videos,
respectively.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENCE
%{python3_sitelib}/sphinxcontrib
%{python3_sitelib}/sphinxcontrib_youtube-1.2.0-py3.11-nspkg.pth
%{python3_sitelib}/sphinxcontrib_youtube-*.egg-info
%changelog
* Wed Aug 02 2023 ysliu <ysliuci@isoftstone.com> - 1.2.0-1
- Initial package.