aboutsummaryrefslogtreecommitdiffstats
path: root/guix/emacs-magit-popup
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2018-03-15 08:41:09 +0800
committerTing-Wei Lan <lantw44@gmail.com>2018-03-15 08:44:41 +0800
commitf4ae09e6ba3967b049dd1fa8fa1dece129f01db3 (patch)
tree459d9a975d6ddb1e72e43c610b45941b609911ba /guix/emacs-magit-popup
parent0190f45b135cef8b5d43a70c0121ac9316d4a57a (diff)
downloadcopr-rpm-spec-f4ae09e6ba3967b049dd1fa8fa1dece129f01db3.tar
copr-rpm-spec-f4ae09e6ba3967b049dd1fa8fa1dece129f01db3.tar.gz
copr-rpm-spec-f4ae09e6ba3967b049dd1fa8fa1dece129f01db3.tar.bz2
copr-rpm-spec-f4ae09e6ba3967b049dd1fa8fa1dece129f01db3.tar.lz
copr-rpm-spec-f4ae09e6ba3967b049dd1fa8fa1dece129f01db3.tar.xz
copr-rpm-spec-f4ae09e6ba3967b049dd1fa8fa1dece129f01db3.tar.zst
copr-rpm-spec-f4ae09e6ba3967b049dd1fa8fa1dece129f01db3.zip
guix: Make emacs-magit depend on emacs-ghub and emacs-magit-popup
Diffstat (limited to 'guix/emacs-magit-popup')
-rw-r--r--guix/emacs-magit-popup/emacs-magit-popup.spec67
1 files changed, 67 insertions, 0 deletions
diff --git a/guix/emacs-magit-popup/emacs-magit-popup.spec b/guix/emacs-magit-popup/emacs-magit-popup.spec
new file mode 100644
index 0000000..7ebf3c4
--- /dev/null
+++ b/guix/emacs-magit-popup/emacs-magit-popup.spec
@@ -0,0 +1,67 @@
+%global pkg magit-popup
+%global pkgname Magit-Popup
+
+Name: emacs-%{pkg}
+Version: 2.12.2
+Release: 1%{?dist}
+Summary: Define prefix-infix-suffix command combos for Emacs
+
+License: GPLv3+
+URL: https://magit.vc
+Source0: https://github.com/magit/magit-popup/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: emacs, texinfo
+BuildRequires: emacs-dash
+Requires: emacs(bin) >= %{_emacs_version}
+Requires: emacs-dash
+
+%description
+%{pkgname} is an add-on package for GNU Emacs. It implements a generic interface
+for toggling switches and setting options and then invoking an Emacs command
+which does something with these arguments.
+
+
+%prep
+%autosetup -n magit-popup-%{version} -p1
+
+
+%build
+%make_build LOAD_PATH='-L %{_emacs_sitelispdir}/dash'
+
+
+%install
+mkdir -p %{buildroot}%{_emacs_sitelispdir} %{buildroot}%{_emacs_sitestartdir}
+install -m 755 -d %{buildroot}%{_emacs_sitelispdir}/magit-popup
+install -m 644 magit-popup.el magit-popup.elc \
+ %{buildroot}%{_emacs_sitelispdir}/magit-popup/
+install -m 644 magit-popup-autoloads.el \
+ %{buildroot}%{_emacs_sitestartdir}/magit-popup.el
+mkdir -p %{buildroot}%{_infodir}
+gzip -9 < magit-popup.info > %{buildroot}%{_infodir}/magit-popup.info.gz
+
+
+%post
+/sbin/install-info %{_infodir}/magit-popup.info.gz %{_infodir}/dir || :
+
+
+%preun
+if [ "$1" = 0 ]; then
+ /sbin/install-info --del %{_infodir}/magit-popup.info.gz %{_infodir}/dir || :
+fi
+
+
+%files
+%license LICENCE
+%doc AUTHORS.md README.md magit-popup.org
+%dir %{_emacs_sitelispdir}/magit-popup
+%{_emacs_sitelispdir}/magit-popup/magit-popup.el
+%{_emacs_sitelispdir}/magit-popup/magit-popup.elc
+%{_emacs_sitestartdir}/magit-popup.el
+%{_infodir}/magit-popup.info.gz
+
+
+
+%changelog
+* Tue Mar 13 2018 Ting-Wei Lan <lantw44@gmail.com> - 2.12.2-1
+- Initial packaging