blob: f249e968ce3777405275e580c74d6f23924b2af7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
%global pkg with-editor
%global pkgname With-Editor
Name: emacs-%{pkg}
Version: 2.5.10
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
make MAKEINFO='makeinfo --no-split' INSTALL_INFO='true' \
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
%license COPYING
%doc AUTHORS.md README.md with-editor.org
%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
* Wed Mar 08 2017 Ting-Wei Lan <lantw44@gmail.com> - 2.5.10-1
- Update to 2.5.10
* Sat Dec 31 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.5.8-1
- Update to 2.5.8
* Fri Nov 04 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.5.5-1
- Update to 2.5.5
* Sat Sep 10 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.5.1-2
- Rebuilt for Fedora 25 and 26
* Tue Jun 21 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.5.1-1
- Update to 2.5.1
- Include license file and all documents
- Disable Texinfo dir file generation in Makefile, which is useless
* Fri Mar 04 2016 Ting-Wei Lan <lantw44@gmail.com> - 2.5.0-1
- Initial packaging
|