From e6ca446a456f9f6bc712541c400bb38f0a0627c5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Dec 06 2015 09:01:20 +0000 Subject: Initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore index e69de29..eef7a70 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/amico-1.0.1.tar.gz diff --git a/python-amico.spec b/python-amico.spec new file mode 100644 index 0000000..24de928 --- /dev/null +++ b/python-amico.spec @@ -0,0 +1,81 @@ +%global modname amico + +Name: python-%{modname} +Version: 1.0.1 +Release: 1%{?dist} +Summary: Relationships (e.g. friendships) backed by Redis + +License: MIT +URL: https://pypi.python.org/pypi/amico +Source0: https://pypi.python.org/packages/source/a/amico/%{modname}-%{version}.tar.gz + +BuildArch: noarch + +%description +%{summary}. + +%package -n python2-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +BuildRequires: python2-devel python2-setuptools +BuildRequires: python-redis +Requires: python-redis + +%description -n python2-%{modname} +%{summary}. + +Python 2 version. + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: /usr/bin/2to3 +BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-redis +Requires: python3-redis + +%description -n python3-%{modname} +%{summary}. + +Python 3 version. + +%prep +%autosetup -c +mv %{modname}-%{version} python2 + +rm -rf python2/*.egg-info + +cp -a python2 python3 +2to3 --write --nobackups python3 + +%build +pushd python2 + %py2_build +popd + +pushd python3 + %py3_build +popd + +%install +pushd python2 + %py2_install +popd + +pushd python3 + %py3_install +popd + +%files -n python2-%{modname} +%license python2/LICENSE.txt +%doc python2/README.md +%{python2_sitelib}/%{modname}* + +%files -n python3-%{modname} +%license python3/LICENSE.txt +%doc python3/README.md +%{python3_sitelib}/%{modname}* + +%changelog +* Sat Dec 05 2015 Igor Gnatenko - 1.0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..6d4530f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ed201e0e9adb30221ab25801c708f3f8 amico-1.0.1.tar.gz