From df29460e991975293abf654e1f379a4fa32dc534 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Nov 16 2016 07:05:07 +0000 Subject: Initial import --- diff --git a/.gitignore b/.gitignore index e69de29..65af97e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pluginbase-0.5.tar.gz diff --git a/python-pluginbase.spec b/python-pluginbase.spec new file mode 100644 index 0000000..0e8d918 --- /dev/null +++ b/python-pluginbase.spec @@ -0,0 +1,77 @@ +%global srcname pluginbase +%global sum A support library for building plugins systems + +Name: python-%{srcname} +Version: 0.5 +Release: 2%{?dist} +Summary: %{sum} + +License: BSD +URL: https://github.com/mitsuhiko/pluginbase +Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python3-devel +BuildRequires: python2-pytest +BuildRequires: python3-pytest + +%description +PluginBase is a module for Python that enables the development of flexible +plugin systems in Python. + +%package -n python2-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +PluginBase is a module for Python that enables the development of flexible +plugin systems in Python. + +%package -n python3-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +PluginBase is a module for Python that enables the development of flexible +plugin systems in Python. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +pushd tests +PYTHONPATH=.. py.test +popd +pushd tests +PYTHONPATH=.. py.test-3 +popd + +%files -n python2-%{srcname} +%license LICENSE +%doc README +%{python2_sitelib}/%{srcname}.* +%{python2_sitelib}/%{srcname}*.egg-info/ + +%files -n python3-%{srcname} +%license LICENSE +%doc README +%{python3_sitelib}/%{srcname}.* +%{python3_sitelib}/%{srcname}*.egg-info/ +%{python3_sitelib}/__pycache__/* + +%changelog +* Tue Nov 15 2016 Fabian Affolter - 0.5-2 +- Execute tests +- Fix ownership of cache + +* Mon Nov 14 2016 Fabian Affolter - 0.5-1 +- Initial version diff --git a/sources b/sources index e69de29..e69c125 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d7910bcbb0a2c75507c9a7ef994a69b6 pluginbase-0.5.tar.gz