File nxml-mode.spec of Package nxml-mode
#
# spec file for package nxml-mode (Version 20041004)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: nxml-mode
BuildRequires: emacs-nox
Url: http://www.thaiopensource.com/nxml-mode/
License: GPL v2 or later
Group: Productivity/Editors/Emacs
Requires: emacs_program
AutoReqProv: on
Summary: New Emacs Add-On for Editing XML Documents
Version: 20041004
Release: 244
Source: http://www.thaiopensource.com/download/%{name}-%{version}.tar.gz
Source1: suse-start-%{name}.el
# Patch: emacs-nxml-mode-fill.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
nxml-mode is a new major mode for GNU Emacs that allows you to edit XML
documents. It supports editing well-formed XML documents and also
provides schema-sensitive editing of XML documents using the RELAX NG
Compact Syntax.
To use this, you need the GNU Emacs version 21.x, preferably 21.3.
XEmacs will not work properly.
Authors:
--------
James Clark <jjc@jclark.com>
%prep
%setup -q
cp -p %{S:1} .
# %patch -p 1
%build
#autoreconf
#./configure --prefix=%{_prefix} --infodir=%{_infodir}
make # emacs
%install
[ -z $RPM_BUILD_ROOT ] || rm -fr $RPM_BUILD_ROOT
install -d -m755 $RPM_BUILD_ROOT%{_prefix}/share/emacs/site-lisp/%{name} \
$RPM_BUILD_ROOT%{_infodir}
# to avoid timestamp problems, install .el files first.
install -p -m644 *.el $RPM_BUILD_ROOT%{_prefix}/share/emacs/site-lisp/%{name}
install -p -m644 *.elc $RPM_BUILD_ROOT%{_prefix}/share/emacs/site-lisp/%{name}
cp -a char-name $RPM_BUILD_ROOT%{_prefix}/share/emacs/site-lisp/%{name}
rm -f $RPM_BUILD_ROOT%{_prefix}/share/emacs/site-lisp/%{name}/suse-start*
install -p -m644 *.xml $RPM_BUILD_ROOT%{_prefix}/share/emacs/site-lisp/%{name}
cp -a schema $RPM_BUILD_ROOT%{_prefix}/share/emacs/site-lisp/%{name}
install -p -m644 *.info $RPM_BUILD_ROOT%{_infodir}
install -p -m644 suse-start-%{name}.el \
$RPM_BUILD_ROOT%{_prefix}/share/emacs/site-lisp/suse-start-%{name}.el
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING NEWS README TODO
# %doc *.xml
# %doc schema
%config %{_prefix}/share/emacs/site-lisp/suse-start-%{name}.el
%{_prefix}/share/emacs/site-lisp/%{name}
%doc %{_infodir}/*.info*
%changelog
* Mon Jun 18 2007 ke@suse.de
- Drop obsolete Mule-UCS conflict setting; reported by Jochen Hayek.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jul 26 2005 ke@suse.de
- Require 'emacs_program'.
* Mon Jul 18 2005 ke@suse.de
- Install unicode character name definitions to enable inserting unicode
characters by name; reported by Thomas Schraitle.
* Fri Oct 08 2004 ke@suse.de
- Update to version 20041004; News since 20040726:
* Add support for outlining.
* Indentation has been rewritten. Indentation of attribute names and
values should work better. The default value of
'nxml-attribute-indent' has been changed to 4.
* Syntax highlighting with a dark background should now work.
* C-u C-c C-n goes to the first error.
* C-c RET splits the current element as in PSGML.
* Mon Jul 26 2004 ke@suse.de
- Update to version 20040726; for more detailed info cf. the NEWS
file. Important changes since 20031018:
* The mechanism for locating the schema has changed completely
* The schema related bindings have been changed.
* There's now an XML menu on the menu-bar.
* C-c C-d "dynamically" chooses a tag to put around the word before
point, rather like M-/.
* C-c C-a is now bound to rng-auto-set-schema.
- Call install-info macro.
* Mon May 10 2004 ke@suse.de
- Add "Conflicts:" with Mule-UCS; reported by Robert Schiele [#40245].
* Fri Feb 06 2004 hmacht@suse.de
- build as normal user
* Mon Oct 20 2003 ke@suse.de
- Update to version 20031018.
* Mon Oct 06 2003 ke@suse.de
- New package: Version 20030929.