New subpackage emacs-terminal, rhbz#617355

This commit is contained in:
Karel Klic 2010-08-03 16:55:47 +02:00
parent e36abe42d6
commit 91094b90bb

View File

@ -4,7 +4,7 @@ Summary: GNU Emacs text editor
Name: emacs Name: emacs
Epoch: 1 Epoch: 1
Version: 23.2 Version: 23.2
Release: 7%{?dist} Release: 8%{?dist}
License: GPLv3+ License: GPLv3+
URL: http://www.gnu.org/software/emacs/ URL: http://www.gnu.org/software/emacs/
Group: Applications/Editors Group: Applications/Editors
@ -20,7 +20,7 @@ Source10: rpm-spec-mode.el
Source11: rpm-spec-mode-init.el Source11: rpm-spec-mode-init.el
Source13: focus-init.el Source13: focus-init.el
Source18: default.el Source18: default.el
# Emacs Terminal Mode, #551949 # Emacs Terminal Mode, #551949, #617355
Source19: emacs-terminal.desktop Source19: emacs-terminal.desktop
Source20: emacs-terminal.sh Source20: emacs-terminal.sh
Patch0: glibc-open-macro.patch Patch0: glibc-open-macro.patch
@ -130,6 +130,18 @@ programs included with the main Emacs text editor package.
You need to install emacs-el only if you intend to modify any of the You need to install emacs-el only if you intend to modify any of the
Emacs packages or see some elisp examples. Emacs packages or see some elisp examples.
%package terminal
Summary: A desktop menu item for GNU Emacs terminal.
Group: Applications/Editors
%description terminal
Contains a desktop menu item running GNU Emacs terminal. Install
emacs-terminal if you need a terminal with Malayalam support.
Please note that emacs-terminal is a temporary package and it will be
removed when anther terminal becomes capable of handling Malayalam.
%define emacs_libexecdir %{_libexecdir}/emacs/%{version}/%{_host} %define emacs_libexecdir %{_libexecdir}/emacs/%{version}/%{_host}
%prep %prep
@ -364,21 +376,24 @@ fi
alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \ alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \
--slave %{_mandir}/man1/etags.1.gz emacs.etags.man %{_mandir}/man1/etags.emacs.1.gz --slave %{_mandir}/man1/etags.1.gz emacs.etags.man %{_mandir}/man1/etags.emacs.1.gz
%post terminal
update-desktop-database &> /dev/null || :
%postun terminal
update-desktop-database &> /dev/null || :
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/emacs-%{version} %{_bindir}/emacs-%{version}
%{_bindir}/emacs-terminal
%dir %{_libexecdir}/emacs %dir %{_libexecdir}/emacs
%dir %{_libexecdir}/emacs/%{version} %dir %{_libexecdir}/emacs/%{version}
%dir %{emacs_libexecdir} %dir %{emacs_libexecdir}
%{_datadir}/applications/emacs.desktop %{_datadir}/applications/emacs.desktop
%{_datadir}/applications/emacs-terminal.desktop
%{_datadir}/icons/hicolor/*/apps/emacs.png %{_datadir}/icons/hicolor/*/apps/emacs.png
%{_datadir}/icons/hicolor/*/apps/emacs22.png %{_datadir}/icons/hicolor/*/apps/emacs22.png
%{_datadir}/icons/hicolor/scalable/apps/emacs.svg %{_datadir}/icons/hicolor/scalable/apps/emacs.svg
%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document.svg %{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document.svg
%files nox %files nox
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/emacs-%{version}-nox %{_bindir}/emacs-%{version}-nox
@ -411,7 +426,15 @@ alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \
%dir %{_datadir}/emacs %dir %{_datadir}/emacs
%dir %{_datadir}/emacs/%{version} %dir %{_datadir}/emacs/%{version}
%files terminal
%defattr(-,root,root)
%{_bindir}/emacs-terminal
%{_datadir}/applications/emacs-terminal.desktop
%changelog %changelog
* Mon Aug 2 2010 Karel Klic <kklic@redhat.com> - 1:23.2-8
- Moved the terminal desktop menu item to a separate package (rhbz#617355)
* Thu Jul 8 2010 Karel Klic <kklic@redhat.com> - 1:23.2-7 * Thu Jul 8 2010 Karel Klic <kklic@redhat.com> - 1:23.2-7
- Added workaround for an GCC 4.5.0 bug - Added workaround for an GCC 4.5.0 bug