forked from pool/python-distutils-extra
fixed build for python3 and <12.2. error from hashlib import OBS-URL: https://build.opensuse.org/request/show/162329 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distutils-extra?expand=0&rev=28
59 lines
1.7 KiB
RPMSpec
59 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package python3-distutils-extra
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define tarball_name python-distutils-extra
|
|
|
|
Name: python3-distutils-extra
|
|
Version: 2.37
|
|
Release: 0
|
|
Summary: Distutils/Setuptools Adapter
|
|
License: GPL-2.0
|
|
Group: Development/Libraries/Python
|
|
Url: https://launchpad.net/python-distutils-extra
|
|
Source: http://launchpad.net/python-distutils-extra/trunk/%{version}/+download/%{tarball_name}-%{version}.tar.gz
|
|
BuildRequires: python3
|
|
BuildRequires: python3-devel
|
|
Requires: python3
|
|
BuildRequires: python3-distribute
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
This package adds support for common build additions to distutils. This
|
|
includes the follwing:
|
|
|
|
* gettext/i18n
|
|
* documentation
|
|
* program icons
|
|
|
|
%prep
|
|
%setup -q -n "%{tarball_name}-%{version}"
|
|
|
|
%build
|
|
python3 setup.py build
|
|
|
|
%install
|
|
python3 setup.py install --prefix="%{_prefix}" --root=%{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE doc/*
|
|
%{python3_sitelib}/*
|
|
|
|
%changelog
|