File emacs-haskell-mode.spec of Package emacs-haskell-mode
#
# spec file for package emacs-haskell-mode
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: emacs-haskell-mode
Version: 17.5
Release: 0
Summary: Haskell mode for EMACS
License: GPL-3.0-or-later
URL: https://github.com/haskell/haskell-mode
Source0: %{url}/archive/v%{version}.tar.gz
Source1: suse-start-haskell-mode.el
BuildRequires: emacs-nox
BuildRequires: makeinfo
BuildRequires: info
BuildArch: noarch
%description
Haskell-mode is a major Emacs mode for editing Haskell source code. It
provides syntax highlighting and automatic indentation and comes with
inf-haskell which allows interaction with an inferior Haskell interactive loop
such as the one of Hugs or GHCi.
%prep
%autosetup -n haskell-mode-%{version}
%build
%make_build
%install
emacs_version=$(emacs -Q --batch --eval '(princ emacs-version)')
install -d %{buildroot}%{_emacs_sitelispdir}/haskell-mode
install -m0644 build-$emacs_version/*.elc %{buildroot}%{_emacs_sitelispdir}/haskell-mode
install -pm0644 haskell-mode-autoloads.el %{buildroot}%{_emacs_sitelispdir}/haskell-mode/haskell-mode-autoloads.el
install -pm0644 %{SOURCE1} %{buildroot}%{_emacs_sitelispdir}/suse-start-haskell-mode.el
install -Dm0644 haskell-mode.info %{buildroot}%{_infodir}/haskell-mode.info
%files
%license COPYING
%doc CONTRIBUTING.md NEWS README.md
%{_emacs_sitelispdir}/haskell-mode
%{_emacs_sitelispdir}/suse-start-haskell-mode.el
%{_infodir}/haskell-mode.info%{?ext_info}
%changelog