15
0
Files
python-check-manifest/python-check-manifest.spec
Tomáš Chvátal db2537ecaa Accepting request 701596 from home:jayvdb:coala:python3-bears
- Remove unnecessary bcond test
- Add optional VCS dependencies to BuildDepends and Suggests
- Use fdupes
- Revise Summary replacing confusing 'MANIFEST in' with MANIFEST.in
- Update to v0.38
  * Add Python 3.7 support
  * Drop Python 3.4 support.
  * Added GitHub templates to default ignore patterns
  * Added reading check-manifest config out of tox.ini or pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/701596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-check-manifest?expand=0&rev=3
2019-05-09 09:41:16 +00:00

73 lines
2.1 KiB
RPMSpec

#
# spec file for package python-check-manifest
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-check-manifest
Version: 0.38
Release: 0
Summary: Check Python source package MANIFEST.in for completeness
License: MIT
Group: Development/Languages/Python
Url: https://github.com/mgedmin/check-manifest
Source: https://files.pythonhosted.org/packages/source/c/check-manifest/check-manifest-%{version}.tar.gz
BuildRequires: %{python_module mock}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module toml}
BuildRequires: bzr
BuildRequires: fdupes
BuildRequires: git-core
BuildRequires: mercurial
BuildRequires: subversion
BuildRequires: python-rpm-macros
Requires: python-toml
Suggests: bzr
Suggests: git-core
Suggests: mercurial
Suggests: subversion
BuildArch: noarch
%python_subpackages
%description
check-manifest is a tool for python developers to check for broken packages
and missing files in MANIFEST.
%prep
%setup -q -n check-manifest-%{version}
sed -i '1{\,^#!/usr/bin/env python,d}' check_manifest.py
chmod -x check_manifest.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%python_exec setup.py test
%files %{python_files}
%doc CHANGES.rst README.rst
%license LICENSE.rst
%python3_only %{_bindir}/check-manifest
%{python_sitelib}/*
%changelog