Subpackage python2-dmidecode has been removed
This commit is contained in:
parent
e108872ecb
commit
67388bdaad
@ -1,7 +1,7 @@
|
|||||||
Name: python-dmidecode
|
Name: python-dmidecode
|
||||||
Summary: Python module to access DMI data
|
Summary: Python module to access DMI data
|
||||||
Version: 3.12.2
|
Version: 3.12.2
|
||||||
Release: 15%{?dist}
|
Release: 16%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://projects.autonomy.net.au/python-dmidecode/
|
URL: http://projects.autonomy.net.au/python-dmidecode/
|
||||||
Source0: https://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz
|
Source0: https://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz
|
||||||
@ -9,9 +9,6 @@ Source0: https://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-libxml2
|
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: libxml2-python3
|
BuildRequires: libxml2-python3
|
||||||
|
|
||||||
@ -24,75 +21,36 @@ as python data structures or as XML data using libxml2.\
|
|||||||
|
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
%package -n python2-dmidecode
|
|
||||||
Summary: %summary
|
|
||||||
Requires: python2-libxml2
|
|
||||||
%{?python_provide:%python_provide python2-dmidecode}
|
|
||||||
|
|
||||||
%description -n python2-dmidecode %_description
|
|
||||||
|
|
||||||
%package -n python3-dmidecode
|
%package -n python3-dmidecode
|
||||||
Summary: Python 3 module to access DMI data
|
Summary: Python 3 module to access DMI data
|
||||||
Requires: libxml2-python3
|
Requires: libxml2-python3
|
||||||
|
|
||||||
%description -n python3-dmidecode
|
%description -n python3-dmidecode %_description
|
||||||
python3-dmidecode is a Python 3 extension module that uses the
|
|
||||||
code-base of the 'dmidecode' utility, and presents the data
|
|
||||||
as Python 3 data structures or as XML data using libxml2.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qc
|
%setup -q
|
||||||
mv %{name}-%{version} python2
|
|
||||||
cp -a python{2,3}
|
|
||||||
|
|
||||||
pushd python3
|
|
||||||
sed -i 's/python2/python3/g' Makefile unit-tests/Makefile
|
sed -i 's/python2/python3/g' Makefile unit-tests/Makefile
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Not to get undefined symbol: dmixml_GetContent
|
# Not to get undefined symbol: dmixml_GetContent
|
||||||
export CFLAGS="${CFLAGS-} -std=gnu89"
|
export CFLAGS="${CFLAGS-} -std=gnu89"
|
||||||
|
|
||||||
|
|
||||||
for PY in python2 python3; do
|
|
||||||
pushd $PY
|
|
||||||
make build
|
make build
|
||||||
popd
|
|
||||||
done
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd python2
|
|
||||||
%{__python2} src/setup.py install --root %{buildroot} --prefix=%{_prefix}
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd python3
|
|
||||||
%{__python3} src/setup.py install --root %{buildroot} --prefix=%{_prefix}
|
%{__python3} src/setup.py install --root %{buildroot} --prefix=%{_prefix}
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
for PY in python2 python3; do
|
pushd unit-tests
|
||||||
pushd $PY/unit-tests
|
|
||||||
make
|
make
|
||||||
popd
|
popd
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-dmidecode
|
|
||||||
%license python2/doc/LICENSE python2/doc/AUTHORS python2/doc/AUTHORS.upstream
|
|
||||||
%doc python2/README python2/doc/README.upstream
|
|
||||||
%{python2_sitearch}/dmidecodemod.so
|
|
||||||
%{python2_sitearch}/dmidecode.py
|
|
||||||
%{python2_sitearch}/dmidecode.py[co]
|
|
||||||
%{python2_sitearch}/*.egg-info
|
|
||||||
%{_datadir}/python-dmidecode/
|
|
||||||
|
|
||||||
%files -n python3-dmidecode
|
%files -n python3-dmidecode
|
||||||
%license python3/doc/LICENSE python3/doc/AUTHORS python3/doc/AUTHORS.upstream
|
%license doc/LICENSE doc/AUTHORS doc/AUTHORS.upstream
|
||||||
%doc python3/README python3/doc/README.upstream
|
%doc README doc/README.upstream
|
||||||
%{python3_sitearch}/dmidecodemod.cpython-%{python3_version_nodots}*.so
|
%{python3_sitearch}/dmidecodemod.cpython-%{python3_version_nodots}*.so
|
||||||
%{python3_sitearch}/__pycache__/dmidecode.cpython-%{python3_version_nodots}*.py[co]
|
%{python3_sitearch}/__pycache__/dmidecode.cpython-%{python3_version_nodots}*.py[co]
|
||||||
%{python3_sitearch}/dmidecode.py
|
%{python3_sitearch}/dmidecode.py
|
||||||
@ -100,6 +58,10 @@ done
|
|||||||
%{_datadir}/python-dmidecode/
|
%{_datadir}/python-dmidecode/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Aug 11 2019 Miro Hrončok <mhroncok@redhat.com> - 3.12.2-16
|
||||||
|
- Subpackage python2-dmidecode has been removed
|
||||||
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.2-15
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.2-15
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user