Blame SPECS/python-pytoml.spec

d8eb63
%global project_owner avakar
d8eb63
%global github_name pytoml
d8eb63
%global commit 7dea353c8f02c8d02df1acd72121413823b574cc
d8eb63
%global shortcommit %(c=%{commit}; echo ${c:0:7})
d8eb63
%global sum Parser for TOML
d8eb63
%global desc A parser for TOML-0.4.0
d8eb63
d8eb63
d8eb63
Name:           python-%{github_name}
d8eb63
Version:        0.1.14
d8eb63
Release:        1.git%{shortcommit}%{?dist}
d8eb63
Summary:        %{sum}
d8eb63
d8eb63
License:        MIT
d8eb63
# Take source from github since the license file is not provided in pypi release.
d8eb63
URL:            https://github.com/%{project_owner}/%{github_name}
d8eb63
Source0:        https://github.com/%{project_owner}/%{github_name}/archive/%{commit}/%{github_name}-%{commit}.tar.gz
d8eb63
BuildArch:      noarch
d8eb63
BuildRequires:  python2-devel
d8eb63
BuildRequires:  python-setuptools
d8eb63
Provides:       python2-pytoml = %{version}-%{release}
d8eb63
d8eb63
%description
d8eb63
%{desc}
d8eb63
d8eb63
%prep
d8eb63
%setup -qn %{github_name}-%{commit}
d8eb63
d8eb63
%build
d8eb63
%py2_build
d8eb63
d8eb63
%install
d8eb63
%py2_install
d8eb63
d8eb63
%files
d8eb63
%doc README.md
d8eb63
%license LICENSE
d8eb63
%{python2_sitelib}/%{github_name}-%{version}*-py%{python2_version}.egg-info/
d8eb63
%{python2_sitelib}/%{github_name}/
d8eb63
d8eb63
%changelog
d8eb63
* Wed Oct 11 2017 Brent Baude <bbaude@redhat.com> - 0.1.14-1.git7dea353
d8eb63
- initial package; spec from EPEL