diff --git a/.gitignore b/.gitignore index e69de29..cdd94ea 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/serpy-0.1.1.tar.gz diff --git a/python-serpy.spec b/python-serpy.spec new file mode 100644 index 0000000..926a814 --- /dev/null +++ b/python-serpy.spec @@ -0,0 +1,81 @@ +%global modname serpy + +Name: python-%{modname} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Ridiculously fast object serialization + +License: MIT +URL: https://github.com/clarkduvall/serpy +Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz + +BuildArch: noarch + +%global _description \ +serpy is a super simple object serialization framework built for speed.\ +serpy serializes complex datatypes (Django Models, custom classes, ...)\ +to simple native types (dicts, lists, strings, ...). The native types can\ +easily be converted to JSON or any other format needed.\ +\ +The goal of serpy is to be able to do this simply, reliably, and quickly.\ +Since serializers are class based, they can be combined, extended and\ +customized with very little code duplication. Compared to other popular\ +Python serialization frameworks like marshmallow or Django Rest Framework\ +Serializers serpy is at least an order of magnitude faster. + +%description %{_description} + +%package -n python2-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-six +Requires: python2-six + +%description -n python2-%{modname} %{_description} + +Python 2 version. + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-six +Requires: python3-six + +%description -n python3-%{modname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{modname}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-%{modname} +%license LICENSE +%doc README.rst +%{python2_sitelib}/%{modname}-*.egg-info/ +%{python2_sitelib}/%{modname}/ + +%files -n python3-%{modname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{modname}-*.egg-info/ +%{python3_sitelib}/%{modname}/ + +%changelog +* Fri Aug 26 2016 Igor Gnatenko - 0.1.1-1 +- Initial package diff --git a/sources b/sources index e69de29..b6ce64f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f45d7ff12258c57aa3ca5b75c4c366d3 serpy-0.1.1.tar.gz