From 748ee34d44a846bdbec48ecab46b2af30d4c114487bcbf0dbb9a46e939f8f9f4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 3 Apr 2021 09:49:02 +0000 Subject: [PATCH] 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 --- git-deps.changes | 6 ++++++ git-deps.spec | 26 ++++++++++++-------------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/git-deps.changes b/git-deps.changes index c13b58c..be3cff3 100644 --- a/git-deps.changes +++ b/git-deps.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Apr 3 09:34:59 UTC 2021 - Matej Cepl + +- 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 diff --git a/git-deps.spec b/git-deps.spec index a55ed0a..8706d14 100644 --- a/git-deps.spec +++ b/git-deps.spec @@ -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