15
0
Tomáš Chvátal
2019-07-16 11:37:05 +00:00
committed by Git OBS Bridge
parent d7005cac5c
commit c5566d522f

View File

@@ -12,40 +12,41 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-md2workflow
Version: 1.4.5
Release: 0
License: GPL-3.0
Summary: Create a JIRA or other Workflow from markdown files
Url: https://github.com/lkocman/md2workflow.git
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/lkocman/md2workflow.git
Source: https://files.pythonhosted.org/packages/source/m/md2workflow/md2workflow-%{version}.tar.gz
Source1: suse-prod.conf
Source2: suse-devel.conf
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-md2workflow-common
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython3
Provides: md2workfow = %{version}
%endif
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
Requires: python-md2workflow-common
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%description
Create a JIRA or other Workflow from markdown files.
%python_subpackages
%package -n python-md2workflow-common
Provides: %{python_module md2workflow-common = %{version}}
Summary: Configuration and examples for md2workflow
Summary: Configuration and examples for md2workflow
Group: Development/Languages/Python
Provides: %{python_module md2workflow-common = %{version}}
%description -n python-md2workflow-common
Configuration and examples for md2workflow
@@ -54,7 +55,7 @@ Configuration and examples for md2workflow
%setup -q -n md2workflow-%{version}
echo `pwd`
cp %_sourcedir/{suse-prod,suse-devel}.conf config/
cp %{_sourcedir}/{suse-prod,suse-devel}.conf config/
%build
%python_build
@@ -63,10 +64,9 @@ cp %_sourcedir/{suse-prod,suse-devel}.conf config/
%python_install
%python_clone -a %{buildroot}%{_bindir}/md2workflow
%python_expand %fdupes %{buildroot}%{$python_sitelib}
ln -s -f %{_datadir}/md2workflow/config %{buildroot}/etc/md2workflow
ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow
%files %{python_files}
%defattr(-,root,root)
%{_bindir}/md2workflow-%{python_bin_suffix}
%python3_only %{_bindir}/md2workflow
%{python_sitelib}/*
@@ -74,13 +74,12 @@ ln -s -f %{_datadir}/md2workflow/config %{buildroot}/etc/md2workflow
%license LICENSE
%files -n python-md2workflow-common
%defattr(-,root,root)
%dir %{_datadir}/md2workflow/
%dir %{_datadir}/md2workflow/example/
%{_datadir}/md2workflow/example/*
%dir %{_datadir}/md2workflow/config/
%{_datadir}/md2workflow/config/local.conf
%{_datadir}/md2workflow/config/*
/etc/md2workflow
%{_sysconfdir}/md2workflow
%changelog