diff --git a/.gitignore b/.gitignore index e69de29..f822f60 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/PyLink-0.3.2.tar.gz diff --git a/python-PyLink.spec b/python-PyLink.spec new file mode 100644 index 0000000..1fed6f7 --- /dev/null +++ b/python-PyLink.spec @@ -0,0 +1,85 @@ +%global modname PyLink + +Name: python-PyLink +Version: 0.3.2 +Release: 1%{?dist} +Summary: Universal communication interface using File-Like API + +License: BSD +URL: https://pypi.python.org/pypi/%{modname} +Source0: https://pypi.python.org/packages/source/P/%{modname}/%{modname}-%{version}.tar.gz + +BuildArch: noarch + +%description +Pylink offers a universal communication interface using File-Like API. For now, +only the TCP, UDP, Serial and GSM interfaces are supported. + +The aim of this project is to allow any type of communication. It is best +suited for projects that have various ways of communicating including IP +remote or local serial communication. + +%package -n python2-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +%{?python_provide:%python_provide python2-pylink} +BuildRequires: python2-devel python2-setuptools +Requires: pyserial + +%description -n python2-%{modname} +Pylink offers a universal communication interface using File-Like API. For now, +only the TCP, UDP, Serial and GSM interfaces are supported. + +The aim of this project is to allow any type of communication. It is best +suited for projects that have various ways of communicating including IP +remote or local serial communication. + +Python 2 version. + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +%{?python_provide:%python_provide python3-pylink} +BuildRequires: python3-devel python3-setuptools +Requires: python3-pyserial + +%description -n python3-%{modname} +Pylink offers a universal communication interface using File-Like API. For now, +only the TCP, UDP, Serial and GSM interfaces are supported. + +The aim of this project is to allow any type of communication. It is best +suited for projects that have various ways of communicating including IP +remote or local serial communication. + +Python 3 version. + +%prep +%autosetup -n %{modname}-%{version} +rm -rf *.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +# No network things available + +%files -n python2-%{modname} +%license LICENSE +%doc AUTHORS CHANGES.rst README.rst +%{python2_sitelib}/%{modname}*.egg-info/ +%{python2_sitelib}/pylink/ + +%files -n python3-%{modname} +%license LICENSE +%doc AUTHORS CHANGES.rst README.rst +%{python3_sitelib}/%{modname}*.egg-info/ +%{python3_sitelib}/pylink/ + +%changelog +* Wed Nov 11 2015 Igor Gnatenko - 0.3.2-1 +- Initial package diff --git a/sources b/sources index e69de29..71aeec8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1970720200411fa77c6c88aa1ee504c1 PyLink-0.3.2.tar.gz