File python-django-simpleapi.spec of Package python-django-simpleapi

#
# spec file for package python-django-simpleapi
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python-django-simpleapi
Version:        0.0.9
Release:        0
Summary:        A simple API-framework for Django to provide client/server-architecture
License:        MIT
Group:          Development/Libraries/Python
Url:            http://github.com/flosch/simpleapi
Source:         simpleapi-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-django
BuildRequires:  python-python-dateutil
BuildRequires:  python-setuptools
BuildRequires:  python-simplejson
Requires:       python-django
Requires:       python-python-dateutil
Requires:       python-simplejson
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:      noarch
%endif

%description
A simple API-framework for django to provide an easy to use, consistent and portable client/server-architecture.

%prep
%setup -q -n simpleapi-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}%{python_sitelib}/tests

%files
%defattr(-,root,root)
%doc AUTHORS CHANGES LICENSE README.rst VISIONARY
%{python_sitelib}/simpleapi/
%{python_sitelib}/simpleapi-%{version}-py*.egg-info/

%changelog
openSUSE Build Service is sponsored by