[packages/coq] - up to 8.4pl3

baggins baggins at pld-linux.org
Wed Apr 30 19:26:03 CEST 2014


commit 650aa0b620c8ca80f44133d4dd3a7c9b51407325
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Apr 30 19:25:48 2014 +0200

    - up to 8.4pl3

 coq-lablgtk2.patch | 37 +++++++++++++++++++------------------
 coq.spec           | 11 ++++++++---
 2 files changed, 27 insertions(+), 21 deletions(-)
---
diff --git a/coq.spec b/coq.spec
index 25c9f7d..8d9284a 100644
--- a/coq.spec
+++ b/coq.spec
@@ -8,13 +8,13 @@
 Summary:	The Coq Proof Assistant
 Summary(pl.UTF-8):	Coq - narzędzie pomagające w udowadnianiu
 Name:		coq
-Version:	8.3pl1
-Release:	2
+Version:	8.4pl3
+Release:	1
 License:	GPL
 Group:		Applications/Math
 Vendor:		INRIA Rocquencourt
 Source0:	http://coq.inria.fr/V%{version}/files/%{name}-%{version}.tar.gz
-# Source0-md5:	1869d22b337f5da59ba3bbe1433f9a3b
+# Source0-md5:	40a3057ae296bbb228e1e6537f44ccb1
 Source1:	coqide.desktop
 Source2:	coqide.xpm
 Patch0:		%{name}-lablgtk2.patch
@@ -89,6 +89,8 @@ Styl dokumentacji Coq dla latexa.
 	-libdir %{_libdir}/coq \
 	-mandir %{_mandir} \
 	-docdir %{_docdir}/%{name}-%{version} \
+	-configdir %{_sysconfdir}/%{name} \
+	-datadir %{_datadir}/%{name} \
 	-emacs emacs \
 	-browser "xdg-open %s" \
 	-emacslib %{_datadir}/emacs/site-lisp \
@@ -119,6 +121,8 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc %{_docdir}/%{name}-%{version}
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/coqide-gtk2rc
 %attr(755,root,root) %{_bindir}/coq_makefile
 %attr(755,root,root) %{_bindir}/coq-tex
 %attr(755,root,root) %{_bindir}/coqc
@@ -150,6 +154,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/gallina.1*
 %{_desktopdir}/coqide.desktop
 %{_pixmapsdir}/coqide.xpm
+%{_datadir}/%{name}
 
 %files emacs
 %defattr(644,root,root,755)
diff --git a/coq-lablgtk2.patch b/coq-lablgtk2.patch
index e198ec3..1102759 100644
--- a/coq-lablgtk2.patch
+++ b/coq-lablgtk2.patch
@@ -1,31 +1,32 @@
 --- coq-8.1pl4/configure~	2008-10-09 11:40:41.000000000 +0200
 +++ coq-8.1pl4/configure	2009-02-16 14:03:00.496249846 +0100
-@@ -471,13 +471,13 @@
- else
-     case $lablgtkdir_spec in
- 	no) 
--	    if [ -f "${CAMLLIB}/lablgtk2/glib.mli" ]; then
-+	    if [ -f "${CAMLLIB}/lablgtk2/glib.cmi" ]; then
- 		lablgtkdir=${CAMLLIB}/lablgtk2
--	    elif [ -f "${CAMLLIB}/site-lib/lablgtk2/glib.mli" ]; then
-+	    elif [ -f "${CAMLLIB}/site-lib/lablgtk2/glib.cmi" ]; then
- 		lablgtkdir=${CAMLLIB}/site-lib/lablgtk2
- 	    fi;;
- 	yes)
--	    if [ ! -f "$lablgtkdir/glib.mli" ]; then
-+	    if [ ! -f "$lablgtkdir/glib.cmi" ]; then
- 		echo "Incorrect LablGtk2 library (glib.mli not found)."
+@@ -634,7 +634,7 @@
+             # Beware of the final \r in Win32
+             lablgtkdirtmp="$(ocamlfind query lablgtk2 2> /dev/null | tr -d '\r')"
+             if [ "$lablgtkdirtmp" != "" ]; then
+-                if [ -f "$lablgtkdirtmp/glib.cmi" -a -f "$lablgtkdirtmp/glib.mli" ]; then
++                if [ -f "$lablgtkdirtmp/glib.cmi" -o -f "$lablgtkdirtmp/glib.mli" ]; then
+                     lablgtkdirfoundmsg="LabelGtk2 found by ocamlfind"
+                     lablgtkdir=$lablgtkdirtmp
+                     LABLGTKLIB=$lablgtkdir # Pour le message utilisateur
+@@ -652,7 +652,7 @@
+                 echo "$lablgtkdir is not a valid directory."
  		echo "Configuration script failed!"
  		exit 1
-@@ -486,9 +486,6 @@
+-	    elif [ -f "$lablgtkdir/glib.cmi" -a -f "$lablgtkdir/glib.mli" ]; then
++	    elif [ -f "$lablgtkdir/glib.cmi" -o -f "$lablgtkdir/glib.mli" ]; then
+                 lablgtkdirfoundmsg="LablGtk2 directory found"
+                 LABLGTKLIB=$lablgtkdir # Pour le message utilisateur
+             else
+@@ -664,9 +664,6 @@
      if [ "$lablgtkdir" = "" ]; then
  	echo "LablGtk2 not found: CoqIde will not be available."
  	COQIDE=no
 -    elif [ -z "`grep -w convert_with_fallback "$lablgtkdir/glib.mli"`" ]; then
--	echo "LablGtk2 found but too old: CoqIde will not be available."
+-	echo "$lablgtkdirfoundmsg but too old: CoqIde will not be available."
 -	COQIDE=no;
      elif [ "$coqide_spec" = "yes" -a "$COQIDE" = "byte" ]; then 
- 	echo "LablGtk2 found, bytecode CoqIde will be used as requested."
+ 	echo "$lablgtkdirfoundmsg, bytecode CoqIde will be used as requested."
  	COQIDE=byte
 @@ -855,15 +852,7 @@
  ####################################################
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/coq.git/commitdiff/650aa0b620c8ca80f44133d4dd3a7c9b51407325



More information about the pld-cvs-commit mailing list