File tclxml.spec of Package tclxml

%def_with doc

Name: tclxml
Summary: XML parsing for the Tcl
Version: 3.3
Release: 2
License: BSD
Group: Development/Libraries/Tcl
Source: %name-%version.tar.gz
Requires: tcl libxml2 tcllib

BuildRequires: autoconf tcl-devel tcllib libxml2-devel libxslt-devel

%define pname Tclxml%version

TclXML provides XML support for the Tcl scripting language. It also provides a
DOM API. Integration with libxml2 adds XSLT, XML Schemas and Relax NG.

%package devel
Group: Development/Libraries/Tcl
Summary: The %name runtime library development files
Requires: %name = %version

%description devel
The %name runtime library development files.

%setup -q

%configure \
	--libdir=%tcl_archdir \
	--with-tcl=%_libdir \
make %{?_smp_mflags}
%if_with doc
ln -s tclxml-tcl/{{sgml,tclparser,xml}-8.1,sgmlparser,xml__tcl}.tcl ./
make %{?_smp_mflags} TCLSH_PROG=tclsh doc

gzip -9c ChangeLog > ChangeLog.gz


%if_with doc
install -d -m 0755 %buildroot%_mandir/mann
install -p -m 0644 doc/*.n %buildroot%_mandir/mann/

chmod 0644 %buildroot%tcl_archdir/%pname/*.a

%defattr(-, root, root)
%doc ANNOUNCE ChangeLog.* LICENSE README.html %{?_with_doc:doc/*.html}
%exclude %tcl_archdir/%pname/*.a

%files devel
%defattr(-, root, root)

openSUSE Build Service is sponsored by