[Fedora-i18n-bugs] [emacs-common-riece/f14/master] Initial import.
Daiki Ueno
ueno at fedoraproject.org
Fri Mar 18 01:25:43 UTC 2011
commit 9915bfb96082c38c4319518c7bd9f6e1ae71f4da
Author: Daiki Ueno <dueno at redhat.com>
Date: Fri Mar 18 10:25:19 2011 +0900
Initial import.
.gitignore | 1 +
emacs-common-riece.spec | 179 +++++++++++++++++++++++++++++++++++++++++++++++
riece-xemacs.patch | 49 +++++++++++++
sources | 1 +
4 files changed, 230 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2d0650e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/riece-7.0.3.tar.gz
diff --git a/emacs-common-riece.spec b/emacs-common-riece.spec
new file mode 100644
index 0000000..05e5279
--- /dev/null
+++ b/emacs-common-riece.spec
@@ -0,0 +1,179 @@
+%global pkg riece
+%global pkgname Riece
+
+Name: emacs-common-%{pkg}
+Version: 7.0.3
+Release: 1%{?dist}
+Summary: Yet Another IRC Client for Emacs and XEmacs
+
+Group: Applications/Internet
+License: GPLv2+
+URL: http://riece.nongnu.org
+Source0: http://dl.sv.gnu.org/releases/%{pkg}/%{pkg}-%{version}.tar.gz
+Patch0: riece-xemacs.patch
+
+BuildArch: noarch
+BuildRequires: emacs-nox, xemacs, texinfo-tex
+Requires(post): /sbin/install-info
+Requires(preun): /sbin/install-info
+
+%description
+Riece is an IRC client for Emacs.
+
+Riece provides the following features:
+
+- Several IRC servers may be used at the same time.
+- Essential features can be built upon the extension framework (called
+ "add-on") capable of dependency tracking.
+- Installation is easy. Riece doesn't depend on other packages.
+- Setup is easy. Automatically save/restore the configuration.
+- Riece uses separate windows to display users, channels, and
+ dialogues. The user can select the window layout.
+- Step-by-step instructions (in info format) are included.
+- Mostly compliant with RFC 2812.
+
+%package -n emacs-%{pkg}
+Summary: Compiled elisp files to run %{pkgname} under GNU Emacs
+Group: Applications/Internet
+Requires: emacs(bin) >= %{_emacs_version}
+Requires: emacs-common-%{pkg} = %{version}-%{release}
+
+%description -n emacs-%{pkg}
+This package contains the byte compiled elisp packages to run
+%{pkgname} with GNU Emacs.
+
+
+%package -n emacs-%{pkg}-el
+Summary: Elisp source files for %{pkgname} under GNU Emacs
+Group: Applications/Internet
+Requires: emacs-%{pkg} = %{version}-%{release}
+
+%description -n emacs-%{pkg}-el
+This package contains the elisp source files for %{pkgname} under GNU
+Emacs. You do not need to install this package to run
+%{pkgname}. Install the emacs-%{pkg} package to use %{pkgname} with
+GNU Emacs.
+
+
+%package -n xemacs-%{pkg}
+Summary: Compiled elisp files to run %{pkgname} under XEmacs
+Group: Applications/Internet
+Requires: xemacs(bin) >= %{_xemacs_version}
+Requires: emacs-common-%{pkg} = %{version}-%{release}
+
+%description -n xemacs-%{pkg}
+This package contains the byte compiled elisp packages to use
+%{pkgname} with XEmacs.
+
+
+%package -n xemacs-%{pkg}-el
+Summary: Elisp source files for Riece under XEmacs
+Group: Applications/Internet
+Requires: xemacs-riece = %{version}-%{release}
+
+%description -n xemacs-%{pkg}-el
+This package contains the elisp source files for %{pkgname} under
+XEmacs. You do not need to install this package to run
+%{pkgname}. Install the xemacs-%{pkg} package to use %{pkgname} with
+XEmacs.
+
+%prep
+%setup -q -n %{pkg}-%{version}
+%patch0 -p1 -b .xemacs
+
+%build
+%configure
+cat > %{name}-init.el <<"EOF"
+(autoload 'riece "riece" "Start Riece" t)
+EOF
+
+%install
+make -C doc install infodir=$RPM_BUILD_ROOT%{_infodir}
+# don't package but instead update in pre and post
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
+# byte-compile & install elisp files with emacs
+make -C lisp EMACS=emacs
+make -C lisp install EMACS=emacs lispdir=$RPM_BUILD_ROOT%{_emacs_sitelispdir}
+%__mkdir_p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
+install -m 644 %{name}-init.el $RPM_BUILD_ROOT%{_emacs_sitestartdir}/%{pkg}-init.el
+make -C lisp clean
+
+# byte-compile & install elisp files with xemacs
+%__mkdir_p $RPM_BUILD_ROOT%{_xemacs_sitepkgdir}/etc/%{pkg}
+make -C lisp EMACS=xemacs
+make -C lisp install EMACS=xemacs lispdir=$RPM_BUILD_ROOT%{_xemacs_sitelispdir}
+
+# move data files installed in site-lisp, to sitepkgdir
+mv $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{pkg}/*.rb \
+ $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{pkg}/*.xpm \
+ $RPM_BUILD_ROOT%{_xemacs_sitepkgdir}/etc/%{pkg}/
+%__mkdir_p $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
+install -m 644 %{name}-init.el $RPM_BUILD_ROOT%{_xemacs_sitestartdir}/%{pkg}-init.el
+
+
+%post
+/sbin/install-info %{_infodir}/riece-en.info.gz %{_infodir}/dir || :
+/sbin/install-info %{_infodir}/riece-ja.info.gz %{_infodir}/dir || :
+
+
+%preun
+if [ $1 = 0 ]; then
+ /sbin/install-info --delete %{_infodir}/riece-en.info.gz \
+ %{_infodir}/dir || :
+ /sbin/install-info --delete %{_infodir}/riece-ja.info.gz \
+ %{_infodir}/dir || :
+fi
+
+
+%files
+%defattr(-,root,root,-)
+%doc README README.ja NEWS NEWS.ja AUTHORS COPYING
+%doc %{_infodir}/*.gz
+
+
+%files -n emacs-riece
+%defattr(-,root,root,-)
+%{_emacs_sitelispdir}/riece/*.elc
+%{_emacs_sitelispdir}/riece/*.xpm
+%{_emacs_sitelispdir}/riece/*.rb
+%{_emacs_sitestartdir}/*.el
+%dir %{_emacs_sitelispdir}/riece
+
+
+%files -n emacs-riece-el
+%defattr(-,root,root,-)
+%{_emacs_sitelispdir}/riece/*.el
+
+
+%files -n xemacs-riece
+%defattr(-,root,root,-)
+%{_xemacs_sitelispdir}/riece/*.elc
+%{_xemacs_sitepkgdir}/etc/riece/*.rb
+%{_xemacs_sitepkgdir}/etc/riece/*.xpm
+%{_xemacs_sitestartdir}/*.el
+%dir %{_xemacs_sitelispdir}/riece
+
+
+%files -n xemacs-riece-el
+%defattr(-,root,root,-)
+%{_xemacs_sitelispdir}/riece/*.el
+
+
+%changelog
+* Wed Mar 16 2011 Daiki Ueno <dueno at redhat.com> - 7.0.3-1
+- new upstream release
+- add riece-xemacs.patch to compile with XEmacs 21.5
+- remove deprecated BuildRoot stuff
+
+* Mon May 31 2010 Daiki Ueno <dueno at redhat.com> - 7.0.0-1
+- new upstream release.
+
+* Fri Apr 16 2010 Daiki Ueno <dueno at redhat.com> - 6.1.0-3
+- fix typo; define and use pkgname for readability.
+
+* Tue Apr 6 2010 Daiki Ueno <ueno at unixuser.org> - 6.1.0-2
+- change the encoding of Japanese docs to UTF-8.
+
+* Mon Apr 5 2010 Daiki Ueno <ueno at unixuser.org> - 6.1.0-1
+- initial packaging for Fedora.
diff --git a/riece-xemacs.patch b/riece-xemacs.patch
new file mode 100644
index 0000000..aa2be8f
--- /dev/null
+++ b/riece-xemacs.patch
@@ -0,0 +1,49 @@
+From 8041591b6561ab7f5f33cc1d5b15e3b01371f95c Mon Sep 17 00:00:00 2001
+From: Daiki Ueno <ueno at unixuser.org>
+Date: Wed, 16 Mar 2011 13:24:10 +0900
+Subject: [PATCH] Add workaround when compiling with XEmacs 21.5.
+
+---
+ lisp/COMPILE | 16 +++++++++++++---
+ 1 files changed, 13 insertions(+), 3 deletions(-)
+
+diff --git a/lisp/COMPILE b/lisp/COMPILE
+index f4ab37a..72452dd 100644
+--- a/lisp/COMPILE
++++ b/lisp/COMPILE
+@@ -105,7 +105,10 @@
+ (let ((source (expand-file-name
+ (concat (car command-line-args-left) ".el"))))
+ (if (file-newer-than-file-p source (concat source "c"))
+- (byte-compile-file source)))))
++ (byte-compile-file source))))
++ ;; Workaround for an XEmacs 21.5 bug ("xemacs -batch -f <func> <arg1>"
++ ;; attempts to open <arg1> as a file after <func>).
++ (setq command-line-args-left (cdr command-line-args-left)))
+
+ (defun riece-install-modules (modules srcdir lispdir just-print)
+ (unless (or just-print (file-exists-p lispdir))
+@@ -196,11 +199,18 @@
+ (riece-mcat-update files (concat (symbol-name (car pointer)) ".el")
+ (intern (concat (symbol-name (car pointer))
+ "-alist")))
+- (setq pointer (cdr pointer)))))
++ (setq pointer (cdr pointer))))
++ ;; Workaround for an XEmacs 21.5 bug ("xemacs -batch -f <func> <arg1>"
++ ;; attempts to open <arg1> as a file after <func>).
++ (setq command-line-args-left (cdr command-line-args-left)))
+
+ (defun riece-compile ()
+ (let ((srcdir (car command-line-args-left)))
+- (riece-compile-modules (riece-examine-modules srcdir) srcdir)))
++ (setq command-line-args-left (cdr command-line-args-left))
++ (riece-compile-modules (riece-examine-modules srcdir) srcdir))
++ ;; Workaround for an XEmacs 21.5 bug ("xemacs -batch -f <func> <arg1>"
++ ;; attempts to open <arg1> as a file after <func>).
++ (setq command-line-args-left (cdr command-line-args-left)))
+
+ (defun riece-install ()
+ (let ((srcdir (car command-line-args-left))
+--
+1.7.2.3
+
diff --git a/sources b/sources
index e69de29..60d543a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8a1bb05eb6aa49ad3ce7548e828b6c33 riece-7.0.3.tar.gz
More information about the i18n-bugs
mailing list