From: Jan Palus Date: Thu, 11 Mar 2021 10:51:58 +0000 (+0100) Subject: new X-Git-Tag: auto/th/python3-sgmllib-1.0.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=9dc967cd2a2824b88d7a54befc640544f8896476;p=packages%2Fpython3-sgmllib.git new --- 9dc967cd2a2824b88d7a54befc640544f8896476 diff --git a/python3-sgmllib.spec b/python3-sgmllib.spec new file mode 100644 index 0000000..d6088ab --- /dev/null +++ b/python3-sgmllib.spec @@ -0,0 +1,40 @@ +%define module sgmllib +%define pypi_name sgmllib3k + +Summary: Py3k port of sgmllib +Name: python3-%{module} +Version: 1.0.0 +Release: 1 +License: BSD +Group: Libraries/Python +Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +# Source0-md5: d70efde06e40797f37e867123aa080ec +URL: https://pypi.org/project/sgmllib3k/ +BuildRequires: python3-modules +BuildRequires: python3-setuptools +BuildRequires: rpm-pythonprov +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Py3k port of sgmllib. + +%prep +%setup -q -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +rm -rf $RPM_BUILD_ROOT + +%py3_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -n python3-%{module} +%defattr(644,root,root,755) +%{py3_sitescriptdir}/%{module}.py +%{py3_sitescriptdir}/__pycache__/%{module}.cpython-*.pyc +%{py3_sitescriptdir}/%{pypi_name}-*.egg-info