%global githash 57ef11c Name: python-straight-plugin Version: 1.1.1 Release: 0.2.20111110git%{githash}%{?dist} Summary: Python plugin loader License: BSD URL: https://github.com/ironfroggy/straight.plugin/ # url: https://github.com/ironfroggy/straight.plugin/tarball/57ef11c Source0: ironfroggy-straight.plugin-%{githash}.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python3-devel BuildRequires: python-tools %description straight.plugin is a Python plugin loader inspired by twisted.plugin with two important distinctions: - Fewer dependencies - Python 3 compatible The system is used to allow multiple Python packages to provide plugins within a namespace package, where other packages will locate and utilize. The plugins themselves are modules in a namespace package where the namespace identifies the plugins in it for some particular purpose or intent. %package -n python3-straight-plugin Summary: Python plugin loader %description -n python3-straight-plugin straight.plugin is a Python plugin loader inspired by twisted.plugin with two important distinctions: - Fewer dependencies - Python 3 compatible The system is used to allow multiple Python packages to provide plugins within a namespace package, where other packages will locate and utilize. The plugins themselves are modules in a namespace package where the namespace identifies the plugins in it for some particular purpose or intent. %prep %setup -q -c -n ironfroggy-straight.plugin-%{githash} cp -r ironfroggy-straight.plugin-%{githash} py3-ironfroggy-straight.plugin-%{githash} 2to3 --write --nobackups py3-ironfroggy-straight.plugin-%{githash} %build pushd ironfroggy-straight.plugin-%{githash} %{__python} setup.py build popd pushd py3-ironfroggy-straight.plugin-%{githash} %{__python3} setup.py build popd %install rm -rf $RPM_BUILD_ROOT pushd ironfroggy-straight.plugin-%{githash} %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT popd pushd py3-ironfroggy-straight.plugin-%{githash} %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT popd %check pushd ironfroggy-straight.plugin-%{githash} %{__python} tests.py popd pushd py3-ironfroggy-straight.plugin-%{githash} %{__python3} tests.py popd %files %doc ironfroggy-straight.plugin-%{githash}/LICENSE ironfroggy-straight.plugin-%{githash}/README # For noarch packages: sitelib %{python_sitelib}/* %files -n python3-straight-plugin %doc py3-ironfroggy-straight.plugin-%{githash}/LICENSE py3-ironfroggy-straight.plugin-%{githash}/README # For noarch packages: sitelib %{python3_sitelib}/* %changelog * Thu Nov 10 2011 Pierre-Yves Chibon - 1.1.1-0.2.20111110git57ef11c - Rename the package to remove the dot * Thu Nov 10 2011 Pierre-Yves Chibon - 1.1.1-0.1.20111110git57ef11c - Initial packaging work for Fedora