[python-straight-plugin] First import of python-straight-plugin

Pierre-YvesChibon pingou at fedoraproject.org
Fri Nov 11 15:16:44 UTC 2011


commit fc69c34ab33244decee91483325b6a1d99f39f1f
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date:   Fri Nov 11 16:16:35 2011 +0100

    First import of python-straight-plugin

 .gitignore                  |    1 +
 python-straight-plugin.spec |  104 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3404fa6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ironfroggy-straight.plugin-57ef11c.tar.gz
diff --git a/python-straight-plugin.spec b/python-straight-plugin.spec
new file mode 100644
index 0000000..53c94ca
--- /dev/null
+++ b/python-straight-plugin.spec
@@ -0,0 +1,104 @@
+%global githash 57ef11c
+
+Name:           python-straight-plugin
+Version:        1.1.1
+Release:        0.3.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:  python2-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 <pingou at pingoured.fr> - 1.1.1-0.3.20111110git57ef11c
+- Fix the use of __python3 for the tests and the build
+- Change python-devel to python2-devel on the BR
+
+* Thu Nov 10 2011 Pierre-Yves Chibon <pingou at pingoured.fr> - 1.1.1-0.2.20111110git57ef11c
+- Rename the package to remove the dot
+
+* Thu Nov 10 2011 Pierre-Yves Chibon <pingou at pingoured.fr> - 1.1.1-0.1.20111110git57ef11c
+- Initial packaging work for Fedora
diff --git a/sources b/sources
index e69de29..028bd2f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e841f577d21eb8eaf1cc48dd8e50107c  ironfroggy-straight.plugin-57ef11c.tar.gz


More information about the scm-commits mailing list