]> git.pld-linux.org Git - packages/emacs-psgml.git/commitdiff
- initial revision
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 4 Feb 2008 18:03:33 +0000 (18:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    emacs-psgml.spec -> 1.1

emacs-psgml.spec [new file with mode: 0644]

diff --git a/emacs-psgml.spec b/emacs-psgml.spec
new file mode 100644 (file)
index 0000000..aeaba08
--- /dev/null
@@ -0,0 +1,79 @@
+Summary:       A GNU Emacs major mode for editing SGML documents
+Name:          emacs-psgml
+Version:       1.2.5
+Release:       0.1
+License:       GPL
+Group:         Applications/Editors/Emacs
+Source0:       ftp://ftp.lysator.liu.se/pub/sgml/psgml-%{version}.tar.gz
+# Source0-md5: d4f346b0242035e54860b29d7466b0a2
+Patch0:                %{name}-install-info.patch
+Patch1:                %{name}-DESTDIR.patch
+Requires:      emacs
+Requires:      sgml-common
+BuildRequires: emacs
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define psgmldir %{_datadir}/emacs/site-lisp/psgml/
+
+%description
+Emacs is an advanced and extensible editor. An Emacs major mode
+customizes Emacs for editing particular types of text documents. PSGML
+is a major mode for SGML (a markup language) documents. PSGML provides
+several functionalities for editing SGML documents: indentation
+according to element nesting depth and identification of structural
+errors (but it is not a validating SGML parser); menus and commands
+for inserting tags with only the contextually valid tags; attribute
+values can be edited in a separate window with information about types
+and defaults; structure based editing includes movement and killing;
+and also several commands for folding editing.
+
+%prep
+%setup -q -n psgml-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%configure2_13
+
+%{__make} \
+       lispdir=%{_datadir}/emacs/site-lisp/psgml
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_infodir},%{_datadir}/emacs/site-lisp/site-start.d}
+
+%{__make} install install-info \
+       lispdir=%{_datadir}/emacs/site-lisp/psgml \
+       DESTDIR=$RPM_BUILD_ROOT
+
+cat > $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/psgml-init.el << __ELISP__
+(setq load-path (append load-path '("%{_datadir}/emacs/site-lisp/psgml")))
+
+(autoload 'sgml-mode "psgml" "Major mode for editing SGML." t)
+(autoload 'xml-mode "psgml" "Major mode for editing XML." t)
+(if (not (getenv "SGML_CATALOG_FILES"))
+(defvar sgml-catalog-files '("CATALOG" "catalog" "%{_sysconfdir}/sgml/catalog" "%{_prefix}/lib/sgml/CATALOG" "%{_prefix}/lib/sgml-tools/dtd/catalog"))
+  "*List of catalog entry files.
+The files are in the format defined in the SGML Open Draft Technical
+Resolution on Entity Management.")
+(put 'sgml-catalog-files 'sgml-type 'list)
+__ELISP__
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%files
+%defattr(644,root,root,755)
+%doc psgml.ps README.psgml
+%dir %{psgmldir}
+%{psgmldir}/*
+%{_datadir}/emacs/site-lisp/site-start.d/*
+%{_infodir}/psgml*
This page took 0.067288 seconds and 4 git commands to generate.