12
0

2 Commits

2 changed files with 14 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 5 11:08:56 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Modernize packaging
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 1 20:35:49 UTC 2023 - Dirk Müller <dmueller@suse.com> Thu Jun 1 20:35:49 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file # spec file for package python-zope.schema
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -33,6 +33,7 @@ License: ZPL-2.1
URL: https://pypi.python.org/pypi/zope.schema URL: https://pypi.python.org/pypi/zope.schema
Source: https://files.pythonhosted.org/packages/source/z/zope.schema/zope.schema-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/z/zope.schema/zope.schema-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -63,11 +64,11 @@ required.
rm -rf zope.schema.egg-info rm -rf zope.schema.egg-info
%build %build
%python_build %pyproject_wheel
%install %install
%if !%{with test} %if !%{with test}
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@@ -80,7 +81,10 @@ rm -rf zope.schema.egg-info
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc COPYRIGHT.txt CHANGES.rst README.rst %doc COPYRIGHT.txt CHANGES.rst README.rst
%{python_sitelib}/* %dir %{python_sitelib}/zope
%{python_sitelib}/zope/schema
%{python_sitelib}/zope[_.]schema-%{version}*info
%{python_sitelib}/zope.schema-%{version}*pth
%endif %endif
%changelog %changelog