blob: 18d234e54e96aa895f2c0aa37d4c12798ba3cc38 (
plain) (
tree)
|
|
%global pkg guix
%global pkgname Guix
Name: emacs-%{pkg}
Version: 0.3.1
Release: 1%{?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
%setup -q
%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 %{?_smp_mflags}
%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
* Sat May 27 2017 Ting-Wei Lan <lantw44@gmail.com> - 0.3.1-1
- Initial packaging
|