From 46c07d8cbbf6d3ce3b9a49ad49cc5eeab18f8157 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Nov 17 2016 09:47:00 +0000 Subject: Trivial improvements in spec Signed-off-by: Igor Gnatenko --- diff --git a/python-pluginbase.spec b/python-pluginbase.spec index 0e8d918..4fac9cc 100644 --- a/python-pluginbase.spec +++ b/python-pluginbase.spec @@ -1,40 +1,42 @@ %global srcname pluginbase -%global sum A support library for building plugins systems Name: python-%{srcname} Version: 0.5 -Release: 2%{?dist} -Summary: %{sum} +Release: 3%{?dist} +Summary: Support library for building plugins systems 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 +%global _description \ +PluginBase is a module for Python that enables the development of flexible\ plugin systems in Python. +%description %{_description} + %package -n python2-%{srcname} -Summary: %{sum} +Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pytest -%description -n python2-%{srcname} -PluginBase is a module for Python that enables the development of flexible -plugin systems in Python. +%description -n python2-%{srcname} %{_description} + +Python 2 version. %package -n python3-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pytest -%description -n python3-%{srcname} -PluginBase is a module for Python that enables the development of flexible -plugin systems in Python. +%description -n python3-%{srcname} %{_description} + +Python 3 version. %prep %autosetup -n %{srcname}-%{version} @@ -49,26 +51,27 @@ plugin systems in Python. %check pushd tests -PYTHONPATH=.. py.test -popd -pushd tests -PYTHONPATH=.. py.test-3 + PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v + PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v popd %files -n python2-%{srcname} %license LICENSE %doc README -%{python2_sitelib}/%{srcname}.* -%{python2_sitelib}/%{srcname}*.egg-info/ +%{python2_sitelib}/%{srcname}-*.egg-info/ +%{python2_sitelib}/%{srcname}.py* %files -n python3-%{srcname} %license LICENSE %doc README -%{python3_sitelib}/%{srcname}.* -%{python3_sitelib}/%{srcname}*.egg-info/ -%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}.py +%{python3_sitelib}/__pycache__/%{srcname}.* %changelog +* Thu Nov 17 2016 Igor Gnatenko - 0.5-3 +- Trivial improvements in spec + * Tue Nov 15 2016 Fabian Affolter - 0.5-2 - Execute tests - Fix ownership of cache