rpms/emacs-vm/devel emacs-vm.spec, NONE, 1.1 vm-stdlib-patch.diff, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jonathan G. Underwood (jgu) fedora-extras-commits at redhat.com
Thu Jun 22 19:10:04 UTC 2006


Author: jgu

Update of /cvs/extras/rpms/emacs-vm/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29636/devel

Modified Files:
	.cvsignore sources 
Added Files:
	emacs-vm.spec vm-stdlib-patch.diff 
Log Message:
auto-import emacs-vm-7.19-3 on branch devel from emacs-vm-7.19-3.src.rpm


--- NEW FILE emacs-vm.spec ---
%define pkg vm

Summary: Emacs VM mailreader
Name: emacs-%{pkg}
Version: 7.19
Release: 3%{?dist}
URL: http://www.wonderworks.com/vm/
Source0: http://www.seanet.com/~kylemonger/vm/%{pkg}-%{version}.tar.gz
Patch0: vm-stdlib-patch.diff
License: GPL
Group: Applications/Internet
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: emacs
Requires(pre): /sbin/install-info 
Requires(post): /sbin/install-info 
Buildrequires: emacs texinfo

%description
VM (View Mail) is an Emacs subsystem that allows UNIX mail to be read
and disposed of within Emacs.  Commands exist to do the normal things
expected of a mail user agent, such as generating replies, saving
messages to folders, deleting messages and so on.  There are other
more advanced commands that do tasks like bursting and creating
digests, message forwarding, and organizing message presentation
according to various criteria.

%package el
Group: Applications/Internet
Summary: Elisp source files for VM mailreader for emacs
Requires: %{name} = %{version}-%{release}

%description el 
The %{name}-el package contains the elisp source files for the %{name}
package. It is not necessary to install this if you want to run vm.

%prep
%setup -q -n %{pkg}-%{version}
%patch0 -p1 

%build
%define pkgdir %{_datadir}/emacs/site-lisp/vm
%define pixmapdir %{pkgdir}/pixmaps

make %{?_smp_mflags} all \
	prefix=%{_prefix} \
  	INFODIR=%{_infodir} \
  	LISPDIR=%{pkgdir} \
  	BINDIR=%{_bindir} \
  	PIXMAPDIR=%{pixmapdir}

%install
rm -rf %{buildroot}
make install \
  	prefix=%{buildroot}%{_prefix} \
  	INFODIR=%{buildroot}%{_infodir} \
  	LISPDIR=%{buildroot}%{pkgdir} \
  	BINDIR=%{buildroot}%{_bindir} \
  	PIXMAPDIR=%{buildroot}%{pixmapdir}

%define startd %{_datadir}/emacs/site-lisp/site-start.d/
%define initfile %{startd}/%{pkg}-mode-init.el

# Create initialization file.
install -d %{buildroot}/%{startd}
cat > %{buildroot}/%{initfile} <<EOF
(setq vm-toolbar-pixmap-directory "%{pixmapdir}")
(setq vm-image-directory "%{pixmapdir}")
(autoload 'vm "vm" "Start VM on your primary inbox." t)
(autoload 'vm-other-frame "vm" "Like \`vm' but starts in another frame." t)
(autoload 'vm-visit-folder "vm" "Start VM on an arbitrary folder." t)
(autoload 'vm-visit-virtual-folder "vm" "Visit a VM virtual folder." t)
(autoload 'vm-mode "vm" "Run VM major mode on a buffer" t)
(autoload 'vm-mail "vm" "Send a mail message using VM." t)
(autoload 'vm-submit-bug-report "vm" "Send a bug report about VM." t)
EOF

%clean
rm -rf %{buildroot}

%post 
# Without the --entry part here, we get a malformed entry in info.
/sbin/install-info \
  --entry="* VM: (vm).       An Emacs mailreader" \
  %{_infodir}/%{name}.info.gz %{_infodir}/dir 2>/dev/null || :

%preun
if [ "$1" = "0" ] ; then 
 /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir 2>/dev/null || :
fi

%files
%defattr(-,root,root,-)
%doc README COPYING
%doc %{_infodir}/*
%{_bindir}/*
%{_datadir}/emacs/site-lisp/vm/pixmaps/
%{_datadir}/emacs/site-lisp/vm/*.elc
%{initfile}
%dir %{pkgdir}

%files el
%defattr(-,root,root,-)
%{pkgdir}/*.el

%changelog
* Tue Jun 20 2006 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 7.19-3
- Change group to Applications/Internet
- Add release tag to the Requires for the -el package

* Tue May 23 2006 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 7.19-2
- Clean up spec file

* Fri Sep  2 2005 Jonathan Underwood <jonathan.underwood at gmail.com> - 7.19-1.fc4.jgu
- Initial build
- Generate vm-mode-init.el
- Separate out *.el files into -el package
- Added patch to remove warnings in the decode and encode programs

vm-stdlib-patch.diff:

--- NEW FILE vm-stdlib-patch.diff ---
diff -u vm-7.19/base64-decode.c vm-7.19-fixed/base64-decode.c
--- vm-7.19/base64-decode.c	1997-09-18 04:06:05.000000000 +0100
+++ vm-7.19-fixed/base64-decode.c	2005-09-02 18:34:35.000000000 +0100
@@ -2,6 +2,7 @@
 
 /* BASE64 on stdin -> converted data on stdout */
 
+#include <stdlib.h>
 #include <stdio.h>
 
 #ifdef _WIN32
diff -u vm-7.19/base64-encode.c vm-7.19-fixed/base64-encode.c
--- vm-7.19/base64-encode.c	1997-09-18 04:06:05.000000000 +0100
+++ vm-7.19-fixed/base64-encode.c	2005-09-02 18:34:11.000000000 +0100
@@ -6,6 +6,7 @@
  * UNIX's newline convention is used, i.e. one ASCII control-j (10 decimal).
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 
 #ifdef _WIN32
Common subdirectories: vm-7.19/pixmaps and vm-7.19-fixed/pixmaps
diff -u vm-7.19/qp-decode.c vm-7.19-fixed/qp-decode.c
--- vm-7.19/qp-decode.c	2000-03-05 20:59:04.000000000 +0000
+++ vm-7.19-fixed/qp-decode.c	2005-09-02 18:33:45.000000000 +0100
@@ -2,6 +2,7 @@
 
 /* Quoted Printable on stdin -> converted data on stdout */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 
diff -u vm-7.19/qp-encode.c vm-7.19-fixed/qp-encode.c
--- vm-7.19/qp-encode.c	2000-11-30 21:19:52.000000000 +0000
+++ vm-7.19-fixed/qp-encode.c	2005-09-02 18:33:29.000000000 +0100
@@ -7,6 +7,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #ifdef _WIN32
 #ifndef WIN32


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/emacs-vm/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	22 Jun 2006 19:09:16 -0000	1.1
+++ .cvsignore	22 Jun 2006 19:10:04 -0000	1.2
@@ -0,0 +1 @@
+vm-7.19.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/emacs-vm/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	22 Jun 2006 19:09:16 -0000	1.1
+++ sources	22 Jun 2006 19:10:04 -0000	1.2
@@ -0,0 +1 @@
+7866f6243e398d76ae32356a4af76fa3  vm-7.19.tar.gz




More information about the fedora-extras-commits mailing list