From af931ae32454bb72a23dbeac515b732a2cfcca65 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 11 2021 18:46:13 +0000 Subject: Import python-actdiag-2.0.0-5.el9 in CloudSIG xena --- diff --git a/.python-actdiag.metadata b/.python-actdiag.metadata new file mode 100644 index 0000000..22c681b --- /dev/null +++ b/.python-actdiag.metadata @@ -0,0 +1 @@ +48c6e945d975e9ff000520e1e0d8aec2f31a0319 SOURCES/actdiag-2.0.0.tar.gz diff --git a/SOURCES/python-actdiag-drop-pep8-test.patch b/SOURCES/python-actdiag-drop-pep8-test.patch new file mode 100644 index 0000000..e21877d --- /dev/null +++ b/SOURCES/python-actdiag-drop-pep8-test.patch @@ -0,0 +1,65 @@ +# HG changeset patch +# User tk0miya +# Date 1424526659 -32400 +# Node ID c1f2ed5947a1e93291f5860e4e30cee098bd635d +# Parent d7797efa44c678111dc78fb7d4791aca6118c4fd +Drop test_pep8.py (replaced by flake8) + +diff --git a/src/actdiag/tests/test_pep8.py b/src/actdiag/tests/test_pep8.py +deleted file mode 100644 +--- a/src/actdiag/tests/test_pep8.py ++++ /dev/null +@@ -1,53 +0,0 @@ +-# -*- coding: utf-8 -*- +- +-from __future__ import print_function +-import os +-import sys +-import pep8 +- +-CURRENT_DIR = os.path.dirname(os.path.abspath(__file__)) +-BASE_DIR = os.path.dirname(CURRENT_DIR) +- +- +-def test_pep8(): +- arglist = [['statistics', True], +- ['show-source', True], +- ['repeat', True], +- ['paths', [BASE_DIR]]] +- +- pep8style = pep8.StyleGuide(arglist, parse_argv=False, config_file=True) +- options = pep8style.options +- if options.doctest: +- import doctest +- fail_d, done_d = doctest.testmod(report=False, verbose=options.verbose) +- fail_s, done_s = pep8.selftest(options) +- count_failed = fail_s + fail_d +- if not options.quiet: +- count_passed = done_d + done_s - count_failed +- print("%d passed and %d failed." % (count_passed, count_failed)) +- if count_failed: +- print("Test failed.") +- else: +- print("Test passed.") +- if count_failed: +- sys.exit(1) +- if options.testsuite: +- pep8.init_tests(pep8style) +- report = pep8style.check_files() +- if options.statistics: +- report.print_statistics() +- if options.benchmark: +- report.print_benchmark() +- if options.testsuite and not options.quiet: +- report.print_results() +- if report.total_errors: +- if options.count: +- sys.stderr.write(str(report.total_errors) + '\n') +- # sys.exit(1) +- +- # reporting errors (additional summary) +- errors = report.get_count('E') +- warnings = report.get_count('W') +- message = 'pep8: %d errors / %d warnings' % (errors, warnings) +- print(message) +- assert report.total_errors == 0, message diff --git a/SPECS/python-actdiag.spec b/SPECS/python-actdiag.spec new file mode 100644 index 0000000..f70f7b8 --- /dev/null +++ b/SPECS/python-actdiag.spec @@ -0,0 +1,191 @@ +%global srcname actdiag +%global srcdesc \ +actdiag and its family generate diagram images from simply text file.\ +\ +Features:\ +- Generates beautiful diagram images from simple text format (similar to\ + graphviz’s DOT format)\ +- Layouts diagram elements automatically\ +- Embeds to many documentations; Sphinx, Trac, Redmine and some wikis\ +\ +- Supports many types of diagrams\ + - activity diagram (with this package)\ + - block diagram (with the blockdiag package)\ + - sequence diagram (with the seqdiag package)\ + - logical network diagram (with the nwdiag package)\ +\ +Enjoy documentation with actdiag ! + +Name: python-%{srcname} +Version: 2.0.0 +Release: 5%{?dist} +Summary: Actdiag generates activity-diagram images from text + +License: ASL 2.0 +URL: http://blockdiag.com/ +Source: %pypi_source + +BuildArch: noarch +BuildRequires: python3-devel +%if 0 +BuildRequires: python3-blockdiag-devel +%endif +BuildRequires: %{py3_dist docutils} +BuildRequires: %{py3_dist nose} +BuildRequires: %{py3_dist pillow} +BuildRequires: %{py3_dist reportlab} +BuildRequires: %{py3_dist setuptools} + + +%description %{srcdesc} + + +%package -n %{srcname} +Summary: %{summary} +Requires: python3-%{srcname} = %{version}-%{release} + + +%description -n %{srcname} %{srcdesc} + + +%package -n python3-%{srcname} +Summary: Python 3 module for %{srcname} +%{?python_provide:%python_provide python3-%{srcname}} + + +%description -n python3-%{srcname} +%{summary}. + + +%prep +%autosetup -n %{srcname}-%{version} -p1 + + +%build +%py3_build + + +%install +%py3_install +install -m 0644 -D %{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1 + + +%if 0 +%check +%{__python3} setup.py test +%endif + + +%files -n %{srcname} +%license LICENSE +%doc README.rst +%{_bindir}/%{srcname} +%{_mandir}/man1/%{srcname}.1* + + +%files -n python3-%{srcname} +%license LICENSE +%doc PKG-INFO README.rst +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{srcname}* +%exclude %{python3_sitelib}/%{srcname}/tests + + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 2.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 2.0.0-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Jan 26 2020 Dridi Boukelmoune - 2.0.0-1 +- Bunp version to 2.0 +- Drop pep8-related uptsteam patch + +* Thu Oct 03 2019 Miro Hrončok - 0.5.4-18 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.5.4-17 +- Rebuilt for Python 3.8 + +* Tue Aug 13 2019 Dridi Boukelmoune - 0.5.4-16 +- Drop pep8 dependency + +* Fri Jul 26 2019 Fedora Release Engineering - 0.5.4-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Apr 20 2019 Dridi Boukelmoune - 0.5.4-14 +- Move the actdiag command to its own package +- Temporarilly disable the test suite + +* Tue Feb 05 2019 Dridi Boukelmoune - 0.5.4-13 +- Catch up with packaging guidelines +- In general, use recommended RPM macros +- Drop the Python 2 package +- Inline package description + +* Sat Feb 02 2019 Fedora Release Engineering - 0.5.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.5.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jul 08 2018 Fedora Release Engineering - 0.5.4-10 +- Explicit reference to /usr/bin/python2 + +* Tue Jun 19 2018 Miro Hrončok - 0.5.4-9 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.5.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 15 2018 Iryna Shcherbina - 0.5.4-7 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 0.5.4-6 +- Python 2 binary package renamed to python2-actdiag + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.5.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.5.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.5.4-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.5.4-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Mon Feb 22 2016 Dridi Boukelmoune - 0.5.4-1 +- Bumped to 0.5.4 + +* Thu Feb 04 2016 Fedora Release Engineering - 0.5.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 0.5.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.5.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon May 19 2014 Bohuslav Kabrda - 0.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Tue Mar 04 2014 Dridi Boukelmoune - 0.5.1-2 +- Fixed changelog format. +- Fixed man page permissions. + +* Sun Mar 02 2014 Dridi Boukelmoune - 0.5.1-1 +- Initial version.