2020-06-02 08:17:42 +02:00
|
|
|
#
|
|
|
|
# spec file for package git-deps
|
|
|
|
#
|
2022-09-26 11:58:16 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-06-02 08:17:42 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2020-10-30 16:40:59 +01:00
|
|
|
|
2020-06-02 08:17:42 +02:00
|
|
|
%define skip_python2 1
|
|
|
|
Name: git-deps
|
2024-07-18 19:52:43 +02:00
|
|
|
Version: 1.1.0+git.1696898573.89d51e8
|
2020-06-02 08:17:42 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Tool to analyze git deps
|
|
|
|
License: GPL-2.0-only
|
|
|
|
Group: Development/Tools/Version Control
|
|
|
|
URL: https://github.com/aspiers/git-deps
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
2024-07-18 19:52:43 +02:00
|
|
|
# PATCH-FIX-UPSTREAM dont-use-st-markdown.patch gh#aspiers/git-deps!118 mcepl@suse.com
|
|
|
|
# update syntax to the current levels and eliminate (almost) setup.py
|
2020-06-02 08:17:42 +02:00
|
|
|
Patch0: dont-use-st-markdown.patch
|
2024-07-18 19:52:43 +02:00
|
|
|
# PATCH-FIX-UPSTREAM pygit2-1.15.0.patch gh#aspiers/git-deps!129 mcepl@suse.com
|
|
|
|
# make compatible with pygit2 1.15.0
|
|
|
|
Patch1: pygit2-1.15.0.patch
|
|
|
|
# PATCH-FIX-UPSTREAM no-pkg-resources.patch gh#aspiers/git-deps!131 mcepl@suse.com
|
|
|
|
# Don't depend on pkg_resources
|
|
|
|
Patch2: no-pkg-resources.patch
|
2020-10-30 16:40:59 +01:00
|
|
|
BuildRequires: fdupes
|
2024-07-18 19:52:43 +02:00
|
|
|
BuildRequires: git
|
2020-10-30 16:40:59 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2021-04-03 11:49:02 +02:00
|
|
|
BuildRequires: python3-pip
|
|
|
|
BuildRequires: python3-pygit2
|
2024-07-18 19:52:43 +02:00
|
|
|
# Because of version = attr: package.__version__
|
|
|
|
BuildRequires: python3-setuptools >= 46.4.0
|
2021-04-03 11:49:02 +02:00
|
|
|
BuildRequires: python3-wheel
|
2024-07-18 19:52:43 +02:00
|
|
|
BuildRequires: python3-pytest
|
|
|
|
# BuildRequires: python3-certifi
|
2021-04-12 22:52:38 +02:00
|
|
|
Requires: python3-pygit2
|
2020-07-02 19:53:44 +02:00
|
|
|
# for html subpackage
|
2021-04-03 11:49:02 +02:00
|
|
|
Requires: python3-Flask
|
2020-07-02 19:53:44 +02:00
|
|
|
#Requires: nodejs-browserify # broken/missing
|
|
|
|
Requires: npm
|
2024-07-18 19:52:43 +02:00
|
|
|
Requires: git
|
2020-06-02 08:17:42 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tool to analyze git dependencies
|
|
|
|
|
|
|
|
file bugs at https://github.com/aspiers/git-deps/issues
|
|
|
|
|
|
|
|
%package html
|
|
|
|
Summary: Tool to analyze git deps - HTML parts
|
2020-10-30 16:40:59 +01:00
|
|
|
Group: Development/Tools/Version Control
|
2020-06-02 08:17:42 +02:00
|
|
|
|
|
|
|
%description html
|
|
|
|
Documentation for git-deps.
|
|
|
|
|
|
|
|
%prep
|
2021-04-03 11:49:02 +02:00
|
|
|
%autosetup -p1 -n %{name}-%{version}
|
2020-06-02 08:17:42 +02:00
|
|
|
|
|
|
|
%build
|
2024-07-18 19:52:43 +02:00
|
|
|
%python3_pyproject_wheel
|
2020-06-02 08:17:42 +02:00
|
|
|
|
|
|
|
%install
|
2024-07-18 19:52:43 +02:00
|
|
|
%python3_pyproject_install
|
|
|
|
install -D -m 755 %{buildroot}%{python3_sitelib}/git_deps/handler.py \
|
|
|
|
%{buildroot}%{_bindir}/gitfile-handler
|
|
|
|
%python3_fix_shebang
|
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# Test doesn't work with tarball, requires .git/ directory with full history
|
|
|
|
# # because of gh#libgit2/pygit2$1311
|
|
|
|
# export PYTEST_ADDOPTS="--ignore tests/test_GitUtils.py"
|
|
|
|
# %%python3_pytest
|
2020-06-02 08:17:42 +02:00
|
|
|
|
2021-04-03 11:49:02 +02:00
|
|
|
%files
|
2020-06-02 08:17:42 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc AUTHORS.rst CONTRIBUTING.md CHANGES.rst README.md USAGE.md
|
|
|
|
%doc HISTORY.md USE-CASES.md
|
2024-07-18 19:52:43 +02:00
|
|
|
%{_bindir}/git-deps
|
|
|
|
# %%{_bindir}/git-fixup
|
|
|
|
%{_bindir}/gitfile-handler
|
|
|
|
%{python3_sitelib}/git_deps
|
|
|
|
%{python3_sitelib}/git_deps-1.1.0*-info
|
2020-06-02 08:17:42 +02:00
|
|
|
|
|
|
|
%files html
|
|
|
|
%doc docs
|
|
|
|
|
|
|
|
%changelog
|