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