1
0

5 Commits

2 changed files with 33 additions and 14 deletions

View File

@@ -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>

View File

@@ -1,7 +1,7 @@
#
# 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
# 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
Version: 1.4.18
Release: 0
@@ -31,17 +31,19 @@ Source3: suse-devel.conf
Source6: opensuse-prod.conf
BuildRequires: %{python_module icalendar}
BuildRequires: %{python_module jira}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-redmine}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-icalendar
Requires: python-md2workflow-common
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
Provides: md2workfow = %{version}
BuildArch: noarch
%python_subpackages
%description
@@ -83,22 +85,23 @@ cp %{_sourcedir}/{suse-prod,suse-devel,opensuse-prod}.conf config/
cp %{_sourcedir}/LICENSE LICENSE
%build
%python_build
%pyproject_wheel
%check
%pytest
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/md2workflow
%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
%python_install_alternative md2workflow
%pre
# removing old update-alternatives entries
%python_libalternatives_reset_alternative md2workflow
%postun
%python_uninstall_alternative md2workflow
# post and postun alternatives calls are not needed anymore
%files %{python_files}
%license LICENSE
@@ -114,7 +117,7 @@ ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow
%{python_sitelib}/md2workflow/backend/*.py*
%dir %{python_sitelib}/md2workflow/validation
%{python_sitelib}/md2workflow/validation/*.py*
%{python_sitelib}/md2workflow*.egg-info
%{python_sitelib}/md2workflow-%{version}*-info
%files %{python_files plugins-jira}
%dir %{python_sitelib}/md2workflow/backend/jirabackend
@@ -142,6 +145,7 @@ ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow
%{_datadir}/md2workflow/config/*
%dir %{_datadir}/md2workflow/example/
%{_datadir}/md2workflow/example/*
%{_sysconfdir}/md2workflow
%dir %{_sysconfdir}/md2workflow/
%config(noreplace) %{_sysconfdir}/md2workflow/*.conf
%changelog