2ad1b35
%global pkg haskell-mode
2ad1b35
%global pkgname Haskell-mode
8cc317a
%global commit b441b9353cf5693392bf16f2d6d5cd41164493be
8cc317a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2ad1b35
7c82281
# until defined for all current releases
7c82281
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
7c82281
8cc317a
Name:       emacs-%{pkg}
8cc317a
Version:    16.2
5eacd77
Release:    0.3%{?dist}
8cc317a
Summary:    Haskell editing mode for Emacs
2ad1b35
8cc317a
License:    GPLv3+
8cc317a
URL:        https://github.com/haskell/haskell-mode
2ad1b35
8cc317a
# git clone https://github.com/haskell/haskell-mode.git
8cc317a
# cd haskell-mode
8cc317a
# git archive --format tar.gz  -o ../emacs-haskell-mode-b441b93.tar.gz --prefix haskell-mode-16.2/ master
8cc317a
Source0:    Source0:  https://github.com/haskell/haskell-mode/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
8cc317a
Source1:    haskell-mode-init.el
2ad1b35
8cc317a
BuildArch:  noarch
8cc317a
BuildRequires:  emacs
0049217
BuildRequires:  texinfo
8cc317a
Requires:   emacs(bin) >= %{_emacs_version}
0049217
Requires(post): info
0049217
Requires(preun): info
8cc317a
Obsoletes:      %{name}-el < %{version}-%{release}
a027f40
Provides:       %{name}-el = %{version}-%{release}
2ad1b35
2ad1b35
%description
2ad1b35
This package adds a Haskell major mode to Emacs.  The Haskell mode
8cc317a
supports font locking,declaration scanning, documentation,
2ad1b35
indentation, and interaction with Hugs and GHCi.
2ad1b35
2ad1b35
2ad1b35
%prep
8884443
%setup -q -n %{pkg}-%{version}
2ad1b35
2ad1b35
%build
0049217
make EMACS=%{_bindir}/emacs
0049217
2ad1b35
2ad1b35
%install
2ad1b35
%{__rm} -rf %{buildroot}
8884443
%{__install} -pm 755 -d %{buildroot}%{_emacs_sitelispdir}/%{pkg}/
8884443
%{__install} -pm 755 -d %{buildroot}%{_emacs_sitestartdir}
7c82281
%{__install} -pm 755 -d %{buildroot}%{_pkgdocdir}/examples
0049217
%{__install} -pm 755 -d %{buildroot}%{_infodir}
8cc317a
%{__install} -pm 644 build-%{_emacs_version}/*.elc %{buildroot}%{_emacs_sitelispdir}/%{pkg}/
8884443
%{__install} -pm 644 *.el %{buildroot}%{_emacs_sitelispdir}/%{pkg}/
0049217
%{__install} -pm 644 haskell-mode.info %{buildroot}%{_infodir}/
8884443
%{__install} -pm 644 %{SOURCE1} %{buildroot}%{_emacs_sitestartdir}
2ad1b35
2ad1b35
%files
8884443
%license COPYING
0a37c96
%doc README.md NEWS
8884443
%{_emacs_sitelispdir}/%{pkg}/*.el
8884443
%{_emacs_sitelispdir}/%{pkg}/*.elc
8884443
%dir %{_emacs_sitelispdir}/%{pkg}
0049217
%{_emacs_sitestartdir}/%{pkg}-init.el
0049217
%{_infodir}/%{pkg}.info*
2ad1b35
2ad1b35
2ad1b35
%changelog
5eacd77
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 16.2-0.3
5eacd77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5eacd77
42fb3d8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 16.2-0.2
42fb3d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
42fb3d8
8cc317a
* Tue Sep 11 2018 Arun S A G <sagarun@fedoraproject.org> - 16.2-0.1
8cc317a
- Build the latest master of emacs-haskell-mode
8cc317a
fcfc854
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.1-4
fcfc854
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fcfc854
328a514
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.1-3
328a514
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
328a514
0eff705
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.1-2
0eff705
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0eff705
3b58549
* Wed Mar  1 2017 Jens Petersen <petersen@redhat.com> - 16.1-1
3b58549
- update to 16.1
3b58549
d9b423d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 13.18-2
d9b423d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d9b423d
8884443
* Tue Mar  8 2016 Jens Petersen <petersen@fedoraproject.org> - 13.18-1
8884443
- update to 13.18 (#1209674)
8884443
- update to modern packaging and drop subpackage (#1234529)
0049217
- build with Makefile
0049217
- update haskell-mode-init.el to autoloads
0049217
- build and install info file
8884443
9e2f939
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-6
9e2f939
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9e2f939
703b9e7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.1-5
703b9e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
703b9e7
e2f09a2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.1-4
e2f09a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e2f09a2
7c82281
* Wed Aug 21 2013 Jens Petersen <petersen@redhat.com> - 2.9.1-3
7c82281
- fix build with unversioned docdir using _pkgdocdir (#992201)
7c82281
f42b44e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.1-2
f42b44e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f42b44e
0a37c96
* Sat Mar 16 2013 Arun S A G <sagarun [AT] gmail dot com> - 2.9.1-1
0a37c96
- update to new upstream release
0a37c96
- Project moved to github. New source url
0a37c96
- Asked upstream to correct fsf address https://github.com/haskell/haskell-mode/issues/129
0a37c96
8541d6f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-3
8541d6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8541d6f
57816c7
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-2
57816c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
57816c7
8f06acb
* Sat Jan 21 2012 Arun SAG <sagarun@gmail.com> - 2.8.0-1
8f06acb
- Updated to 2.8.0
8f06acb
201fcbc
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.0-5
201fcbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
201fcbc
c084e56
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.0-4
c084e56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c084e56
2ad1b35
* Sat Dec 12 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.7.0-3
2ad1b35
- Fixed installation in centos
2ad1b35
2ad1b35
* Mon Dec 7 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.7.0-2
2ad1b35
- Fixed installation failure in EL-5
2ad1b35
2ad1b35
* Sat Dec 5 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.7.0-1
2ad1b35
- Updated to version 2.7.0-1
2ad1b35
2ad1b35
* Sun Nov 15 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.5.1-2
2ad1b35
- Patch1 is moved to Source1
2ad1b35
2ad1b35
* Thu Oct 29 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.5.1-1
2ad1b35
- Updated to version 2.5.1
2ad1b35
75f92c5
* Mon Aug 17 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.4-5.20090815cvs
2ad1b35
- Patch0 updated to include haskell-indentation-mode .
2ad1b35
- Source0 changed,comment added for generating the source.
2ad1b35
- Cleaned up CVS snapshot for control characters.
2ad1b35
- Defined snapshot macro. 
2ad1b35
2ad1b35
* Sun Aug 16 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.4-4.20090815cvs
2ad1b35
- Fixed the snapshot date.
2ad1b35
2ad1b35
* Sat Aug 15 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.4-3.20090815cvs
2ad1b35
- Updated to Bugfix CVS snapshot 2.4-3.20091015cvs.
2ad1b35
- Changelog fixed.
2ad1b35
2ad1b35
* Thu Aug 13 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.4-2
2ad1b35
- Fixed the Makefile.
2ad1b35
- Cleaned the upstream source.
2ad1b35
- Spec file updated.
2ad1b35
75f92c5
* Tue Aug 11 2009 Arun SAG <sagarun [AT] gmail dot com> - 2.4-1
2ad1b35
- Updated to haskell-mode 2.4
2ad1b35
- Spec file is adjusted according to Fedora packaging guidelines.
2ad1b35
- Added patch to generate haskell-mode-init.el.
2ad1b35
- Added patch to modify the makefile. 
2ad1b35
2ad1b35
* Wed Feb 14 2007 Tom Moertel <tom [AT] moertel dot com> - 2.3-1.tgm
2ad1b35
- Updated to haskell-mode 2.3
2ad1b35
2ad1b35
* Mon Feb 12 2007 Tom Moertel <tom [AT] moertel dot com> - 2.2-2.tgm
2ad1b35
- Removed version suffix from package's site-lisp subdirectory
2ad1b35
- Switched to using the default site file from the haskell-mode tarball
2ad1b35
2ad1b35
* Mon Feb 12 2007 Tom Moertel <tom [AT] moertel dot com> - 2.2-1.tgm
2ad1b35
- Updated to haskell-mode 2.2
2ad1b35
- Added NEWS, ChangeLog, and README to package docs
2ad1b35
2ad1b35
* Wed Nov  9 2005 Tom Moertel <tom [AT] moertel dot com> - 2.1-1.tgm
2ad1b35
- Updated for haskell-mode 2.1
2ad1b35
2ad1b35
* Mon Apr 25 2005 Tom Moertel <tom [AT] moertel dot com> - 2.0-1.tgm
2ad1b35
- Updated for haskell-mode 2.0
2ad1b35
2ad1b35
* Sat Nov 13 2004 Tom Moertel <tom [AT] moertel dot com> 1.45-2.tgm
2ad1b35
- Merged changes from Carwyn Edwards <tom [AT] moertel dot com>:
2ad1b35
- Fixed permissions on installed files
2ad1b35
- Install non bytecode compiled versions too
2ad1b35
- Rewrote emacs byte compilation method
2ad1b35
2ad1b35
* Mon May  3 2004 Tom Moertel <tom [AT] moertel dot com> 1.45-1.tgm
2ad1b35
- Updated to 1.45 of haskell-mode
2ad1b35
- Made GHCi the default for interactive mode (instead of Hugs)
2ad1b35
2ad1b35
* Wed Nov  6 2002 Tom Moertel <tom [AT] moertel dot com>
2ad1b35
- Removed prompt and alignment patches because they are now merged into
2ad1b35
  the main distribution
2ad1b35
2ad1b35
* Mon Sep  2 2002 Tom Moertel <tom [AT] moertel dot com>
2ad1b35
- Revised patch to handle ModuleA ModuleB ... > prompts
2ad1b35
2ad1b35
* Sat Aug 31 2002 Tom Moertel <tom [AT] moertel dot com>
2ad1b35
- Added patch to handle new *ModuleName> prompts
2ad1b35
2ad1b35
* Tue Jul 23 2002 Tom Moertel <tom [AT] moertel dot com>
2ad1b35
- Added support for aligning rhsides on a given column
2ad1b35
2ad1b35
* Fri Mar 22 2002 Tom Moertel <tom [AT] moertel dot com>
2ad1b35
- Created spec file
2ad1b35
- Added README.RPM 
2ad1b35
- Added site-lisp/site-start.d init file for emacs-haskell-mode