From c5566d522f721492a7f58305ae5e517e9886d6d087304607cc01dcab419a1ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 16 Jul 2019 11:37:05 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-md2workflow?expand=0&rev=2 --- python-md2workflow.spec | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/python-md2workflow.spec b/python-md2workflow.spec index 602c748..4636734 100644 --- a/python-md2workflow.spec +++ b/python-md2workflow.spec @@ -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