From fb7623cf959f597b338bf1b5d08a86205c6341ab Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Fri, 4 Mar 2016 01:42:59 +0800 Subject: guix: emacs-magit 2.3.1 -> 2.5.0 --- guix/emacs-magit/emacs-magit.spec | 19 ++++---- guix/emacs-with-editor/emacs-with-editor.spec | 65 +++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 10 deletions(-) create mode 100644 guix/emacs-with-editor/emacs-with-editor.spec diff --git a/guix/emacs-magit/emacs-magit.spec b/guix/emacs-magit/emacs-magit.spec index a6c241a..5ec8248 100644 --- a/guix/emacs-magit/emacs-magit.spec +++ b/guix/emacs-magit/emacs-magit.spec @@ -12,20 +12,20 @@ %endif Name: emacs-%{pkg} -Version: 2.3.1 +Version: 2.5.0 Release: 1%{?dist} Summary: Emacs interface to the most common Git operations Group: Applications/Editors -License: GPLv3+ and GFDL+ +License: GPLv3+ URL: http://magit.vc Source0: https://github.com/magit/magit/releases/download/%{version}/magit-%{version}.tar.gz BuildArch: noarch -BuildRequires: emacs, emacs-dash, git-core, texinfo +BuildRequires: emacs, emacs-dash, emacs-with-editor, git-core, texinfo Requires: emacs(bin) >= %{emacs_version} -Requires: emacs-dash +Requires: emacs-dash, emacs-with-editor Obsoletes: emacs-%{pkg}-el < 2.3.1-1 Provides: emacs-%{pkg}-el < 2.3.1-1 @@ -41,12 +41,12 @@ common operations convenient. %build make \ MAKEINFO='makeinfo --no-split' \ - LOAD_PATH='-L %{emacs_lispdir}/dash -L %{_builddir}/magit-%{version}/lisp -L .' + LOAD_PATH='-L %{emacs_lispdir}/dash -L %{emacs_lispdir}/with-editor -L %{_builddir}/magit-%{version}/lisp -L .' %install %make_install \ PREFIX=%{_prefix} docdir=%{_pkgdocdir} \ - LOAD_PATH='-L %{emacs_lispdir}/dash -L %{_builddir}/magit-%{version}/lisp -L .' + LOAD_PATH='-L %{emacs_lispdir}/dash -L %{emacs_lispdir}/with-editor -L %{_builddir}/magit-%{version}/lisp -L .' # clean up after magit's installer's assumptions mkdir -p $RPM_BUILD_ROOT%{emacs_startdir} @@ -54,20 +54,17 @@ mv $RPM_BUILD_ROOT%{emacs_lispdir}/magit/magit-autoloads.el \ $RPM_BUILD_ROOT%{emacs_startdir}/emacs-magit-mode.el gzip -9 $RPM_BUILD_ROOT%{_infodir}/magit.info gzip -9 $RPM_BUILD_ROOT%{_infodir}/magit-popup.info -gzip -9 $RPM_BUILD_ROOT%{_infodir}/with-editor.info %post /sbin/install-info /usr/share/info/magit.info.gz /usr/share/info/dir /sbin/install-info /usr/share/info/magit-popup.info.gz /usr/share/info/dir -/sbin/install-info /usr/share/info/with-editor.info.gz /usr/share/info/dir %preun if [ "$1" = 0 ]; then /sbin/install-info --delete /usr/share/info/magit.info.gz /usr/share/info/dir /sbin/install-info --delete /usr/share/info/magit-popup.info.gz /usr/share/info/dir - /sbin/install-info --delete /usr/share/info/with-editor.info.gz /usr/share/info/dir fi @@ -79,12 +76,14 @@ fi %{emacs_startdir}/emacs-magit-mode.el %{_infodir}/magit.info.gz %{_infodir}/magit-popup.info.gz -%{_infodir}/with-editor.info.gz %dir %{emacs_lispdir}/%{pkg} %{_pkgdocdir}/AUTHORS.md %changelog +* Thu Mar 03 2016 Ting-Wei Lan - 2.5.0-1 +- Update to upstream version 2.5.0 + * Sat Nov 21 2015 Ting-Wei Lan - 2.3.1-1 - Update to upstream version 2.3.1 diff --git a/guix/emacs-with-editor/emacs-with-editor.spec b/guix/emacs-with-editor/emacs-with-editor.spec new file mode 100644 index 0000000..dbcd009 --- /dev/null +++ b/guix/emacs-with-editor/emacs-with-editor.spec @@ -0,0 +1,65 @@ +%global pkg with-editor +%global pkgname With-Editor + +Name: emacs-%{pkg} +Version: 2.5.0 +Release: 1%{?dist} +Summary: Use the Emacsclient as the editor of child processes + +Group: Applications/Editors +License: GPLv3+ +URL: http://magit.vc +Source0: https://github.com/magit/with-editor/archive/v%{version}.tar.gz + +BuildArch: noarch +BuildRequires: emacs, emacs-dash, texinfo +Requires: emacs(bin) >= %{_emacs_version} +Requires: emacs-dash + +%description +%{pkgname} is an add-on package for GNU Emacs. It makes it easy to use the +Emacsclient as the editor of child processes, making sure they know how to +call home. + + +%prep +%setup -q -n with-editor-%{version} + + +%build +touch dir +make MAKEINFO='makeinfo --no-split' EFLAGS='-L %{_emacs_sitelispdir}/dash' all + + +%install +mkdir -p %{buildroot}%{_emacs_sitelispdir} +install -m 755 -d %{buildroot}%{_emacs_sitelispdir}/with-editor +install -m 644 with-editor.el \ + %{buildroot}%{_emacs_sitelispdir}/with-editor/ +%{_emacs_bytecompile} %{buildroot}%{_emacs_sitelispdir}/with-editor/with-editor*.el +mkdir -p %{buildroot}%{_infodir} +gzip -9 < with-editor.info > %{buildroot}%{_infodir}/with-editor.info.gz + + +%post +/sbin/install-info %{_infodir}/with-editor.info.gz %{_infodir}/dir || : + + +%preun +if [ "$1" = 0 ]; then + /sbin/install-info --del %{_infodir}/with-editor.info.gz %{_infodir}/dir || : +fi + + +%files +%doc README.md +%dir %{_emacs_sitelispdir}/with-editor +%{_emacs_sitelispdir}/with-editor/with-editor.el +%{_emacs_sitelispdir}/with-editor/with-editor.elc +%{_infodir}/with-editor.info.gz + + + +%changelog +* Fri Mar 04 2016 Ting-Wei Lan - 2.5.0-1 +- Initial packaging -- cgit v1.2.3