2017-09-07 15:23:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-actdiag
|
|
|
|
#
|
2025-08-27 03:01:45 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
2025-06-16 12:11:07 +00:00
|
|
|
%bcond_without libalternatives
|
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
|
2025-08-27 03:01:45 +00:00
|
|
|
# PATCH-FIX-OPENSUSE Support new fancy pytest parameterized methods in blockdiag
|
|
|
|
Patch1: support-new-fancy-blockdiag-pytest.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}
|
2025-06-16 12:11:07 +00:00
|
|
|
BuildRequires: alts
|
2017-09-07 15:23:38 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2025-06-16 12:11:07 +00:00
|
|
|
Requires: alts
|
2022-08-04 20:53:31 +00:00
|
|
|
Requires: python-blockdiag >= 3
|
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}
|
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
|
2025-08-27 03:01:45 +00:00
|
|
|
# All of these are shipped by blockdiag and fail to parse
|
|
|
|
donttest+="diagram_attributes.diag-svg-options44 or "
|
|
|
|
donttest+="edge_datamodels.diag-svg-options60 or "
|
|
|
|
donttest+="empty_group.diag-svg-options84 or "
|
|
|
|
donttest+="empty_group_declaration.diag-svg-options88 or "
|
|
|
|
donttest+="empty_nested_group.diag-svg-options92 or "
|
|
|
|
donttest+="group_and_skipped_edge.diag-svg-options108 or "
|
|
|
|
donttest+="group_attribute.diag-svg-options112 or "
|
|
|
|
donttest+="group_children_height.diag-svg-options116 or "
|
|
|
|
donttest+="group_children_order.diag-svg-options120 or "
|
|
|
|
donttest+="group_children_order2.diag-svg-options124 or "
|
|
|
|
donttest+="group_children_order3.diag-svg-options128 or "
|
|
|
|
donttest+="group_children_order4.diag-svg-options132 or "
|
|
|
|
donttest+="group_declare_as_node_attribute.diag-svg-options136 or "
|
|
|
|
donttest+="group_height.diag-svg-options140 or "
|
|
|
|
donttest+="group_id_and_node_id_are_not_conflicted.diag-svg-options144 or "
|
|
|
|
donttest+="group_label.diag-svg-options148 or "
|
|
|
|
donttest+="group_order.diag-svg-options152 or "
|
|
|
|
donttest+="group_order2.diag-svg-options156 or "
|
|
|
|
donttest+="group_order3.diag-svg-options160 or "
|
|
|
|
donttest+="group_orientation.diag-svg-options164 or "
|
|
|
|
donttest+="group_sibling.diag-svg-options168 or "
|
|
|
|
donttest+="group_works_node_decorator.diag-svg-options172 or "
|
|
|
|
donttest+="large_group_and_node.diag-svg-options180 or "
|
|
|
|
donttest+="large_group_and_node2.diag-svg-options184 or "
|
|
|
|
donttest+="large_group_and_two_nodes.diag-svg-options188 or "
|
|
|
|
donttest+="merge_groups.diag-svg-options192 or "
|
|
|
|
donttest+="multiple_groups.diag-svg-options196 or "
|
|
|
|
donttest+="multiple_nested_groups.diag-svg-options200 or "
|
|
|
|
donttest+="nested_group_orientation.diag-svg-options216 or "
|
|
|
|
donttest+="nested_group_orientation2.diag-svg-options220 or "
|
|
|
|
donttest+="nested_groups.diag-svg-options224 or "
|
|
|
|
donttest+="nested_groups_and_edges.diag-svg-options228 or "
|
|
|
|
donttest+="nested_groups_work_node_decorator.diag-svg-options232 or "
|
|
|
|
donttest+="node_attribute_and_group.diag-svg-options244 or "
|
|
|
|
donttest+="node_in_group_follows_outer_node.diag-svg-options264 or "
|
|
|
|
donttest+="node_link.diag-svg-options268 or "
|
|
|
|
donttest+="outer_node_follows_node_in_group.diag-svg-options312 or "
|
|
|
|
donttest+="reverse_multiple_groups.diag-svg-options332 or "
|
|
|
|
donttest+="separate1.diag-svg-options344 or "
|
|
|
|
donttest+="separate2.diag-svg-options348 or "
|
|
|
|
donttest+="simple_group.diag-svg-options352"
|
|
|
|
%pytest src/actdiag/tests -k "not ($donttest)"
|
2022-08-04 20:53:31 +00:00
|
|
|
|
2025-06-16 12:11:07 +00:00
|
|
|
%pre
|
|
|
|
%python_libalternatives_reset_alternative actdiag
|
2020-05-28 07:34:19 +00:00
|
|
|
|
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
|