[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/emacs/F-7 .cvsignore, 1.20, 1.21 emacs.spec, 1.95, 1.96 sources, 1.21, 1.22



Author: coldwell

Update of /cvs/pkgs/rpms/emacs/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7769

Modified Files:
	.cvsignore emacs.spec sources 
Log Message:
* Wed May 23 2007 Chip Coldwell <coldwell redhat com> - 22.0.990-2
- revert all spec file changes since 22.0.95-1 (Resolves: bz239745)
- new pretest tarball from FSF (Resolves: bz238234)
- restore php-mode-1.1.0 (Resolves: bz235941)




Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/emacs/F-7/.cvsignore,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- .cvsignore	22 May 2007 14:53:07 -0000	1.20
+++ .cvsignore	23 May 2007 13:58:16 -0000	1.21
@@ -1,2 +1,2 @@
+php-mode-1.1.0.tgz
 emacs-22.0.990.tar.gz
-php-mode-1.2.0.tgz


Index: emacs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/emacs/F-7/emacs.spec,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- emacs.spec	22 May 2007 19:24:04 -0000	1.95
+++ emacs.spec	23 May 2007 13:58:16 -0000	1.96
@@ -1,24 +1,20 @@
 # This file is encoded in UTF-8.  -*- coding: utf-8 -*-
 
-%define expurgate 0
-%define humorless 0
-%define paranoid 1
-
 Summary: GNU Emacs text editor
 Name: emacs
 Version: 22.0.990
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPL
 URL: http://www.gnu.org/software/emacs/
 Group: Applications/Editors
 Source0: ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-%{version}.tar.gz
 Source1: emacs.desktop
-Source2: default.el
+Source2: emacs.png
 Source3: dotemacs.el
 Source4: site-start.el
 Source5: http://www.python.org/emacs/python-mode/python-mode.el
 Source6: http://cvs.xemacs.org/viewcvs.cgi/XEmacs/packages/xemacs-packages/prog-modes/rpm-spec-mode.el
-Source7: http://download.sourceforge.net/php-mode/php-mode-1.2.0.tgz
+Source7: http://download.sourceforge.net/php-mode/php-mode-1.1.0.tgz
 Source8: php-mode-init.el
 Source9: ssl.el
 Source10: python-mode-init.el
@@ -28,6 +24,8 @@
 Source14: po-mode.el
 Source15: po-mode-init.el
 Source16: po-mode-auto-replace-date-71264.patch
+Source18: default.el
+Source19: wrapper
 Source20: igrep.el
 Source21: igrep-init.el
 Buildroot: %{_tmppath}/%{name}-%{version}-root
@@ -39,6 +37,12 @@
 Requires: emacs-common = %{version}-%{release}
 Conflicts: gettext < 0.10.40
 
+# C and build patches
+
+# Lisp and doc patches
+
+%define paranoid 1
+
 %description
 Emacs is a powerful, customizable, self-documenting, modeless text
 editor. Emacs contains special code editing features, a scripting
@@ -91,72 +95,114 @@
 %prep
 %setup -q
 
-%if %{expurgate}
-rm -f etc/sex.6 etc/condom.1 etc/celibacy.1
-%endif
-
-%if %{humorless}
-rm -f etc/COOKIES etc/JOKES etc/future-bug
-%endif
-
-%if %{paranoid}
-rm -f lisp/play/tetris.el
-%endif
-
 # install rest of site-lisp files
 ( cd site-lisp
-  cp %SOURCE2 %SOURCE4 %SOURCE5 %SOURCE6 %SOURCE9 %SOURCE14 %SOURCE20 .
-  tar xfz %SOURCE7
+  cp %SOURCE5 %SOURCE6 %SOURCE9 %SOURCE14 %SOURCE20 .
+  tar xfz %SOURCE7  # php-mode
   # xemacs compat patch for rpm-spec-mode
   patch < %SOURCE12
   # fix po-auto-replace-revision-date nil
   patch < %SOURCE16 )
 
+%if %{paranoid}
+# avoid trademark issues
+( cd lisp/play
+  rm -f tetris.el tetris.elc )
+%endif
+
 %build
+export CFLAGS="-DMAIL_USE_LOCKF -DSYSTEM_PURESIZE_EXTRA=16777216 $RPM_OPT_FLAGS"
 
-# First, build the binary without X support
-%configure --without-x
-%__make %{?_smp_mflags} -C src emacs
-mv src/emacs-%{version}.1 src/emacs-%{version}-nox
+# stack-protector causes crashing on i386 (#174730)
+%ifarch %{ix86}
+CFLAGS=`echo $CFLAGS | sed -e "s/ -fstack-protector//"`
+%endif
 
-# Now, rebuild with full X support
 %configure --with-pop --with-sound --with-gtk
-%__make %{?_smp_mflags} bootstrap
+
+%__make bootstrap
+%__make %{?_smp_mflags}
+
+# remove versioned file so that we end up with .1 suffix and only one DOC file
+rm src/emacs-%{version}.*
+
+TOPDIR=${PWD}
+%define emacsbatch ${TOPDIR}/src/emacs -batch --no-init-file --no-site-file
 
 # make sure patched lisp files get byte-compiled
-src/emacs -batch --no-init-file --no-site-file -f batch-byte-compile site-lisp/*.el
+%emacsbatch -f batch-byte-compile site-lisp/*.el
+
+%__make %{?_smp_mflags} -C lisp updates
 
 %install
-rm -rf %{buildroot}
-%makeinstall
-install -m 0755 src/emacs-%{version}-nox %{buildroot}%{_bindir}
+rm -rf $RPM_BUILD_ROOT
 
-# install site-lisp files
-%define site_lisp %{buildroot}%{_datadir}/emacs/site-lisp
-mkdir -p %{site_lisp}
-install -m 0644 site-lisp/*.el{,c} %{site_lisp}
+# workaround #101818 (vm/break dumper problem)
+make install \
+	prefix=%{?buildroot:%{buildroot}}%{_prefix} \
+	exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \
+	bindir=%{?buildroot:%{buildroot}}%{_bindir} \
+	sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \
+	sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \
+	datadir=%{?buildroot:%{buildroot}}%{_datadir} \
+	includedir=%{?buildroot:%{buildroot}}%{_includedir} \
+	libdir=%{?buildroot:%{buildroot}}%{_libdir} \
+	libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \
+	localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \
+	sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \
+	mandir=%{?buildroot:%{buildroot}}%{_mandir} \
+	infodir=%{?buildroot:%{buildroot}}%{_infodir}
+
+# suffix binaries with -x
+mv $RPM_BUILD_ROOT%{_bindir}/emacs{,-x}
+mv $RPM_BUILD_ROOT%{_bindir}/emacs-%{version}{,-x}
+
+# rebuild without X support
+# remove the versioned binary with X support so that we end up with .1 suffix for emacs-nox too
+rm src/emacs-%{version}.*
+%configure --without-x
+%__make %{?_smp_mflags}
+
+# install the emacs without X
+install -m 0755 src/emacs-%{version}.1 $RPM_BUILD_ROOT%{_bindir}/emacs-%{version}-nox
+ln $RPM_BUILD_ROOT%{_bindir}/emacs{-%{version},}-nox
+
+# install wrapper script
+install -m 0755 %SOURCE19 $RPM_BUILD_ROOT%{_bindir}/emacs-%{version}
+ln -s %{_bindir}/emacs-%{version} $RPM_BUILD_ROOT%{_bindir}/emacs
+
+# make sure movemail isn't setgid
+chmod 755 $RPM_BUILD_ROOT%{emacs_libexecdir}/movemail
+
+%define site_lisp $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
 
-# alternatives will create a symlink to /usr/bin/emacs-22.0.99
-rm %{buildroot}%{_bindir}/emacs
+mkdir -p %{site_lisp}
+install -m 0644 %SOURCE4 %{site_lisp}/site-start.el
+install -m 0644 %SOURCE18 %{site_lisp}
 
-mv %{buildroot}%{_bindir}/{etags,etags.emacs}
-mv %{buildroot}%{_mandir}/man1/{ctags.1,gctags.1}
-mv %{buildroot}%{_bindir}/{ctags,gctags}
+mv $RPM_BUILD_ROOT%{_bindir}/{etags,etags.emacs}
+mv $RPM_BUILD_ROOT%{_mandir}/man1/{ctags.1,gctags.1}
+mv $RPM_BUILD_ROOT%{_bindir}/{ctags,gctags}
 
 # GNOME / KDE files
-mkdir -p %{buildroot}%{_datadir}/applications
-install -m 0644 %SOURCE1 %{buildroot}%{_datadir}/applications/gnu-emacs.desktop
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
+install -m 0644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/applications/gnu-emacs.desktop
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
+install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/pixmaps/
+
+# install site-lisp files
+install -m 0644 site-lisp/*.el{,c} %{site_lisp}
 
 mkdir -p %{site_lisp}/site-start.d
 install -m 0644 $RPM_SOURCE_DIR/*-init.el %{site_lisp}/site-start.d
 
 # default initialization file
-mkdir -p %{buildroot}%{_sysconfdir}/skel
-install -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/skel/.emacs
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel
+install -m 0644 %SOURCE3 $RPM_BUILD_ROOT%{_sysconfdir}/skel/.emacs
 
 # after everything is installed, remove info dir
-rm -f %{buildroot}%{_infodir}/dir
-rm %{buildroot}%{_localstatedir}/games/emacs/*
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+rm $RPM_BUILD_ROOT%{_localstatedir}/games/emacs/*
 
 #
 # create file lists
@@ -168,7 +214,9 @@
 
   find .%{_datadir}/emacs/%{version}/lisp \
     .%{_datadir}/emacs/%{version}/leim \
-    .%{_datadir}/emacs/site-lisp \( -type f -name '*.elc' -fprint $TOPDIR/common-lisp-none-elc-files \) -o \( -type d -fprintf $TOPDIR/common-lisp-dir-files "%%%%dir %%p\n" \) -o \( -name '*.el.gz' -fprint $TOPDIR/el-bytecomped-files -o -fprint $TOPDIR/common-not-comped-files \) )
+    .%{_datadir}/emacs/site-lisp \( -type f -name '*.elc' -fprint $TOPDIR/common-lisp-none-elc-files \) -o \( -type d -fprintf $TOPDIR/common-lisp-dir-files "%%%%dir %%p\n" \) -o \( -name '*.el.gz' -fprint $TOPDIR/el-bytecomped-files -o -fprint $TOPDIR/common-not-comped-files \)
+
+)
 
 # put the lists together after filtering  ./usr to /usr
 sed -i -e "s|\.%{_prefix}|%{_prefix}|" *-files
@@ -180,26 +228,6 @@
 
 %define info_files ada-mode autotype calc ccmode cl dired-x ebrowse ediff efaq eintr elisp0 elisp1 elisp emacs emacs-mime emacs-xtra erc eshell eudc flymake forms gnus idlwave info message mh-e newsticker org pcl-cvs pgg rcirc reftex sc ses sieve smtpmail speedbar tramp url viper vip widget woman
 
-%post
-if [ $1 -ge 1 ] ; then
-    alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version} 80
-fi
-
-%preun
-if [ $1 -eq 0 ] ; then
-    alternatives --remove emacs %{_bindir}/emacs-%{version}
-fi
-
-%post nox
-if [ $1 -ge 1 ] ; then
-    alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-nox 70
-fi
-
-%preun nox
-if [ $1 -eq 0 ] ; then
-    alternatives --remove emacs %{_bindir}/emacs-%{version}-nox
-fi
-
 %post common
 for f in %{info_files}; do
   /sbin/install-info %{_infodir}/$f.gz %{_infodir}/dir --section="GNU Emacs" 2> /dev/null || :
@@ -207,7 +235,7 @@
 alternatives --install %{_bindir}/etags etags %{_bindir}/etags.emacs 80
 
 %preun common
-if [ $1 -eq 0 ]; then
+if [ "$1" = 0 ]; then
   for f in %{info_files}; do
     /sbin/install-info --delete %{_infodir}/$f.gz %{_infodir}/dir \
       --section="GNU Emacs" 2> /dev/null || :
@@ -217,25 +245,37 @@
 
 %files
 %defattr(-,root,root)
+%{_bindir}/emacs
 %{_bindir}/emacs-%{version}
+%{_bindir}/emacs-x
+%{_bindir}/emacs-%{version}-x
+%dir %{_libexecdir}/emacs
+%dir %{_libexecdir}/emacs/%{version}
+%dir %{emacs_libexecdir}
 %{_datadir}/applications/gnu-emacs.desktop
+%{_datadir}/pixmaps/emacs.png 
 
 %files nox
 %defattr(-,root,root)
+%{_bindir}/emacs
+%{_bindir}/emacs-%{version}
+%{_bindir}/emacs-nox
 %{_bindir}/emacs-%{version}-nox
+%dir %{_libexecdir}/emacs
+%dir %{_libexecdir}/emacs/%{version}
+%dir %{emacs_libexecdir}
 
 %files -f common-filelist common
 %defattr(-,root,root)
 %config(noreplace) %{_sysconfdir}/skel/.emacs
 %doc etc/NEWS BUGS README 
-%exclude %{_bindir}/emacs-%{version}
-%exclude %{_bindir}/emacs-%{version}-nox
+%exclude %{_bindir}/emacs
+%exclude %{_bindir}/emacs-*
 %{_bindir}/*
 %{_mandir}/*/*
 %{_infodir}/*
 %dir %{_datadir}/emacs
 %dir %{_datadir}/emacs/%{version}
-%dir %{emacs_libexecdir}
 %{_datadir}/emacs/%{version}/etc
 %{_datadir}/emacs/%{version}/site-lisp
 %{_libexecdir}/emacs
@@ -248,6 +288,11 @@
 %dir %{_datadir}/emacs/%{version}
 
 %changelog
+* Wed May 23 2007 Chip Coldwell <coldwell redhat com> - 22.0.990-2
+- revert all spec file changes since 22.0.95-1 (Resolves: bz239745)
+- new pretest tarball from FSF (Resolves: bz238234)
+- restore php-mode (Resolves: bz235941)
+
 * Mon May 21 2007 Chip Coldwell <coldwell redhat com> - 22.0.990-1
 - new pretest tarball from FSF
 - removed Ulrich Drepper's patch to prevent mmapped pages during dumping


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/emacs/F-7/sources,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- sources	22 May 2007 14:53:07 -0000	1.21
+++ sources	23 May 2007 13:58:16 -0000	1.22
@@ -1,2 +1,2 @@
+aad009f7cff4019aac9a466ec9b55aaf  php-mode-1.1.0.tgz
 809ab62a9b9c36a9d685021a907f6022  emacs-22.0.990.tar.gz
-c4ee5e37db3921d6a9aa6d7c417ccadb  php-mode-1.2.0.tgz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]