From 2cabdbb7d8e47beb6c1298ed4e50a20579e2ffab Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Aug 08 2011 21:09:19 +0000 Subject: - New upstream version 2.0.4 (RHBZ#729130). - Upstream build system is much more sane than before, so remove a lot of non-conventional hacks and just use make/make install. --- diff --git a/.gitignore b/.gitignore index 9ba9671..52b3c76 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ tuareg-mode-1.45.6.tar.bz2 +/tuareg-2.0.4.tgz diff --git a/emacs-common-tuareg.spec b/emacs-common-tuareg.spec index 47751eb..6d85e48 100644 --- a/emacs-common-tuareg.spec +++ b/emacs-common-tuareg.spec @@ -29,18 +29,16 @@ Name: emacs-common-%{pkg} -Version: 1.45.6 -Release: 10%{?dist} +Version: 2.0.4 +Release: 1%{?dist} Summary: Emacs and XEmacs mode for editing ocaml Group: Development/Libraries License: GPLv2+ -URL: http://www-rocq.inria.fr/~acohen/tuareg/index.html.en -Source0: http://www-rocq.inria.fr/~acohen/tuareg/mode/tuareg-mode-%{version}.tar.bz2 +URL: https://forge.ocamlcore.org/projects/tuareg/ +Source0: https://forge.ocamlcore.org/frs/download.php/514/tuareg-2.0.4.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Patch0: tuareg-mode-no-sym-lock.patch - BuildArch: noarch BuildRequires: emacs, emacs-el BuildRequires: xemacs, xemacs-devel @@ -116,32 +114,21 @@ XEmacs. %prep -%setup -q -n %{pkg}-mode-%{version} -%patch0 -p1 -for f in HISTORY README LISEZMOI; do - mv $f $f.old; iconv -f iso-8859-1 -t utf-8 < $f.old > $f -done +%setup -q -n %{pkg}-%{version} + %build -# 'append-tuareg.el' and 'custom-tuareg.el' are example config -# files, so they will end up in the documentation directory. -# 'sym-lock.el' is broken. -emacs --no-site-file -q -batch -L . -f batch-byte-compile \ - tuareg.el camldebug.el +make %install rm -rf $RPM_BUILD_ROOT +# Install twice, for emacs and xemacs. mkdir -p $RPM_BUILD_ROOT/%{emacs_lispdir}/%{pkg} -#mkdir -p $RPM_BUILD_ROOT/%{emacs_startdir} -install -m 0644 tuareg.el camldebug.el tuareg.elc camldebug.elc \ - $RPM_BUILD_ROOT/%{emacs_lispdir}/%{pkg}/ - +make install DEST=$RPM_BUILD_ROOT/%{emacs_lispdir}/%{pkg} mkdir -p $RPM_BUILD_ROOT/%{xemacs_lispdir}/%{pkg} -#mkdir -p $RPM_BUILD_ROOT/%{xemacs_startdir} -install -m 0644 tuareg.el camldebug.el tuareg.elc camldebug.elc \ - $RPM_BUILD_ROOT/%{xemacs_lispdir}/%{pkg}/ +make install DEST=$RPM_BUILD_ROOT/%{xemacs_lispdir}/%{pkg} %clean @@ -150,13 +137,14 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc COPYING HISTORY LISEZMOI README append-tuareg.el custom-tuareg.el +%doc COPYING HISTORY README append-tuareg.el custom-tuareg.el %files -n emacs-%{pkg} %defattr(-,root,root,-) %doc COPYING %{emacs_lispdir}/%{pkg}/*.elc +%{emacs_lispdir}/%{pkg}/version #%{emacs_startdir}/*.el %dir %{emacs_lispdir}/%{pkg} @@ -171,6 +159,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %doc COPYING %{xemacs_lispdir}/%{pkg}/*.elc +%{xemacs_lispdir}/%{pkg}/version #%{xemacs_startdir}/*.el %dir %{xemacs_lispdir}/%{pkg} @@ -182,6 +171,11 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Aug 8 2011 Richard W.M. Jones - 2.0.4-1 +- New upstream version 2.0.4 (RHBZ#729130). +- Upstream build system is much more sane than before, so remove + a lot of non-conventional hacks and just use make/make install. + * Tue Feb 08 2011 Fedora Release Engineering - 1.45.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index 9744457..20dd7dc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -75df362cba2d32e9828eebe80716009f tuareg-mode-1.45.6.tar.bz2 +6bd7cd7305d5f1d084af4ff5982db964 tuareg-2.0.4.tgz diff --git a/tuareg-mode-no-sym-lock.patch b/tuareg-mode-no-sym-lock.patch deleted file mode 100644 index ce2cc5b..0000000 --- a/tuareg-mode-no-sym-lock.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -ur tuareg-mode-1.45.6/append-tuareg.el tuareg-mode-1.45.6.new/append-tuareg.el ---- tuareg-mode-1.45.6/append-tuareg.el 2008-01-12 23:08:15.000000000 +0000 -+++ tuareg-mode-1.45.6.new/append-tuareg.el 2008-02-21 08:36:17.000000000 +0000 -@@ -4,9 +4,3 @@ - (setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist)) - (autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t) - (autoload 'camldebug "camldebug" "Run the Caml debugger" t) -- --(if (and (boundp 'window-system) window-system) -- (when (string-match "XEmacs" emacs-version) -- (if (not (and (boundp 'mule-x-win-initted) mule-x-win-initted)) -- (require 'sym-lock)) -- (require 'font-lock)))