Stop shipping emacs-cython-mode in RHEL builds

This commit is contained in:
Miro Hrončok 2023-05-26 10:47:05 +02:00
parent 5cc48f1485
commit 1e9bead9ab
1 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,9 @@
# Slower, but sometimes necessary with alpha Python versions
%bcond_without cython_compile
# We don't ship emacs-cython-mode in EL.
%bcond emacs %{undefined rhel}
Name: Cython
Version: 0.29.34
Release: 2%{?dist}
@ -76,6 +79,7 @@ Provides: bundled(python3dist(tempita))
%description -n python3-Cython %{_description}
%if %{with emacs}
%package -n emacs-cython-mode
Summary: A major mode for editing Cython source files in Emacs
BuildArch: noarch
@ -86,6 +90,7 @@ Requires: emacs(bin) >= %{_emacs_version}
%description -n emacs-cython-mode
cython-mode is an Emacs major mode for editing Cython source files.
%endif
%prep
@ -95,21 +100,25 @@ cython-mode is an Emacs major mode for editing Cython source files.
%build
%py3_build -- %{!?with_cython_compile:--no-cython-compile}
%if %{with emacs}
# emacs-cython-mode build
echo ";;
(require 'cython-mode)" > cython-mode-init.el
cp -p Tools/cython-mode.el .
%{_emacs_bytecompile} *.el
%endif
%install
%py3_install -- %{!?with_cython_compile:--no-cython-compile}
%if %{with emacs}
# emacs-cython-mode install
mkdir -p %{buildroot}%{_emacs_sitelispdir}/
cp -p cython-mode.el cython-mode.elc %{buildroot}%{_emacs_sitelispdir}/
mkdir -p %{buildroot}%{_emacs_sitestartdir}/
cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir}/
%endif
%if %{with tests}
@ -133,15 +142,18 @@ cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir
%{python3_site}/pyximport/
%pycached %{python3_site}/cython.py
%if %{with emacs}
%files -n emacs-cython-mode
%license LICENSE.txt
%{_emacs_sitelispdir}/cython*.el*
%{_emacs_sitestartdir}/cython*.el*
%endif
%changelog
* Wed May 24 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.29.34-2
- Avoid python-jedi dependency in RHEL builds
- Stop shipping emacs-cython-mode in RHEL builds
* Mon Apr 03 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.34-1
- Update to 0.29.34