From 95af3dc1bb19c66ce29cf928782bae4f545247e9 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sat, 17 Apr 2021 19:35:56 +0200 Subject: feat(snippets): change snippets from vim-snippets to VSCode format --- snippets/spec.snippets | 53 -------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 snippets/spec.snippets (limited to 'snippets/spec.snippets') diff --git a/snippets/spec.snippets b/snippets/spec.snippets deleted file mode 100644 index ed6d4bc..0000000 --- a/snippets/spec.snippets +++ /dev/null @@ -1,53 +0,0 @@ -snippet sedpy - sed -i -e '1s@/usr/bin/env python@/usr/bin/python@' - -snippet fdup - %python_expand %fdupes %{buildroot}%{$python_sitelib} - -snippet nopy - %define skip_python2 1 - -snippet pyurl - Source: https://files.pythonhosted.org/packages/source/X/%{modname}/%{modname}-%{version}.tar.gz - -snippet ghurl - Source: https://github.com/XXX/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz - -snippet pycache - %pycache_only %{python_sitelib}/__pycache__ - -snippet pyt - %python_expand py.test-%{$python_bin_suffix} -v - -snippet patch - # PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch bsc#[0-9]+ mcepl@suse.com - # this patch makes things totally awesome - Patch0: - -snippet pyc - $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/ - $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/ - -snippet lic - %{?!license:%define license %doc} - -snippet multi - %global flavor @BUILD_FLAVOR@%{nil} - %if "%{flavor}" == "test" - %define psuffix -test - %bcond_without test - %else - %define psuffix %{nil} - %bcond_with test - %endif - Name: python-${1:name}%{psuffix} - -snippet alt - Requires(post): update-alternatives - Requires(postun): update-alternatives - %python_clone -a execname - %post - %python_install_alternative execname - - %postun - %python_uninstall_alternative execname -- cgit