15
0
forked from pool/python-Jinja2

Accepting request 656829 from devel:languages:python

- Fix fdupes call

- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/656829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=32
This commit is contained in:
2018-12-14 19:48:14 +00:00
committed by Git OBS Bridge
2 changed files with 18 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Dec 10 12:43:01 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Fix fdupes call
-------------------------------------------------------------------
Tue Dec 4 12:49:28 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Tue Mar 6 15:52:17 UTC 2018 - aplanas@suse.com

View File

@@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -24,22 +24,19 @@ Release: 0
Summary: A fast and easy to use template engine written in pure Python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://jinja.pocoo.org/
URL: http://jinja.pocoo.org/
Source: https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
BuildRequires: %{python_module MarkupSafe}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Babel >= 0.8
Requires: python-MarkupSafe >= 0.23
BuildArch: noarch
%ifpython2
Provides: %{oldpython}-jinja2 = %{version}
Obsoletes: %{oldpython}-jinja2 < %{version}
%endif
Requires: python-Babel >= 0.8
Requires: python-MarkupSafe >= 0.23
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -93,24 +90,22 @@ sed -i 's/\r$//' LICENSE # Fix wrong EOL encoding
install -Dm644 ext/Vim/jinja.vim %{buildroot}%{_datadir}/vim/site/syntax/jinja.vim # Install VIM syntax file
install -Dm644 ext/jinja.el %{buildroot}%{_datadir}/emacs/site-lisp/jinja.el # Install Emacs syntax file
%if 0%{?suse_version}
%fdupes %{buildroot}%{_prefix}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS README.rst CHANGES.rst LICENSE artwork examples
%license LICENSE
%doc AUTHORS README.rst CHANGES.rst artwork examples
%{python_sitelib}/jinja2
%{python_sitelib}/Jinja2-%{version}-py%{python_version}.egg-info
%files -n python-Jinja2-vim
%defattr(-,root,root,-)
%dir %{_datadir}/vim
%dir %{_datadir}/vim/site
%dir %{_datadir}/vim/site/syntax
%{_datadir}/vim/site/syntax/jinja.vim
%files -n python-Jinja2-emacs
%defattr(-,root,root,-)
%{_datadir}/emacs/site-lisp/jinja.el
%changelog