forked from pool/python-cogapp
- Remove not needed patch in prep section
- Change preun to postun to run python_uninstall_alternatives to remove rpmlint errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cogapp?expand=0&rev=11
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 27 06:52:19 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Remove not needed patch in prep section
|
||||
- Change preun to postun to run python_uninstall_alternatives to remove rpmlint
|
||||
errors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 26 22:06:02 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun):update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -41,9 +41,6 @@ need.
|
||||
|
||||
%prep
|
||||
%setup -q -n cogapp-%{version}
|
||||
# The fix for bpo-43105 broke cogapp's way to import relative paths
|
||||
# https://github.com/nedbat/cog/issues/16
|
||||
sed -i 's/self.addToIncludePath(a)/self.addToIncludePath(os.path.abspath(a))/' cogapp/cogapp.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -61,7 +58,7 @@ mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog
|
||||
%post
|
||||
%python_install_alternative cog
|
||||
|
||||
%preun
|
||||
%postun
|
||||
%python_uninstall_alternative cog
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user