1630335 - python-smbc: Remove (sub)packages from Fedora 30+: python2-smbc

f38
Zdenek Dohnal 6 years ago
parent a082c0dc3a
commit c7df9ee680

@ -6,7 +6,7 @@
Summary: Python bindings for libsmbclient API from Samba
Name: python-smbc
Version: 1.0.15.4
Release: 17%{?dist}
Release: 18%{?dist}
URL: https://github.com/hamano/pysmbc
Source: http://pypi.python.org/packages/source/p/pysmbc/pysmbc-%{version}.tar.bz2
License: GPLv2+
@ -14,9 +14,6 @@ License: GPLv2+
# gcc is no longer in buildroot by default
BuildRequires: gcc
%if 0%{?rhel} <= 7
BuildRequires: python2-devel
%endif
BuildRequires: python3-devel
BuildRequires: libsmbclient-devel >= 3.2
@ -25,20 +22,6 @@ This package provides Python bindings for the libsmbclient API
from Samba, known as pysmbc. It was written for use with
system-config-printer, but can be put to other uses as well.
%if 0%{?rhel} <= 7
%package -n python2-smbc
Summary: Python2 bindings for libsmbclient API from Samba
# defined in /usr/lib/rpm/macros.d/macros.python
# if python_provide() is defined, call python_provide(python2-smbc)
# which may eventually add Provides: ... (see the function definition)
%{?python_provide:%python_provide python2-smbc}
%description -n python2-smbc
This package provides Python 2 bindings for the libsmbclient API
from Samba, known as pysmbc. It was written for use with
system-config-printer, but can be put to other uses as well.
%endif
%package -n python3-smbc
Summary: Python3 bindings for libsmbclient API from Samba
%{?python_provide:%python_provide python3-smbc}
@ -58,28 +41,15 @@ Documentation for python-smbc.
%setup -n pysmbc-%{version}
%build
%if 0%{?rhel} <= 7
%py2_build
%endif
%py3_build
%install
%if 0%{?rhel} <= 7
%py2_install
%endif
%py3_install
export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{_bindir}/pydoc3 -w smbc
%{_bindir}/mkdir html
%{_bindir}/mv smbc.html html
%if 0%{?rhel} <= 7
%files -n python2-smbc
%doc README NEWS
%license COPYING
%{python2_sitearch}/*
%endif
%files -n python3-smbc
%doc README NEWS
%license COPYING
@ -90,6 +60,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch}
%changelog
* Fri Sep 21 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.15.4-18
- 1630335 - python-smbc: Remove (sub)packages from Fedora 30+: python2-smbc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.15.4-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save