forked from pool/python-zope.i18nmessageid
Accepting request 508927 from devel:languages:python
(forwarded request 508895 from alois) OBS-URL: https://build.opensuse.org/request/show/508927 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.i18nmessageid?expand=0&rev=4
This commit is contained in:
commit
49ef251060
@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 8 07:15:18 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Update to version 4.1.0
|
||||
* Drop support for Python 2.6 and 3.2.
|
||||
* Add support for Python 3.5 and 3.6.
|
||||
* Fix the C extension not being used in Python 3. See issue 4.
|
||||
* Make the Python implementation of Message accept any object
|
||||
for the default argument, just as the C extension does.
|
||||
This should be a unicode or byte string. See issue 5.
|
||||
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 15 12:07:37 UTC 2015 - benoit.monin@gmx.fr
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zope.i18nmessageid
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -17,57 +17,61 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zope.i18nmessageid
|
||||
Version: 4.0.3
|
||||
Version: 4.1.0
|
||||
Release: 0
|
||||
Url: http://www.python.org/pypi/zope.i18nmessageid
|
||||
Summary: Zope Location
|
||||
License: ZPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.python.org/packages/source/z/zope.i18nmessageid/zope.i18nmessageid-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
Url: http://www.python.org/pypi/zope.i18nmessageid
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.i18nmessageid/zope.i18nmessageid-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
In Zope3, i18nmessageid are special objects that has a structural i18nmessageid.
|
||||
|
||||
%package doc
|
||||
%package -n %{name}-doc
|
||||
Summary: Zope Location
|
||||
Group: Development/Languages/Python
|
||||
Provides: %{python_module zope.i18nmessageid-doc = %{version}}
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
%description -n %{name}-doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.i18nmessageid-%{version}
|
||||
rm -rf zope.i18nmessageid.egg-info
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
PYTHONPATH=$(echo $(pwd)/build/lib.*) python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%python_build
|
||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
# don't bother with development files
|
||||
rm -f %{buildroot}%python_sitearch/zope/i18nmessageid/_zope_i18nmessageid_message.c
|
||||
%{python_expand rm -f %{buildroot}%{$python_sitearch}/zope/i18nmessageid/_zope_i18nmessageid_message.c
|
||||
%fdupes -s %{buildroot}%{$python_sitearch}
|
||||
}
|
||||
|
||||
%check
|
||||
python setup.py test
|
||||
%python_exec setup.py test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
||||
%python_sitearch/*
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b4feca4eda7361d8451fac473dbf1a6006e1bb049278296b4365d209e0f554e7
|
||||
size 409921
|
3
zope.i18nmessageid-4.1.0.tar.gz
Normal file
3
zope.i18nmessageid-4.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f72c00d53407626209b878333a24710e9afa69ae235233333581cc4f3cf1356e
|
||||
size 24166
|
Loading…
Reference in New Issue
Block a user