python-graphviz/python-graphviz.spec

103 lines
2.9 KiB
RPMSpec
Raw Normal View History

2021-07-15 14:38:53 +08:00
%global _empty_manifest_terminate_build 0
Name: python-graphviz
2023-04-04 11:38:44 +08:00
Version: 0.20.1
Release: 1
2021-07-15 14:38:53 +08:00
Summary: Simple Python interface for Graphviz
License: MIT
URL: https://github.com/xflr6/graphviz
2023-04-04 11:38:44 +08:00
Source0: https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.zip
2021-07-15 14:38:53 +08:00
BuildArch: noarch
%description
This package makes it easier to create and render a graph description in
the DOT language which from the Python Graphviz graph drawing software.
2021-07-15 14:38:53 +08:00
%package -n python3-graphviz
Summary: Simple Python interface for Graphviz
Provides: python-graphviz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-tox
Requires: python3-flake8
Requires: python3-wheel
Requires: python3-sphinx
2021-07-28 16:02:32 +08:00
Requires: python3-sphinx_rtd_theme
2021-07-15 14:38:53 +08:00
Requires: python3-mock
Requires: python3-pytest
Requires: python3-pytest-mock
Requires: python3-pytest-cov
%description -n python3-graphviz
2021-07-15 14:38:53 +08:00
This package makes it easier to create and render a graph description in
the DOT language which from the Python Graphviz graph drawing software.
2021-07-15 14:38:53 +08:00
%package help
Summary: Development documents and examples for graphviz
Provides: python3-graphviz-doc
%description help
This package makes it easier to create and render a graph description in
the DOT language which from the Python Graphviz graph drawing software.
%prep
2023-04-04 11:38:44 +08:00
%autosetup -n graphviz-%{version} -p1
%build
%py3_build
%install
%py3_install
2021-07-15 14:38:53 +08:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%{__python3} setup.py test
2021-07-15 14:38:53 +08:00
%files -n python3-graphviz -f filelist.lst
%dir %{python3_sitelib}/*
2021-07-15 14:38:53 +08:00
%files help -f doclist.lst
%{_docdir}/*
%changelog
2023-04-04 11:38:44 +08:00
* Tue Apr 04 2023 yaoxin <yaoxin30@h-partners.com> - 0.20.1-1
- Update to 0.20.1
* Mon Jul 25 2022 wulei <wulei80@h-partners.com> - 0.16-3
- Remove extras requires python-pep8-naming and python-twine
2021-07-28 16:02:32 +08:00
* Wed Jul 28 2021 openstack-sig <openstack@openeuler.org>
- Fix requires
2021-07-15 14:38:53 +08:00
* Fri Jul 09 2021 openstack-sig <openstack@openeuler.org>
- Update to 0.16
2020-11-11 17:05:34 +08:00
* Thu Oct 22 2020 maminjie <maminjie1@huawei.com> - 1:0.8.3-5
- Drop python2 support
* Fri Mar 13 2020 yinzhenling <yinzhenling2@huawei.com> - 1:0.8.3-4
- Initial package.