]> git.pld-linux.org Git - packages/emacs-psgml.git/blob - emacs-psgml.spec
- rel 1
[packages/emacs-psgml.git] / emacs-psgml.spec
1 Summary:        A GNU Emacs major mode for editing SGML documents
2 Name:           emacs-psgml
3 Version:        1.2.5
4 Release:        1
5 License:        GPL
6 Group:          Applications/Editors/Emacs
7 Source0:        ftp://ftp.lysator.liu.se/pub/sgml/psgml-%{version}.tar.gz
8 # Source0-md5:  d4f346b0242035e54860b29d7466b0a2
9 Patch0:         %{name}-install-info.patch
10 Patch1:         %{name}-DESTDIR.patch
11 Requires:       emacs
12 Requires:       sgml-common
13 BuildRequires:  emacs
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define psgmldir %{_datadir}/emacs/site-lisp/psgml/
18
19 %description
20 Emacs is an advanced and extensible editor. An Emacs major mode
21 customizes Emacs for editing particular types of text documents. PSGML
22 is a major mode for SGML (a markup language) documents. PSGML provides
23 several functionalities for editing SGML documents: indentation
24 according to element nesting depth and identification of structural
25 errors (but it is not a validating SGML parser); menus and commands
26 for inserting tags with only the contextually valid tags; attribute
27 values can be edited in a separate window with information about types
28 and defaults; structure based editing includes movement and killing;
29 and 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
43 rm -rf $RPM_BUILD_ROOT
44 install -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
50 cat > $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.
58 The files are in the format defined in the SGML Open Draft Technical
59 Resolution on Entity Management.")
60 (put 'sgml-catalog-files 'sgml-type 'list)
61 __ELISP__
62
63
64 %clean
65 rm -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.076239 seconds and 3 git commands to generate.