File rxp.spec of Package rxp

# spec file for package rxp (Version 1.4.8)
# 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

# norootforbuild

Name:           rxp
License:        GPL v2 or later
Group:          Productivity/Publishing/XML
AutoReqProv:    on
Summary:        XML Parser in C
Version:        1.4.8
Release:        71
Patch0:         rxp-1.4.8.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The current version of RXP supports XML 1.1, Namespaces 1.1, xml:id,
and XML Catalogs. To use an XML Catalog, set the environment variable
XML_CATALOG_FILES to a space-separated list of catalog files.

RXP was written by Richard Tobin at the Language Technology Group,
Human Communication Research Centre, University of Edinburgh.

A simple application (called rxp) is provided. It parses and writes XML
data, optionally expanding entities, defaulting attributes, and
translating to a different output encoding.

Bug reports should be sent to

    Richard Tobin <>

%setup -q
%patch0 -p1

mv Makefile Makefile.orig
%{__sed} -e 's/^LIBS:/\#LIBS:/'  Makefile.orig > Makefile
%{__make} "DEBUG=%{optflags}" # CHAR_SIZE=8

%{__install} -d -m755 %{buildroot}
%{__install} -d -m755 %{buildroot}/usr/bin
%{__install} -d -m755 %{buildroot}%{_mandir}/man1
%{__install} -m755 rxp %{buildroot}/usr/bin
%{__install} -m644 rxp.1 %{buildroot}%{_mandir}/man1

%{__rm} -rf %{buildroot}

%defattr(-, root, root)
%doc COPYRIGHT COPYING Manual Threads
%doc %{_mandir}/man1/*

* Tue Jun 16 2009
- fix build with glibc 2.10
* Tue Aug 07 2007
- update to version 1.4.8 with some bugfixes
- spec file cleanup
- make autobuild 100%% happy
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Thu Sep 08 2005
- Remove executable bit from manpage.  Reported by Martin Lasarsch
* Fri Apr 29 2005
- Update to 1.4.4.
* Thu Aug 05 2004
- Update to version 1.4.0:
  - Bug fixes (memory leaks etc.).
  - Fix namespace handling.
  - Speedup.
* Wed Feb 25 2004
- building as non-root
* Tue Jul 01 2003
- don't use $RPM_PACKAGE_NAME
* Tue Sep 17 2002
- removed bogus self-provides
* Fri Sep 29 2000
- Update to version 1.2.
- Use _mandir macro.
* Thu Feb 24 2000
- General spec file cleanup:
- Add group tag.
- Move manpage -> /usr/share.
- Move suse_chekc to the end of %%install.
* Mon Sep 13 1999
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Jun 10 1999
- initial package: version 1.0.7
openSUSE Build Service is sponsored by