2013-07-30 12:25:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-zope.i18nmessageid
|
|
|
|
#
|
2020-01-21 12:38:07 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-07-30 12:25:44 +02:00
|
|
|
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2015-05-16 17:36:31 +02:00
|
|
|
|
2019-04-05 14:00:43 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-30 12:25:44 +02:00
|
|
|
#
|
|
|
|
|
2015-05-16 17:36:31 +02:00
|
|
|
|
2017-07-08 11:15:33 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-07-30 12:25:44 +02:00
|
|
|
Name: python-zope.i18nmessageid
|
2020-03-16 16:14:34 +01:00
|
|
|
Version: 5.0.1
|
2013-07-30 12:25:44 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Zope Location
|
|
|
|
License: ZPL-2.1
|
2019-10-14 16:51:07 +02:00
|
|
|
URL: https://www.python.org/pypi/zope.i18nmessageid
|
2017-07-08 11:15:33 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/z/zope.i18nmessageid/zope.i18nmessageid-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
2020-03-16 16:14:34 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-07-08 11:15:33 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-03-16 16:14:34 +01:00
|
|
|
BuildRequires: %{python_module zope.testrunner}
|
2017-07-08 11:15:33 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
# SECTION documentation requirements
|
|
|
|
BuildRequires: %{python_module Sphinx}
|
2019-04-05 14:00:43 +02:00
|
|
|
Requires: python-six
|
2017-07-08 11:15:33 +02:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
2013-07-30 12:25:44 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
In Zope3, i18nmessageid are special objects that has a structural i18nmessageid.
|
|
|
|
|
2017-07-08 11:15:33 +02:00
|
|
|
%package -n %{name}-doc
|
2013-07-30 12:25:44 +02:00
|
|
|
Summary: Zope Location
|
|
|
|
Requires: %{name} = %{version}
|
2019-10-14 16:51:07 +02:00
|
|
|
Provides: %{python_module zope.i18nmessageid-doc = %{version}}
|
2013-07-30 12:25:44 +02:00
|
|
|
|
2017-07-08 11:15:33 +02:00
|
|
|
%description -n %{name}-doc
|
2013-07-30 12:25:44 +02:00
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n zope.i18nmessageid-%{version}
|
2017-07-08 11:15:33 +02:00
|
|
|
rm -rf zope.i18nmessageid.egg-info
|
2013-07-30 12:25:44 +02:00
|
|
|
|
|
|
|
%build
|
2017-07-08 11:15:33 +02:00
|
|
|
%python_build
|
2019-10-14 16:51:07 +02:00
|
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo build/sphinx/html/objects.inv
|
2013-07-30 12:25:44 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-08 11:15:33 +02:00
|
|
|
%python_install
|
2013-07-30 12:25:44 +02:00
|
|
|
# don't bother with development files
|
2017-07-08 11:15:33 +02:00
|
|
|
%{python_expand rm -f %{buildroot}%{$python_sitearch}/zope/i18nmessageid/_zope_i18nmessageid_message.c
|
2019-10-14 16:51:07 +02:00
|
|
|
%fdupes %{buildroot}%{$python_sitearch}
|
2017-07-08 11:15:33 +02:00
|
|
|
}
|
2013-07-30 12:25:44 +02:00
|
|
|
|
|
|
|
%check
|
2020-03-16 16:14:34 +01:00
|
|
|
sed -i '/coverage/d' setup.py
|
2017-07-08 11:15:33 +02:00
|
|
|
%python_exec setup.py test
|
2013-07-30 12:25:44 +02:00
|
|
|
|
2017-07-08 11:15:33 +02:00
|
|
|
%files %{python_files}
|
2019-10-14 16:51:07 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
2017-07-08 11:15:33 +02:00
|
|
|
%{python_sitearch}/*
|
2013-07-30 12:25:44 +02:00
|
|
|
|
2017-07-08 11:15:33 +02:00
|
|
|
%files -n %{name}-doc
|
2013-07-30 12:25:44 +02:00
|
|
|
%doc build/sphinx/html/
|
|
|
|
|
|
|
|
%changelog
|