Explicitly BuildRequire setuptools & spec cleanup

epel9
Tomas Hrnciar 4 years ago
parent 827f6ad700
commit 29e8ea4d8d

@ -1,6 +1,6 @@
Name: pyscard Name: pyscard
Version: 1.9.7 Version: 1.9.7
Release: 10%{?dist} Release: 11%{?dist}
Summary: A framework for building smart card aware applications in Python Summary: A framework for building smart card aware applications in Python
@ -24,6 +24,7 @@ Python wrapper module.
%package -n python%{python3_pkgversion}-%{name} %package -n python%{python3_pkgversion}-%{name}
Summary: A framework for building smart card aware applications in Python Summary: A framework for building smart card aware applications in Python
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
Requires: pcsc-lite Requires: pcsc-lite
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
@ -34,21 +35,6 @@ Python wrapper module.
This is the python3 package. This is the python3 package.
%if 0%{?python3_other_pkgversion}
%package -n python%{python3_other_pkgversion}-%{name}
Summary: A framework for building smart card aware applications in Python
BuildRequires: python%{python3_other_pkgversion}-devel
Requires: pcsc-lite
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{name}}
%description -n python%{python3_other_pkgversion}-%{name}
The pyscard smartcard library is a framework for building smart card aware
applications in Python. The smartcard module is built on top of the PCSC API
Python wrapper module.
This is the python3 package.
%endif
%prep %prep
%setup -q %setup -q
# license file is CRLF terminated -- prevent a rpmlint warning # license file is CRLF terminated -- prevent a rpmlint warning
@ -56,16 +42,10 @@ This is the python3 package.
%build %build
%py3_build %py3_build
%if 0%{?python3_other_pkgversion}
%py3_other_build
%endif
%install %install
%py3_install %py3_install
chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
%if 0%{?python3_other_pkgversion}
%py3_other_install
%endif
%files -n python%{python3_pkgversion}-%{name} %files -n python%{python3_pkgversion}-%{name}
@ -75,16 +55,11 @@ chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
%{python3_sitearch}/smartcard/ %{python3_sitearch}/smartcard/
%{python3_sitearch}/%{name}-%{version}-py*.egg-info %{python3_sitearch}/%{name}-%{version}-py*.egg-info
%if 0%{?python3_other_pkgversion}
%files -n python%{python3_other_pkgversion}-%{name}
%license LICENSE
%doc ACKS README.md
%doc smartcard/doc/*
%{python3_other_sitearch}/smartcard/
%{python3_other_sitearch}/%{name}-%{version}-py*.egg-info
%endif
%changelog %changelog
* Mon Mar 22 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.9.7-11
- remove %{python3_other_version} ifs
- explicitly buildrequire python3-setuptools
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.7-10 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.7-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save