From 05c363b6b826382bd8d3a2fc3ce03be79c55e0c9e115c2ebf1eace36729e08aa Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 18 May 2012 09:31:39 +0000 Subject: [PATCH] Accepting request 121378 from home:TheBlackCat:branches:devel:languages:python - Add full url to source - Make python 3 package noarch like the python 2 package - Fix rpmlint warnings OBS-URL: https://build.opensuse.org/request/show/121378 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyenchant?expand=0&rev=7 --- python-pyenchant.changes | 7 +++++++ python-pyenchant.spec | 14 +++++++------- python3-pyenchant.changes | 7 +++++++ python3-pyenchant.spec | 22 +++++++++++----------- 4 files changed, 32 insertions(+), 18 deletions(-) diff --git a/python-pyenchant.changes b/python-pyenchant.changes index e9aa283..b9288ed 100644 --- a/python-pyenchant.changes +++ b/python-pyenchant.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri May 4 09:27:09 UTC 2012 - toddrme2178@gmail.com + +- Add full url to source +- Make python 3 package noarch like the python 2 package +- Fix rpmlint warnings + ------------------------------------------------------------------- Mon Apr 30 14:52:01 UTC 2012 - toddrme2178@gmail.com diff --git a/python-pyenchant.spec b/python-pyenchant.spec index c32c73c..e86bc07 100644 --- a/python-pyenchant.spec +++ b/python-pyenchant.spec @@ -15,16 +15,16 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%define modname enchant -%define tarname py%{modname} -Name: python-%{tarname} +%define pyname enchant +%define modname py%{pyname} +Name: python-%{modname} Version: 1.6.5 Release: 0 Url: http://www.rfk.id.au/software/pyenchant/ Summary: Python bindings for the Enchant spellchecking system License: LGPL-2.1+ Group: Development/Languages/Python -Source: %{tarname}-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: enchant BuildRequires: python-devel @@ -43,7 +43,7 @@ BuildArch: noarch PyEnchant is a spellchecking library for Python, based on the excellent Enchant library. %prep -%setup -q -n %{tarname}-%{version} +%setup -q -n %{modname}-%{version} %build python setup.py build @@ -54,7 +54,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt TODO.txt -%{python_sitelib}/%{modname} -%{python_sitelib}/%{tarname}-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/%{pyname} +%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info %changelog diff --git a/python3-pyenchant.changes b/python3-pyenchant.changes index bdd1753..27fac51 100644 --- a/python3-pyenchant.changes +++ b/python3-pyenchant.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri May 4 09:27:09 UTC 2012 - toddrme2178@gmail.com + +- Add full url to source +- Make python 3 package noarch like the python 2 package +- Fix rpmlint warnings + ------------------------------------------------------------------- Mon Apr 30 14:52:01 UTC 2012 - toddrme2178@gmail.com diff --git a/python3-pyenchant.spec b/python3-pyenchant.spec index 1a1896b..9ed1260 100644 --- a/python3-pyenchant.spec +++ b/python3-pyenchant.spec @@ -15,26 +15,23 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%define modname enchant -%define tarname py%{modname} -Name: python3-%{tarname} +%define pyname enchant +%define modname py%{pyname} +Name: python3-%{modname} Version: 1.6.5 Release: 0 Url: http://www.rfk.id.au/software/pyenchant/ Summary: Python bindings for the Enchant spellchecking system License: LGPL-2.1+ Group: Development/Languages/Python -Source: %{tarname}-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: enchant BuildRequires: python3 BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRequires: python3-distribute -Requires: enchant -Obsoletes: python3-%{modname} < %{version} -Provides: python3-%{modname} = %{version} -Provides: PyEnchant +Provides: PyEnchant = %{version} %if 0%{?suse_version} <= 1140 %{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)} @@ -43,12 +40,15 @@ Provides: PyEnchant BuildRequires: python3-32bit %endif %endif +BuildArch: noarch +Requires: enchant +Requires: python3 >= %{py3_ver} %description PyEnchant is a spellchecking library for Python, based on the excellent Enchant library. %prep -%setup -q -n %{tarname}-%{version} +%setup -q -n %{modname}-%{version} %build python3 setup.py build @@ -59,7 +59,7 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt TODO.txt -%{python3_sitelib}/%{modname} -%{python3_sitelib}/%{tarname}-%{version}-py%{py3_ver}.egg-info +%{python3_sitelib}/%{pyname} +%{python3_sitelib}/%{modname}-%{version}-py%{py3_ver}.egg-info %changelog