14
0
Thomas Bechtold
2017-07-04 05:56:29 +00:00
committed by Git OBS Bridge
parent c98af7734e
commit cbe26f1c37
2 changed files with 42 additions and 22 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sun Jul 2 14:21:11 UTC 2017 - sor.alexei@meowr.ru
- Update for the multipython build.
-------------------------------------------------------------------
Sun May 8 07:05:17 UTC 2016 - arun@gmx.de
- specfile:
* updated source url to files.pythonhosted.org
-------------------------------------------------------------------
Fri Aug 29 12:41:09 UTC 2014 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pystache
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pystache
Version: 0.5.4
Release: 0
@@ -23,46 +24,54 @@ Summary: Mustache for Python
License: MIT
Group: Development/Languages/Python
Url: http://github.com/defunkt/pystache
Source: https://pypi.python.org/packages/source/p/pystache/pystache-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
Source: https://files.pythonhosted.org/packages/source/p/pystache/pystache-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%endif
%description
Pystache is a Python implementation of Mustache. Mustache is a
framework-agnostic, logic-free templating system inspired by
ctemplate and et. Like ctemplate, Mustache "emphasizes separating
logic from presentation: it is impossible to embed application logic
in this template language."
ctemplate and etc. Like ctemplate, Mustache "emphasises separating
logic from presentation: it is impossible to embed application
logic in this template language."
The mustache(5) man page provides a good introduction to Mustache's
syntax. For a more complete (and more current) description of
Mustache's behavior, see the official Mustache spec:
Mustache's behaviour, see the official Mustache spec:
https://github.com/mustache/spec.
%python_subpackages
%prep
%setup -q -n pystache-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_clone -a %{buildroot}%{_bindir}/pystache
%python_clone -a %{buildroot}%{_bindir}/pystache-test
%{python_expand %fdupes %{buildroot}%$python_sitelib/}
%check
nosetests
%{python_expand nosetests-%$python_bin_suffix build/lib/pystache/}
%files
%defattr(-,root,root,-)
%post
%{python_install_alternative pystache pystache-test}
%postun
%{python_uninstall_alternative pystache pystache-test}
%files %{python_files}
%doc HISTORY.md LICENSE README.md TODO.md
%{python_sitelib}/*
%{_bindir}/pystache
%{_bindir}/pystache-test
%python_alternative %{_bindir}/pystache
%python_alternative %{_bindir}/pystache-test
%{python_sitelib}/pystache/
%{python_sitelib}/pystache-*
%changelog