forked from pool/python-pydot
Accepting request 489385 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version. OBS-URL: https://build.opensuse.org/request/show/489385 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 19 16:15:07 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 1 20:19:09 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pydot
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pydot
|
||||
Version: 1.2.3
|
||||
Release: 0
|
||||
@@ -25,12 +26,15 @@ License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-pyparsing >= 2.1.4
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pyparsing >= 2.1.4}
|
||||
Requires: graphviz
|
||||
Requires: python-pyparsing >= 2.1.4
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
pydot allows to easily create both directed and non directed graphs from Python.
|
||||
@@ -40,16 +44,19 @@ Currently all attributes implemented in the Dot language are supported (up to Gr
|
||||
%setup -q -n pydot-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.md LICENSE
|
||||
%{python_sitelib}/dot_parser.py*
|
||||
%{python_sitelib}/pydot.py*
|
||||
%pycache_only %{python_sitelib}/__pycache__/dot_parser.*.py*
|
||||
%pycache_only %{python_sitelib}/__pycache__/pydot.*.py*
|
||||
%{python_sitelib}/pydot-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user