aboutsummaryrefslogtreecommitdiffstats
path: root/guix/emacs-with-editor/emacs-with-editor.spec
blob: c82152c78e9147458b59cfa415d905f17c37ccd0 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
%global pkg with-editor
%global pkgname With-Editor

Name:           emacs-%{pkg}
Version:        3.2.0
Release:        2%{?dist}
Summary:        Use the Emacsclient as the editor of child processes

License:        GPLv3+
URL:            https://magit.vc
Source0:        https://github.com/magit/with-editor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  emacs, make, texinfo, texinfo-tex
Requires:       emacs(bin) >= %{_emacs_version}

%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
%autosetup -n with-editor-%{version} -p1


%build
%make_build


%install
mkdir -p %{buildroot}%{_emacs_sitelispdir} %{buildroot}%{_emacs_sitestartdir}
install -m 755 -d %{buildroot}%{_emacs_sitelispdir}/with-editor
install -m 644 lisp/with-editor.{el,elc} \
    %{buildroot}%{_emacs_sitelispdir}/with-editor/
install -m 644 lisp/with-editor-autoloads.el \
    %{buildroot}%{_emacs_sitelispdir}/with-editor/
ln -rs %{buildroot}%{_emacs_sitelispdir}/with-editor/with-editor-autoloads.el \
    %{buildroot}%{_emacs_sitestartdir}
mkdir -p %{buildroot}%{_infodir}
gzip -9 < docs/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 LICENSE
%doc README.md
%doc docs/with-editor.html docs/with-editor.org docs/with-editor.pdf
%dir %{_emacs_sitelispdir}/with-editor
%{_emacs_sitelispdir}/with-editor/with-editor.el
%{_emacs_sitelispdir}/with-editor/with-editor.elc
%{_emacs_sitelispdir}/with-editor/with-editor-autoloads.el
%{_emacs_sitestartdir}/with-editor-autoloads.el
%{_infodir}/with-editor.info.gz


%changelog
* Sat Oct 29 2022 Ting-Wei Lan <lantw44@gmail.com> - 3.2.0-2
- Rebuilt for Fedora 37 and 38

* Thu Apr 28 2022 Ting-Wei Lan <lantw44@gmail.com> - 3.2.0-1
- Update to 3.2.0

* Sat Sep 25 2021 Ting-Wei Lan <lantw44@gmail.com> - 3.0.4-2
- Rebuilt for Fedora 35 and 36

* Mon Jun 14 2021 Ting-Wei Lan <lantw44@gmail.com> - 3.0.4-1
- Update to 3.0.4

* Sat Mar 13 2021 Ting-Wei Lan <lantw44@gmail.com> - 3.0.2-2
- Rebuilt for Fedora 34 and 35

* Mon Feb 15 2021 Ting-Wei Lan <lantw44@gmail.com> - 3.0.2-1
- Update to 3.0.2

* Sun Nov  1 2020 Ting-Wei Lan <lantw44@gmail.com> - 2.9.4-1
- Update to 2.9.4

* Sun Apr 26 2020 Ting-Wei Lan <lantw44@gmail.com> - 2.9.1-1
- Update to 2.9.1

* Tue Sep 17 2019 Ting-Wei Lan <lantw44@gmail.com> - 2.8.3-2
- Rebuilt for Fedora 31 and 32

* Tue May 14 2019 Ting-Wei Lan <lantw44@gmail.com> - 2.8.3-1
- Update to 2.8.3

* Thu May 02 2019 Ting-Wei Lan <lantw44@gmail.com> - 2.8.1-1
- Update to 2.8.1

* Sun Dec 02 2018 Ting-Wei Lan <lantw44@gmail.com> - 2.8.0-1
- Update to 2.8.0

* Tue Oct 23 2018 Ting-Wei Lan <lantw44@gmail.com> - 2.7.3-2
- Rebuilt for Fedora 29 and 30

* Sat Jul 07 2018 Ting-Wei Lan <lantw44@gmail.com> - 2.7.3-1
- Update to 2.7.3
- Fix autoloads by creating a symlink instead of moving the script itself

* Mon Feb 26 2018 Ting-Wei Lan <lantw44@gmail.com> - 2.7.1-1
- Update to 2.7.1
- Install the generated autoloads file
- Remove group tag because it is deprecated in Fedora

* Mon Dec 11 2017 Ting-Wei Lan <lantw44@gmail.com> - 2.7.0-3
- Use autosetup and make_build macros
- Rename the source tarball

* Sat Dec 09 2017 Ting-Wei Lan <lantw44@gmail.com> - 2.7.0-2
- Use HTTPS in URL

* Mon Oct 16 2017 Ting-Wei Lan <lantw44@gmail.com> - 2.7.0-1
- Update to 2.7.0

* Fri Jun 16 2017 Ting-Wei Lan <lantw44@gmail.com> - 2.5.11-1
- Update to 2.5.11

* 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