summaryrefslogblamecommitdiffstats
path: root/package.spec
blob: 2be6e7f58847952ea4b6681c49211c472306589a (plain) (tree)











































                                                                                             
%{?!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