14
0

Compare commits

4 Commits

2 changed files with 23 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jun 4 15:37:29 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Tue May 6 12:36:10 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Fri Aug 19 14:03:26 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyCondor
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,7 @@
#
%global modname PyCondor
%bcond_without libalternatives
Name: python-PyCondor
Version: 0.6.0
Release: 0
@@ -24,12 +24,14 @@ Summary: Python utility for HTCondor
License: MIT
URL: https://github.com/jrbourbeau/pycondor
Source: https://files.pythonhosted.org/packages/source/P/PyCondor/PyCondor-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires: alts
Requires: python-click >= 7.0
BuildArch: noarch
# SECTION For tests
BuildRequires: %{python_module click >= 7.0}
@@ -45,19 +47,17 @@ PyCondor (Python HTCondor) is a tool to help build and submit workflows to HTCon
sed -Ei "1{/^#!\/usr\/bin\/env python/d}" pycondor/tests/example_script.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/pycondor
%post
%python_install_alternative pycondor
%postun
%python_uninstall_alternative pycondor
%pre
# Removing old update-alternatives entries.
%python_libalternatives_reset_alternative pycondor
%check
# We cannot actually submit jobs, so disable these tests
@@ -68,6 +68,6 @@ sed -Ei "1{/^#!\/usr\/bin\/env python/d}" pycondor/tests/example_script.py
%doc README.md
%python_alternative %{_bindir}/pycondor
%{python_sitelib}/pycondor/
%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/
%{python_sitelib}/[Pp]y[Cc]ondor-%{version}*-info/
%changelog