blob: 9741cf11a06dd8e8934ec44c5e7dcbbc60aed77b (
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
|
%global pkg guix
%global pkgname Guix
Name: emacs-%{pkg}
Version: 0.3.3
Release: 2%{?dist}
Summary: Emacs-Guix is an Emacs interface for GNU Guix package manager
Group: Applications/Editors
License: GPLv3+
URL: https://alezost.github.io/guix.el
Source0: https://github.com/alezost/guix.el/releases/download/v%{version}/%{name}-%{version}.tar.gz
%global guile_source_dir %{_datadir}/guile/site/2.0
%global guile_ccache_dir %{_libdir}/guile/2.0/site-ccache
BuildArch: noarch
BuildRequires: emacs, texinfo
BuildRequires: guix >= 0.13.0
BuildRequires: pkgconfig(guile-2.0)
BuildRequires: emacs-geiser, emacs-dash, emacs-bui, emacs-magit
Requires: emacs(bin) >= %{_emacs_version}
Requires: emacs-geiser, emacs-dash, emacs-bui, emacs-magit
Suggests: guix
Obsoletes: guix-emacs <= 0.8.3-1
Obsoletes: guix-emacs-el <= 0.8.3-1
Provides: guix-emacs <= 0.8.3-1
Provides: guix-emacs-el <= 0.8.3-1
%description
Emacs-%{pkgname} is an add-on package for GNU Emacs. It provides various
features and tools for GNU Guix package manager.
It allows you to manage your Guix profile(s) from Emacs: to install, upgrade
and remove packages, to switch and remove profile generations, to display all
available info about packages and to do many other things.
%prep
%autosetup -p1
%build
%configure \
--with-lispdir=%{_emacs_sitelispdir}/%{pkg} \
--with-guile-site-dir=%{guile_source_dir} \ \
--with-guile-site-ccache-dir=%{guile_ccache_dir} \
GUILE=%{_bindir}/guile \
GUILD=%{_bindir}/guild
%make_build
%install
%make_install
gzip -9 %{buildroot}%{_infodir}/%{name}.info
# move the autoload script
mkdir -p %{buildroot}%{_emacs_sitestartdir}
mv %{buildroot}%{_emacs_sitelispdir}/guix/guix-autoloads.el \
%{buildroot}%{_emacs_sitestartdir}/guix.el
%post
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
%preun
if [ "$1" = 0 ]; then
/sbin/install-info --del %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
fi
%files
%license COPYING
%doc NEWS README THANKS
%dir %{_emacs_sitelispdir}/%{pkg}
%{_emacs_sitelispdir}/%{pkg}/guix.el
%{_emacs_sitelispdir}/%{pkg}/guix.elc
%{_emacs_sitelispdir}/%{pkg}/guix-*.el
%{_emacs_sitelispdir}/%{pkg}/guix-*.elc
%{_emacs_sitestartdir}/guix.el
%{guile_source_dir}/%{name}.scm
%{guile_ccache_dir}/%{name}.go
%dir %{guile_source_dir}/%{name}
%dir %{guile_ccache_dir}/%{name}
%{guile_source_dir}/%{name}/*.scm
%{guile_ccache_dir}/%{name}/*.go
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/images
%{_datadir}/%{name}/images/guix-logo.svg
%{_datadir}/%{name}/images/guixsd-logo.svg
%{_infodir}/%{name}.info.gz
%exclude %{_infodir}/dir
%changelog
* Mon Dec 11 2017 Ting-Wei Lan <lantw44@gmail.com> - 0.3.3-2
- Use autosetup and make_build macros
* Mon Oct 16 2017 Ting-Wei Lan <lantw44@gmail.com> - 0.3.3-1
- Update to 0.3.3
* Sat May 27 2017 Ting-Wei Lan <lantw44@gmail.com> - 0.3.1-1
- Initial packaging
|