forked from pool/python-PyCondor
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
17a9470134 | |||
c377bc69c6 | |||
5494761474 | |||
652fc61320 |
@@ -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>
|
Fri Aug 19 14:03:26 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-PyCondor
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global modname PyCondor
|
%bcond_without libalternatives
|
||||||
Name: python-PyCondor
|
Name: python-PyCondor
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -24,12 +24,14 @@ Summary: Python utility for HTCondor
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jrbourbeau/pycondor
|
URL: https://github.com/jrbourbeau/pycondor
|
||||||
Source: https://files.pythonhosted.org/packages/source/P/PyCondor/PyCondor-%{version}.tar.gz
|
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 setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun):update-alternatives
|
Requires: python-click >= 7.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION For tests
|
# SECTION For tests
|
||||||
BuildRequires: %{python_module click >= 7.0}
|
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
|
sed -Ei "1{/^#!\/usr\/bin\/env python/d}" pycondor/tests/example_script.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pycondor
|
%python_clone -a %{buildroot}%{_bindir}/pycondor
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative pycondor
|
# Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative pycondor
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative pycondor
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# We cannot actually submit jobs, so disable these tests
|
# 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
|
%doc README.md
|
||||||
%python_alternative %{_bindir}/pycondor
|
%python_alternative %{_bindir}/pycondor
|
||||||
%{python_sitelib}/pycondor/
|
%{python_sitelib}/pycondor/
|
||||||
%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/
|
%{python_sitelib}/[Pp]y[Cc]ondor-%{version}*-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user