Group :: Desenvolvimento/Python
RPM: python-module-PAM
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname pam
%def_with python3
Summary: PAM bindings for Python
Name: python-module-PAM
Version: 1.8.3
Release: alt1
License: %mit
Group: Development/Python
Source0: python-%{oname}-%{version}.tar
Url: https://github.com/FirefighterBlu3/python-pam
BuildArch: noarch
BuildRequires(pre): rpm-build-licenses
BuildPreReq: rpm-build-python
BuildRequires: python-devel python-module-distribute python-module-pip
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-distribute python3-module-pip
%endif
%setup_python_module %oname
%description
PAM (Pluggable Authentication Module) bindings for Python.
%if_with python3
%package -n python3-module-PAM
Summary: PAM bindings for Python (Python 3)
Group: Development/Python3
%description -n python3-module-PAM
PAM (Pluggable Authentication Module) bindings for Python 3.
%endif
%prep
%setup -n python-%oname-%version
%if_with python3
rm -rf ../python3
cp -a . ../python3
%endif
%build
%python_build
%if_with python3
pushd ../python3
%python3_build
popd
%endif
%install
%python_install
%if_with python3
pushd ../python3
%python3_install
popd
%endif
%files
%doc LICENSE README.md
%python_sitelibdir/%{oname}*
%python_sitelibdir/*.egg-info
%if_with python3
%files -n python3-module-PAM
%python3_sitelibdir/%{oname}*
%python3_sitelibdir/__pycache__/*
%python3_sitelibdir/*.egg-*
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_with python3
Summary: PAM bindings for Python
Name: python-module-PAM
Version: 1.8.3
Release: alt1
License: %mit
Group: Development/Python
Source0: python-%{oname}-%{version}.tar
Url: https://github.com/FirefighterBlu3/python-pam
BuildArch: noarch
BuildRequires(pre): rpm-build-licenses
BuildPreReq: rpm-build-python
BuildRequires: python-devel python-module-distribute python-module-pip
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-distribute python3-module-pip
%endif
%setup_python_module %oname
%description
PAM (Pluggable Authentication Module) bindings for Python.
%if_with python3
%package -n python3-module-PAM
Summary: PAM bindings for Python (Python 3)
Group: Development/Python3
%description -n python3-module-PAM
PAM (Pluggable Authentication Module) bindings for Python 3.
%endif
%prep
%setup -n python-%oname-%version
%if_with python3
rm -rf ../python3
cp -a . ../python3
%endif
%build
%python_build
%if_with python3
pushd ../python3
%python3_build
popd
%endif
%install
%python_install
%if_with python3
pushd ../python3
%python3_install
popd
%endif
%files
%doc LICENSE README.md
%python_sitelibdir/%{oname}*
%python_sitelibdir/*.egg-info
%if_with python3
%files -n python3-module-PAM
%python3_sitelibdir/%{oname}*
%python3_sitelibdir/__pycache__/*
%python3_sitelibdir/*.egg-*
%endif
%changelog
…
Todas as alterações você pod ver aqui