blob: 27e3050ab59bbc51a157df9cc8b38651865a12d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
snippet fdup
%python_expand %fdupes %{buildroot}%{$python_sitelib}
snippet nopy
%define skip_python2 1
snippet pyurl
Source: https://pypi.python.org/packages/source/X/%{modname}/%{modname}-%{version}.tar.gz
snippet ghurl
Source: https://github.com/XXX/%{modname}/archive/v%{version}/%{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
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}
|