diff --git a/.gitignore b/.gitignore index e69de29..41df649 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-slackclient-1.0.6.tar.gz diff --git a/python-slackclient.spec b/python-slackclient.spec new file mode 100644 index 0000000..0b70b90 --- /dev/null +++ b/python-slackclient.spec @@ -0,0 +1,77 @@ +%global modname slackclient + +Name: python-%{modname} +Version: 1.0.6 +Release: 1%{?dist} +Summary: Slack Developer Kit for Python + +License: MIT +URL: https://github.com/slackapi/python-%{modname} +Source0: %{url}/archive/%{version}/python-%{modname}-%{version}.tar.gz +BuildArch: noarch + +%description +%{summary}. + +%package -n python2-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +BuildRequires: python2-devel +BuildRequires: python-setuptools +BuildRequires: python-websocket-client +BuildRequires: python2-six +BuildRequires: python2-requests +Requires: python-websocket-client +Requires: python2-six + +%description -n python2-%{modname} +%{summary}. + +Python 2 version. + +%package -n python%{python3_pkgversion}-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python3-websocket-client +BuildRequires: python3-six +BuildRequires: python3-requests +Requires: python3-websocket-client +Requires: python3-six + +%description -n python%{python3_pkgversion}-%{modname} +%{summary}. + +Python %{python3_pkgversion} version. + +%prep +%autosetup + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-%{modname} +%doc README.rst *.md +%license LICENSE +%{python2_sitelib}/%{modname}/ +%{python2_sitelib}/%{modname}-*.egg-info/ + +%files -n python%{python3_pkgversion}-%{modname} +%doc README.rst *.md +%license LICENSE +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-*.egg-info/ + +%changelog +* Wed Jul 05 2017 Gwyn Ciesla - 1.0.6-1 +- Initial package. diff --git a/sources b/sources index e69de29..31451b6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-slackclient-1.0.6.tar.gz) = 4549b13dc7314e692a18f3969a7addcb74361122373ae0889d7aa5dee170112028fec1052408433e479a846be3013d1b8ce798cc73224d5f01ebc7192c50b77f