- Split of 'vim' and 'emacs' sub-packages that contain syntax highlighting
support for both editors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=7
This commit is contained in:
parent
7791308245
commit
a614ca442b
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 22 12:00:51 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Split of 'vim' and 'emacs' sub-packages that contain syntax highlighting
|
||||||
|
support for both editors
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 22 09:13:19 UTC 2011 - saschpe@suse.de
|
Thu Sep 22 09:13:19 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
@ -56,6 +56,23 @@ sandboxed environment. Here a small example of a Jinja template:
|
|||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
%package vim
|
||||||
|
Summary: Jinja2 syntax files for Vim
|
||||||
|
Group: Productivity/Text/Editors
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description vim
|
||||||
|
Vim syntax highlighting scheme for Jinja2 templates.
|
||||||
|
|
||||||
|
%package emacs
|
||||||
|
Summary: Jinja2 syntax files for Emacs
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: Productivity/Text/Editors
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description emacs
|
||||||
|
Emacs syntax highlighting scheme for Jinja2 templates.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Jinja2-%{version}
|
%setup -q -n Jinja2-%{version}
|
||||||
|
|
||||||
@ -65,13 +82,23 @@ sed -i 's/\r$//' LICENSE # Fix wrong EOL encoding
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
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} > 1010
|
%if 0%{?suse_version} > 1010
|
||||||
%fdupes %{buildroot}%{_prefix}
|
%fdupes %{buildroot}%{_prefix}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS CHANGES LICENSE artwork examples ext
|
%doc AUTHORS CHANGES LICENSE artwork examples ext/JinjaTemplates.tmbundle.tar.gz
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%files vim
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_datadir}/vim/site/syntax/jinja.vim
|
||||||
|
|
||||||
|
%files emacs
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_datadir}/emacs/site-lisp/jinja.el
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user