forked from pool/python-pystache
Accepting request 507665 from home:XRevan86
OBS-URL: https://build.opensuse.org/request/show/507665 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pystache?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
c98af7734e
commit
cbe26f1c37
@@ -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
|
Fri Aug 29 12:41:09 UTC 2014 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pystache
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pystache
|
Name: python-pystache
|
||||||
Version: 0.5.4
|
Version: 0.5.4
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -23,46 +24,54 @@ Summary: Mustache for Python
|
|||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://github.com/defunkt/pystache
|
Url: http://github.com/defunkt/pystache
|
||||||
Source: https://pypi.python.org/packages/source/p/pystache/pystache-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pystache/pystache-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-nose
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: fdupes
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
BuildRequires: python-rpm-macros
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pystache is a Python implementation of Mustache. Mustache is a
|
Pystache is a Python implementation of Mustache. Mustache is a
|
||||||
framework-agnostic, logic-free templating system inspired by
|
framework-agnostic, logic-free templating system inspired by
|
||||||
ctemplate and et. Like ctemplate, Mustache "emphasizes separating
|
ctemplate and etc. Like ctemplate, Mustache "emphasises separating
|
||||||
logic from presentation: it is impossible to embed application logic
|
logic from presentation: it is impossible to embed application
|
||||||
in this template language."
|
logic in this template language."
|
||||||
|
|
||||||
The mustache(5) man page provides a good introduction to Mustache's
|
The mustache(5) man page provides a good introduction to Mustache's
|
||||||
syntax. For a more complete (and more current) description of
|
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.
|
https://github.com/mustache/spec.
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pystache-%{version}
|
%setup -q -n pystache-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%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
|
%check
|
||||||
nosetests
|
%{python_expand nosetests-%$python_bin_suffix build/lib/pystache/}
|
||||||
|
|
||||||
%files
|
%post
|
||||||
%defattr(-,root,root,-)
|
%{python_install_alternative pystache pystache-test}
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%{python_uninstall_alternative pystache pystache-test}
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
%doc HISTORY.md LICENSE README.md TODO.md
|
%doc HISTORY.md LICENSE README.md TODO.md
|
||||||
%{python_sitelib}/*
|
%python_alternative %{_bindir}/pystache
|
||||||
%{_bindir}/pystache
|
%python_alternative %{_bindir}/pystache-test
|
||||||
%{_bindir}/pystache-test
|
%{python_sitelib}/pystache/
|
||||||
|
%{python_sitelib}/pystache-*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user