From eb0a7afc98bd205c0ef8c7fb6e830549e85852c3 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Jan 04 2016 19:17:10 +0000 Subject: Import initial package --- diff --git a/.gitignore b/.gitignore index e69de29..b7c569f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ryu-3.26.tar.gz diff --git a/python-ryu.spec b/python-ryu.spec new file mode 100644 index 0000000..5f18ff2 --- /dev/null +++ b/python-ryu.spec @@ -0,0 +1,142 @@ +%if 0%{?fedora} +%global with_python3 0 +%endif + +%global pypi_name ryu + +Name: python-%{pypi_name} +Version: 3.26 +Release: 1%{?dist} +Summary: Component-based Software-defined Networking Framework + +License: Apache-2.0 +Url: https://osrg.github.io/ryu +Source: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +Ryu provides software components with well defined API that make it easy for developers to create new +network management and control applications. + +%package -n python2-%{pypi_name} +Summary: Component-based Software-defined Networking Framework + +Requires: python-eventlet +Requires: python-lxml +Requires: python-msgpack +Requires: python-netaddr +Requires: python-oslo-config +Requires: python-paramiko +Requires: python-routes +Requires: python-six +Requires: python-webob + +BuildRequires: pylint +BuildRequires: python2-devel +BuildRequires: python-coverage +BuildRequires: python-eventlet +BuildRequires: python-formencode +BuildRequires: python-greenlet +BuildRequires: python-lxml +BuildRequires: python-mock +BuildRequires: python-msgpack +BuildRequires: python-nose +BuildRequires: python-oslo-config +BuildRequires: python-paramiko +BuildRequires: python-pep8 +BuildRequires: python-repoze-lru +BuildRequires: python-routes +BuildRequires: python-sphinx +BuildRequires: python-setuptools +BuildRequires: python-webob + +%description -n python2-%{pypi_name} +Ryu provides software components with well defined API that make it easy for developers to create new +network management and control applications. + +%if 0%{?with_python3} +%package -n python3-%{pypi_name} +Summary: Component-based Software-defined Networking Framework +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3-eventlet +Requires: python3-lxml +Requires: python3-msgpack +Requires: python3-netaddr +Requires: python3-oslo-config +Requires: python3-paramiko +Requires: python3-routes +Requires: python3-six +Requires: python3-webob + +BuildRequires: python3-devel +BuildRequires: python3-coverage +BuildRequires: python3-eventlet +BuildRequires: python3-formencode +BuildRequires: python3-greenlet +BuildRequires: python3-lxml +BuildRequires: python3-mock +BuildRequires: python3-msgpack +BuildRequires: python3-nose +BuildRequires: python3-oslo-config +BuildRequires: python3-paramiko +BuildRequires: python3-pep8 +BuildRequires: python3-repoze-lru +BuildRequires: python3-routes +BuildRequires: python3-sphinx +BuildRequires: python3-setuptools +BuildRequires: python3-webob + +%description -n python3-%{pypi_name} +Ryu provides software components with well defined API that make it easy for developers to create new +network management and control applications. + +This is the Python 3 version. +%endif + +%prep +%setup -q -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +# FIXME: pip tries to download a specific version of pylint when running tests +sed -i 's/==0.25.0//' tools/test-requires + +%build +%py2_build +%if 0%{?with_python3} +%py3_build +%endif + +cd doc && make man + +%install +%if 0%{?with_python3} +%py3_install +%endif +%py2_install + +install -d -m 755 %{buildroot}%{_sysconfdir}/%{pypi_name} +mv %{buildroot}%{_prefix}%{_sysconfdir}/%{pypi_name}/%{pypi_name}.conf %{buildroot}%{_sysconfdir}/%{pypi_name}/%{pypi_name}.conf + +%check +%if 0%{?with_python3} +%{__python3} setup.py test +%endif +%{__python2} setup.py test + +%files +%doc AUTHORS ChangeLog README.rst +%license LICENSE +%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python2_sitelib}/%{pypi_name} +%{_bindir}/%{pypi_name} +%{_bindir}/%{pypi_name}-manager +%{_sysconfdir}/%{pypi_name}/%{pypi_name}.conf +%if 0%{?with_python3} +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python3_sitelib}/%{pypi_name} +%endif + +%changelog +* Sun Nov 22 2015 Arie Bregman - 3.26-1 +- Initial package. diff --git a/sources b/sources index e69de29..53b6f87 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +70a74b84231ba15c0df0256dfda067d5 ryu-3.26.tar.gz