Blame SPECS/python-pytoml.spec

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