File obs-git.spec of Package obs-git

#
# spec file
#
# 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
# 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/
#

%if 0%{?fedora} || 0%{?rhel}
%define build_pkg_name obs-build
%else
%define build_pkg_name build
%endif

Name:           obs-git
Version:        0.0.1
Release:        0
Summary:        A help service to work with git repositories in OBS
License:        GPL-2.0-or-later
URL:            https://github.com/openSUSE/obs-git
Source0:        %{name}-%{version}.tar.gz
Requires:       %{build_pkg_name} >= 2012.08.24
BuildArch:      noarch
%if %{with obs_scm_testsuite}
BuildRequires:  %{use_python}-ddt
BuildRequires:  %{use_python}-flake8
BuildRequires:  %{use_python}-packaging
%endif

%if 0%{?suse_version}
%if 0%{?suse_version} > 1315
Requires:       python3-base
%else
Requires:       python
%endif
Recommends:     %{use_python}-packaging
%endif


%description

%prep
%autosetup

%prep
%setup -q

%build

%if %{with obs_scm_testsuite}
%check
make test PYTHON=%{use_python}
%endif

%install
make DESTDIR%{buildroot} install

%files
%{_prefix}/lib/obs/server

%changelog
openSUSE Build Service is sponsored by