]> git.pld-linux.org Git - packages/emacs-psgml.git/blame - emacs-psgml.spec
- initial revision
[packages/emacs-psgml.git] / emacs-psgml.spec
CommitLineData
bb98b827
JR
1Summary: A GNU Emacs major mode for editing SGML documents
2Name: emacs-psgml
3Version: 1.2.5
4Release: 0.1
5License: GPL
6Group: Applications/Editors/Emacs
7Source0: ftp://ftp.lysator.liu.se/pub/sgml/psgml-%{version}.tar.gz
8# Source0-md5: d4f346b0242035e54860b29d7466b0a2
9Patch0: %{name}-install-info.patch
10Patch1: %{name}-DESTDIR.patch
11Requires: emacs
12Requires: sgml-common
13BuildRequires: emacs
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%define psgmldir %{_datadir}/emacs/site-lisp/psgml/
18
19%description
20Emacs is an advanced and extensible editor. An Emacs major mode
21customizes Emacs for editing particular types of text documents. PSGML
22is a major mode for SGML (a markup language) documents. PSGML provides
23several functionalities for editing SGML documents: indentation
24according to element nesting depth and identification of structural
25errors (but it is not a validating SGML parser); menus and commands
26for inserting tags with only the contextually valid tags; attribute
27values can be edited in a separate window with information about types
28and defaults; structure based editing includes movement and killing;
29and also several commands for folding editing.
30
31%prep
32%setup -q -n psgml-%{version}
33%patch0 -p1
34%patch1 -p1
35
36%build
37%configure2_13
38
39%{__make} \
40 lispdir=%{_datadir}/emacs/site-lisp/psgml
41
42%install
43rm -rf $RPM_BUILD_ROOT
44install -d $RPM_BUILD_ROOT{%{_infodir},%{_datadir}/emacs/site-lisp/site-start.d}
45
46%{__make} install install-info \
47 lispdir=%{_datadir}/emacs/site-lisp/psgml \
48 DESTDIR=$RPM_BUILD_ROOT
49
50cat > $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/psgml-init.el << __ELISP__
51(setq load-path (append load-path '("%{_datadir}/emacs/site-lisp/psgml")))
52
53(autoload 'sgml-mode "psgml" "Major mode for editing SGML." t)
54(autoload 'xml-mode "psgml" "Major mode for editing XML." t)
55(if (not (getenv "SGML_CATALOG_FILES"))
56(defvar sgml-catalog-files '("CATALOG" "catalog" "%{_sysconfdir}/sgml/catalog" "%{_prefix}/lib/sgml/CATALOG" "%{_prefix}/lib/sgml-tools/dtd/catalog"))
57 "*List of catalog entry files.
58The files are in the format defined in the SGML Open Draft Technical
59Resolution on Entity Management.")
60(put 'sgml-catalog-files 'sgml-type 'list)
61__ELISP__
62
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%post
68[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
69
70%postun
71[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
72
73%files
74%defattr(644,root,root,755)
75%doc psgml.ps README.psgml
76%dir %{psgmldir}
77%{psgmldir}/*
78%{_datadir}/emacs/site-lisp/site-start.d/*
79%{_infodir}/psgml*
This page took 0.099176 seconds and 4 git commands to generate.