File obs-to-maven.spec of Package obs-to-maven
#
# spec file for package obs-to-maven
#
# Copyright (c) 2022 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/
#
# Require osc with Python 3 support in SUSE distributions
Name: obs-to-maven
Version: 1.1.8
Release: 0
Summary: Tool creating maven repo using OBS packages
License: GPL-3.0-or-later
Group: Development/Tools/Building
Url: https://github.com/uyuni-project/obs-to-maven
Source: %{name}_%{version}.orig.tar.gz
BuildRequires: python-rpm-macros
%if 0%{?rhel} == 8
BuildRequires: platform-python
%else
BuildRequires: python3
%endif
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-PyYAML
Requires: rpm
BuildArch: noarch
%description
Tool extracting JAR artifacts from RPM files packages by OpenBuildService and adding them
into a maven repository.
%prep
%setup -q
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%license LICENSE
%doc README.md
%{_bindir}/*
%{python3_sitelib}/*
%changelog