2017-09-07 15:23:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-actdiag
|
|
|
|
#
|
2024-01-18 04:33:03 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-09-07 15:23:38 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-08 04:46:24 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-07 15:23:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-04-08 10:32:51 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-09-07 15:23:38 +00:00
|
|
|
Name: python-actdiag
|
2022-08-04 12:08:24 +00:00
|
|
|
Version: 3.0.0
|
2017-09-07 15:23:38 +00:00
|
|
|
Release: 0
|
2018-12-05 19:21:13 +00:00
|
|
|
Summary: Text to activity-diagram image generator
|
2017-09-07 15:23:38 +00:00
|
|
|
License: Apache-2.0
|
2020-02-25 15:58:44 +00:00
|
|
|
URL: http://blockdiag.com/
|
2017-09-07 15:23:38 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/actdiag/actdiag-%{version}.tar.gz
|
2024-01-18 04:33:03 +00:00
|
|
|
# PATCH-FIX-UPSTREAM gh#blockdiag/actdiag#25
|
|
|
|
Patch0: clean-up-assertions.patch
|
2022-08-04 20:53:31 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
|
|
BuildRequires: %{python_module blockdiag >= 3}
|
|
|
|
BuildRequires: %{python_module docutils}
|
2024-01-18 04:33:03 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-08-04 20:53:31 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-09-07 15:23:38 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-01-18 04:33:03 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-09-07 15:23:38 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-08-04 20:53:31 +00:00
|
|
|
Requires: python-blockdiag >= 3
|
2020-05-28 07:34:19 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-04-08 10:32:51 +00:00
|
|
|
Requires(postun): update-alternatives
|
2020-05-28 07:34:19 +00:00
|
|
|
BuildArch: noarch
|
2017-09-07 15:23:38 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-12-05 19:21:13 +00:00
|
|
|
actdiag generates activity-diagram image files from spec-text files.
|
2017-09-07 15:23:38 +00:00
|
|
|
|
|
|
|
%prep
|
2024-01-18 04:33:03 +00:00
|
|
|
%autosetup -p1 -n actdiag-%{version}
|
2022-08-04 20:53:31 +00:00
|
|
|
# python-blockdiag-nose-to-pytest.patch of python-blockdiag changed the function name
|
|
|
|
sed -i 's/testcase_generator/_testcase_generator/' src/actdiag/tests/test_generate_diagram.py
|
2017-09-07 15:23:38 +00:00
|
|
|
|
|
|
|
%build
|
2024-01-18 04:33:03 +00:00
|
|
|
%pyproject_wheel
|
2017-09-07 15:23:38 +00:00
|
|
|
|
|
|
|
%install
|
2024-01-18 04:33:03 +00:00
|
|
|
%pyproject_install
|
2020-05-28 07:34:19 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/actdiag
|
2017-09-07 15:23:38 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2022-08-04 20:53:31 +00:00
|
|
|
%check
|
|
|
|
%pytest src/actdiag/tests
|
|
|
|
|
2020-05-28 07:34:19 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative actdiag
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative actdiag
|
|
|
|
|
2017-09-07 15:23:38 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:09:34 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2020-05-28 07:34:19 +00:00
|
|
|
%python_alternative %{_bindir}/actdiag
|
2022-08-04 20:53:31 +00:00
|
|
|
%{python_sitelib}/actdiag
|
2024-01-18 04:33:03 +00:00
|
|
|
%{python_sitelib}/actdiag-%{version}.dist-info
|
2017-09-07 15:23:38 +00:00
|
|
|
|
|
|
|
%changelog
|