aboutsummaryrefslogtreecommitdiffstats
path: root/guix/emacs-transient/emacs-transient.spec
blob: 36f10c7fa48966278c6900a88b1b9e27b75b6082 (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
%global pkg transient
%global pkgname Transient

Name:           emacs-%{pkg}
Version:        0.3.7
Release:        2%{?dist}
Summary:        Transient commands

License:        GPLv3+
URL:            https://magit.vc
Source0:        https://github.com/magit/transient/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 implements a similar
abstraction involving a prefix command, infix arguments and suffix commands. We
could call this abstraction a “transient command, but because it always
involves at least two commands (a prefix and a suffix) we prefer to call it
just a “transient”.


%prep
%autosetup -n transient-%{version} -p1


%build
%make_build


%install
mkdir -p %{buildroot}%{_emacs_sitelispdir} %{buildroot}%{_emacs_sitestartdir}
install -m 755 -d %{buildroot}%{_emacs_sitelispdir}/transient
install -m 644 lisp/transient.{el,elc} \
    %{buildroot}%{_emacs_sitelispdir}/transient/
install -m 644 lisp/transient-autoloads.el \
    %{buildroot}%{_emacs_sitelispdir}/transient/
ln -rs %{buildroot}%{_emacs_sitelispdir}/transient/transient-autoloads.el \
    %{buildroot}%{_emacs_sitestartdir}
mkdir -p %{buildroot}%{_infodir}
gzip -9 < docs/transient.info > %{buildroot}%{_infodir}/transient.info.gz


%post
/sbin/install-info %{_infodir}/transient.info.gz %{_infodir}/dir || :


%preun
if [ "$1" = 0 ]; then
    /sbin/install-info --del %{_infodir}/transient.info.gz %{_infodir}/dir || :
fi


%files
%license LICENSE
%doc docs/CHANGELOG README.md
%doc docs/transient.html docs/transient.org docs/transient.pdf
%dir %{_emacs_sitelispdir}/transient
%{_emacs_sitelispdir}/transient/transient.el
%{_emacs_sitelispdir}/transient/transient.elc
%{_emacs_sitelispdir}/transient/transient-autoloads.el
%{_emacs_sitestartdir}/transient-autoloads.el
%{_infodir}/transient.info.gz


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

* Thu Apr 28 2022 Ting-Wei Lan <lantw44@gmail.com> - 0.3.7-1
- Initial packaging