aboutsummaryrefslogtreecommitdiffstats
path: root/package.spec
blob: 2be6e7f58847952ea4b6681c49211c472306589a (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
40
41
42
43
44
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-foobar
Version:        1.0.2
Release:        0
Summary:        Example foobar package
License:        MIT
URL:            https://github.com/bumba/foobar
Source:         https://files.pythonhosted.org/packages/source/s/foobar/foobar-%{version}.zip
# PATCH-FIX-UPSTREAM remove_mock.patch bsc#123456 mcepl@suse.com
# we don't need stinking mock
Patch0:         remove_mock.patch
BuildRequires:  %{python_module appdirs}
BuildRequires:  %{python_module pytest}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-appdirs
BuildArch:      noarch
%python_subpackages

%description
foobar is a collection of enhancements to the Python packages that
allow you to build and distribute Python packages,

%prep
%autosetup -p1 -n foobar-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%pytest -k

%files %{python_files}
%license LICENSE
%doc CHANGES.rst README.rst
%{_bindir}/foobar
%{python_sitelib}/foobar
%{python_sitelib}/foobar-%{version}-py%{python_version}.egg-info

%changelog