Accepting request 121379 from devel:languages:python
- Add full url to source - Make python 3 package noarch like the python 2 package - Fix rpmlint warnings (forwarded request 121378 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/121379 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyenchant?expand=0&rev=3
This commit is contained in:
commit
e2c8c86fe1
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user