--- rnc-mode-1.0b3.orig/debian/compat +++ rnc-mode-1.0b3/debian/compat @@ -0,0 +1 @@ +4 --- rnc-mode-1.0b3.orig/debian/copyright +++ rnc-mode-1.0b3/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by Chris Lawrence on +Tue, 25 Jan 2005 11:34:38 -0600. + +It was downloaded from http://www.pantor.com/download.html + +Copyright: + +Upstream Author: David Rosenborg + +License: +;; Copyright (c) 2002, Pantor Engineering AB +;; All rights reserved. +;; +;; Redistribution and use in source and binary forms, with or +;; without modification, are permitted provided that the following +;; conditions are met: +;; +;; * Redistributions of source code must retain the above copyright +;; notice, this list of conditions and the following disclaimer. +;; +;; * Redistributions in binary form must reproduce the above +;; copyright notice, this list of conditions and the following +;; disclaimer in the documentation and/or other materials provided +;; with the distribution. +;; +;; * Neither the name of Pantor Engineering AB nor the names of its +;; contributors may be used to endorse or promote products derived +;; from this software without specific prior written permission. +;; +;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +;; CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +;; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +;; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +;; BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +;; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +;; TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +;; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +;; ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +;; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +;; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +;; POSSIBILITY OF SUCH DAMAGE. --- rnc-mode-1.0b3.orig/debian/changelog +++ rnc-mode-1.0b3/debian/changelog @@ -0,0 +1,5 @@ +rnc-mode (1.0b3-1) unstable; urgency=low + + * Initial Release. (Closes: #290603) + + -- Chris Lawrence Tue, 25 Jan 2005 11:37:36 -0600 --- rnc-mode-1.0b3.orig/debian/emacsen-install +++ rnc-mode-1.0b3/debian/emacsen-install @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/rnc-mode + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=rnc-mode + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 --- rnc-mode-1.0b3.orig/debian/emacsen-remove +++ rnc-mode-1.0b3/debian/emacsen-remove @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/rnc-mode + +FLAVOR=$1 +PACKAGE=rnc-mode + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/rnc-mode.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- rnc-mode-1.0b3.orig/debian/dirs +++ rnc-mode-1.0b3/debian/dirs @@ -0,0 +1 @@ +usr/share/emacs/site-lisp/rnc-mode --- rnc-mode-1.0b3.orig/debian/rules +++ rnc-mode-1.0b3/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #$(MAKE) + #docbook-to-man debian/rnc-mode.sgml > rnc-mode.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/rnc-mode. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/rnc-mode + cp rnc-mode.el $(CURDIR)/debian/rnc-mode/usr/share/emacs/site-lisp/rnc-mode/ + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate + dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- rnc-mode-1.0b3.orig/debian/control +++ rnc-mode-1.0b3/debian/control @@ -0,0 +1,14 @@ +Source: rnc-mode +Section: editors +Priority: optional +Maintainer: Chris Lawrence +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: rnc-mode +Architecture: all +Depends: emacs21 | emacsen +Suggests: nxml-mode +Description: Emacs editing mode for RELAX NG Compact syntax + This package provides a major mode in Emacs for editing RELAX NG + Compact syntax, a schema language for XML. --- rnc-mode-1.0b3.orig/debian/emacsen-startup +++ rnc-mode-1.0b3/debian/emacsen-startup @@ -0,0 +1,24 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian rnc-mode package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The rnc-mode package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/rnc-mode"))) + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)))) + +(autoload 'rnc-mode "rnc-mode" "Relax NG Compact schema editing mode." t) + +(setq auto-mode-alist + (cons '("\\.rnc\\'" . rnc-mode) + auto-mode-alist))