SHA256
1
0
forked from pool/git-deps

Accepting request 882784 from home:mcepl:branches:devel:tools:scm

- Remove single-package spec, this is just a regular application which
  happens to be written in Python, not a Python library.

OBS-URL: https://build.opensuse.org/request/show/882784
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git-deps?expand=0&rev=7
This commit is contained in:
Matej Cepl 2021-04-03 09:49:02 +00:00 committed by Git OBS Bridge
parent 721eee61ad
commit 748ee34d44
2 changed files with 18 additions and 14 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Apr 3 09:34:59 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Remove single-package spec, this is just a regular application which
happens to be written in Python, not a Python library.
-------------------------------------------------------------------
Thu Oct 29 15:48:48 UTC 2020 - Bruce Rogers <brogers@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package git-deps
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -28,20 +28,19 @@ URL: https://github.com/aspiers/git-deps
Source: %{name}-%{version}.tar.xz
Patch0: dont-use-st-markdown.patch
Patch1: Fix-issue-with-unbuffered-text-I-O-under-python3.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pygit2}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-pip
BuildRequires: python3-pygit2
BuildRequires: python3-setuptools
BuildRequires: python3-six
BuildRequires: python3-wheel
Requires: python-pygit2
# for html subpackage
Requires: python-Flask
Requires: python3-Flask
#Requires: nodejs-browserify # broken/missing
Requires: npm
BuildArch: noarch
%python_subpackages
%description
Tool to analyze git dependencies
@ -56,17 +55,16 @@ Group: Development/Tools/Version Control
Documentation for git-deps.
%prep
%setup -q -n %{name}-%{version}
%autopatch -p1
%autosetup -p1 -n %{name}-%{version}
%build
%python_build
python3 -s setup.py build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
python3 -s setup.py install -O1 --skip-build --force --root %{buildroot} --prefix %{_prefix}
%python_expand %fdupes %{buildroot}%{python_sitelib}
%files %{python_files}
%files
%{_bindir}/git-deps
%{_bindir}/git-fixup
%{_bindir}/gitfile-handler