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
Url: http://%name.sourceforge.net/
Requires: tcl libxml2 tcllib

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

%define pname Tclxml%version

%description
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.


%prep
%setup -q


%build
%configure \
	--libdir=%tcl_archdir \
	--with-tcl=%_libdir \
	--disable-threads
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
%endif

gzip -9c ChangeLog > ChangeLog.gz


%install
%make_install

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

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


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


%files devel
%defattr(-, root, root)
%_includedir/*
%tcl_archdir/%pname/*.a
%tcl_archdir/*.sh
%{?_with_doc:%_mandir/mann/*}


%changelog
openSUSE Build Service is sponsored by