%global pkg haskell-mode %global pkgname Haskell-mode %global commit df265ed372170b19053853c487275d97adf68dce %global shortcommit %(c=%{commit}; echo ${c:0:7}) %if %($(pkg-config emacs) ; echo $?) %global emacs_version 21.1 %global emacs_lispdir %{_datadir}/emacs/site-lisp %global emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d %else %global emacs_version %(pkg-config emacs --modversion) %global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir) %global emacs_startdir %(pkg-config emacs --variable sitestartdir) %endif # until defined for all current releases %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} Name: emacs-%{pkg} Version: 2.9.1 Release: 3%{?dist} Summary: Haskell editing mode for Emacs Group: Applications/Editors License: GPLv3 URL: https://github.com/haskell/haskell-mode Source0: https://github.com/haskell/haskell-mode/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Source1: haskell-mode-init.el BuildArch: noarch BuildRequires: emacs emacs-el Requires: emacs(bin) >= %{emacs_version} %description This package adds a Haskell major mode to Emacs. The Haskell mode supports font locking, declaration scanning, documentation, indentation, and interaction with Hugs and GHCi. %package el Summary: Elisp source files for %{pkgname} under GNU Emacs Group: Applications/Editors Requires: %{name} = %{version}-%{release} %description el This package contains the elisp source files for Haskell-mode under GNU Emacs. %prep %setup -q -n %{pkg}-%{commit} %{__rm} -rf haskell-site-file.el~ %build emacs --batch --eval '(setq load-path (cons "." load-path))' -f batch-byte-compile *.el %install %{__rm} -rf %{buildroot} %{__install} -pm 755 -d %{buildroot}%{emacs_lispdir}/%{pkg}/ %{__install} -pm 755 -d %{buildroot}%{emacs_startdir} %{__install} -pm 755 -d %{buildroot}%{_pkgdocdir}/examples %{__install} -pm 644 %{_builddir}/%{pkg}-%{commit}/*.elc %{buildroot}%{emacs_lispdir}/%{pkg}/ %{__install} -pm 644 %{_builddir}/%{pkg}-%{commit}/*.el %{buildroot}%{emacs_lispdir}/%{pkg}/ %{__install} -pm 644 %{_builddir}/%{pkg}-%{commit}/examples/init.el %{buildroot}/%{_pkgdocdir}/examples/init.el %{__install} -pm 644 %{SOURCE1} %{buildroot}%{emacs_startdir} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc README.md NEWS %{emacs_lispdir}/%{pkg}/*.elc %{emacs_startdir}/%{pkg}-init.el %dir %{emacs_lispdir}/%{pkg} %files el %defattr(-,root,root,-) %{emacs_lispdir}/%{pkg}/*.el %changelog * Wed Aug 21 2013 Jens Petersen - 2.9.1-3 - fix build with unversioned docdir using _pkgdocdir (#992201) * Sat Aug 03 2013 Fedora Release Engineering - 2.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Mar 16 2013 Arun S A G - 2.9.1-1 - update to new upstream release - Project moved to github. New source url - Asked upstream to correct fsf address https://github.com/haskell/haskell-mode/issues/129 * Wed Feb 13 2013 Fedora Release Engineering - 2.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 2.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 21 2012 Arun SAG - 2.8.0-1 - Updated to 2.8.0 * Fri Jan 13 2012 Fedora Release Engineering - 2.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 2.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Dec 12 2009 Arun SAG - 2.7.0-3 - Fixed installation in centos * Mon Dec 7 2009 Arun SAG - 2.7.0-2 - Fixed installation failure in EL-5 * Sat Dec 5 2009 Arun SAG - 2.7.0-1 - Updated to version 2.7.0-1 * Sun Nov 15 2009 Arun SAG - 2.5.1-2 - Patch1 is moved to Source1 * Thu Oct 29 2009 Arun SAG - 2.5.1-1 - Updated to version 2.5.1 * Mon Aug 17 2009 Arun SAG - 2.4-5.20090815cvs - Patch0 updated to include haskell-indentation-mode . - Source0 changed,comment added for generating the source. - Cleaned up CVS snapshot for control characters. - Defined snapshot macro. * Sun Aug 16 2009 Arun SAG - 2.4-4.20090815cvs - Fixed the snapshot date. * Sat Aug 15 2009 Arun SAG - 2.4-3.20090815cvs - Updated to Bugfix CVS snapshot 2.4-3.20091015cvs. - Changelog fixed. * Thu Aug 13 2009 Arun SAG - 2.4-2 - Fixed the Makefile. - Cleaned the upstream source. - Spec file updated. * Tue Aug 11 2009 Arun SAG - 2.4-1 - Updated to haskell-mode 2.4 - Spec file is adjusted according to Fedora packaging guidelines. - Added patch to generate haskell-mode-init.el. - Added patch to modify the makefile. * Wed Feb 14 2007 Tom Moertel - 2.3-1.tgm - Updated to haskell-mode 2.3 * Mon Feb 12 2007 Tom Moertel - 2.2-2.tgm - Removed version suffix from package's site-lisp subdirectory - Switched to using the default site file from the haskell-mode tarball * Mon Feb 12 2007 Tom Moertel - 2.2-1.tgm - Updated to haskell-mode 2.2 - Added NEWS, ChangeLog, and README to package docs * Wed Nov 9 2005 Tom Moertel - 2.1-1.tgm - Updated for haskell-mode 2.1 * Mon Apr 25 2005 Tom Moertel - 2.0-1.tgm - Updated for haskell-mode 2.0 * Sat Nov 13 2004 Tom Moertel 1.45-2.tgm - Merged changes from Carwyn Edwards : - Fixed permissions on installed files - Install non bytecode compiled versions too - Rewrote emacs byte compilation method * Mon May 3 2004 Tom Moertel 1.45-1.tgm - Updated to 1.45 of haskell-mode - Made GHCi the default for interactive mode (instead of Hugs) * Wed Nov 6 2002 Tom Moertel - Removed prompt and alignment patches because they are now merged into the main distribution * Mon Sep 2 2002 Tom Moertel - Revised patch to handle ModuleA ModuleB ... > prompts * Sat Aug 31 2002 Tom Moertel - Added patch to handle new *ModuleName> prompts * Tue Jul 23 2002 Tom Moertel - Added support for aligning rhsides on a given column * Fri Mar 22 2002 Tom Moertel - Created spec file - Added README.RPM - Added site-lisp/site-start.d init file for emacs-haskell-mode