File python-yg.base.spec of Package python-yg.base
#
# spec file for package python-yg.base
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-yg.base
Version: 2.3
Release: 0
License: MIT
Summary: Namespace package shared by yg packages
Url: https://github.com/yougov/yg.lockfile
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/y/yg.lockfile/yg.lockfile-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildArch: noarch
%python_subpackages
%description
A namespace package that provides the shared files
needed by packages using the yg.___ namespace.
This shouldn't be installed on its own, packages
that need it will pull it in automatically.
%prep
%setup -q -n yg.lockfile-%{version}
%build
# Not needed
%install
%{python_expand install -m 644 -D yg/__init__.py %{buildroot}%{$python_sitelib}/yg/__init__.py
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/yg/
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/yg/
%fdupes %{buildroot}%{$python_sitelib}/
}
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%dir %{python_sitelib}/yg/
%{python_sitelib}/yg/__init__.py*
%pycache_only %dir %{python_sitelib}/yg/__pycache__/
%pycache_only %{python_sitelib}/yg/__pycache__/__init__*.py*
%changelog