forked from pool/python-md2workflow
Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 82274b9b9a | |||
| 512384657b | |||
| 0dea936a36 | |||
| 7d8829374c | |||
| 7f17038cbf |
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 10 04:25:23 UTC 2025 - Lubos Kocman <lubos.kocman@suse.com>
|
||||||
|
|
||||||
|
- Do not make symlinks to example configs copy them instead
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 5 09:33:24 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 2 08:48:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 26 04:11:20 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
Fri Feb 26 04:11:20 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-md2workflow
|
# spec file for package python-md2workflow
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 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 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%bcond_without libalternatives
|
||||||
Name: python-md2workflow
|
Name: python-md2workflow
|
||||||
Version: 1.4.18
|
Version: 1.4.18
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -31,17 +31,19 @@ Source3: suse-devel.conf
|
|||||||
Source6: opensuse-prod.conf
|
Source6: opensuse-prod.conf
|
||||||
BuildRequires: %{python_module icalendar}
|
BuildRequires: %{python_module icalendar}
|
||||||
BuildRequires: %{python_module jira}
|
BuildRequires: %{python_module jira}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module python-redmine}
|
BuildRequires: %{python_module python-redmine}
|
||||||
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: alts
|
||||||
Requires: python-icalendar
|
Requires: python-icalendar
|
||||||
Requires: python-md2workflow-common
|
Requires: python-md2workflow-common
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
BuildArch: noarch
|
|
||||||
Provides: md2workfow = %{version}
|
Provides: md2workfow = %{version}
|
||||||
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -83,22 +85,23 @@ cp %{_sourcedir}/{suse-prod,suse-devel,opensuse-prod}.conf config/
|
|||||||
cp %{_sourcedir}/LICENSE LICENSE
|
cp %{_sourcedir}/LICENSE LICENSE
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/md2workflow
|
%python_clone -a %{buildroot}%{_bindir}/md2workflow
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow
|
mkdir -p %{buildroot}%{_sysconfdir}/md2workflow
|
||||||
|
cp -a config/* %{buildroot}%{_sysconfdir}/md2workflow/
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative md2workflow
|
# removing old update-alternatives entries
|
||||||
|
%python_libalternatives_reset_alternative md2workflow
|
||||||
|
|
||||||
%postun
|
# post and postun alternatives calls are not needed anymore
|
||||||
%python_uninstall_alternative md2workflow
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@@ -114,7 +117,7 @@ ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow
|
|||||||
%{python_sitelib}/md2workflow/backend/*.py*
|
%{python_sitelib}/md2workflow/backend/*.py*
|
||||||
%dir %{python_sitelib}/md2workflow/validation
|
%dir %{python_sitelib}/md2workflow/validation
|
||||||
%{python_sitelib}/md2workflow/validation/*.py*
|
%{python_sitelib}/md2workflow/validation/*.py*
|
||||||
%{python_sitelib}/md2workflow*.egg-info
|
%{python_sitelib}/md2workflow-%{version}*-info
|
||||||
|
|
||||||
%files %{python_files plugins-jira}
|
%files %{python_files plugins-jira}
|
||||||
%dir %{python_sitelib}/md2workflow/backend/jirabackend
|
%dir %{python_sitelib}/md2workflow/backend/jirabackend
|
||||||
@@ -142,6 +145,7 @@ ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow
|
|||||||
%{_datadir}/md2workflow/config/*
|
%{_datadir}/md2workflow/config/*
|
||||||
%dir %{_datadir}/md2workflow/example/
|
%dir %{_datadir}/md2workflow/example/
|
||||||
%{_datadir}/md2workflow/example/*
|
%{_datadir}/md2workflow/example/*
|
||||||
%{_sysconfdir}/md2workflow
|
%dir %{_sysconfdir}/md2workflow/
|
||||||
|
%config(noreplace) %{_sysconfdir}/md2workflow/*.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user