summaryrefslogtreecommitdiffstats
path: root/python-objgraph.spec
blob: 210cfba27871f3ea250b97a259039bc619f9e7c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%global pypi_name objgraph

Name:           python-%{pypi_name}
Version:        3.4.0
Release:        1%{?dist}
Summary:        Draws Python object reference graphs with graphviz
License:        MIT
URL:            https://mg.pov.lt/objgraph/
Source0:        https://files.pythonhosted.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(graphviz)
BuildRequires:  python3dist(mock)
BuildRequires:  python3dist(setuptools)

%global _description\
Python Object Graphs

%description %_description

%package -n python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %_description

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%{py3_build}

%install
%{py3_install}

%check
%{__python3} setup.py test

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Mon Feb 25 2019 Ken Dreyer <kdreyer@redhat.com> - 3.4.0-1
- Initial package.