File tclxml.spec of Package tclxml

#
# spec file for package tclxml
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


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

BuildRequires:  autoconf
BuildRequires:  libxml2-devel
BuildRequires:  libxslt-devel
BuildRequires:  tcl-devel
BuildRequires:  tcllib
# BuildRequires: %name

%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
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%configure \
	--libdir=%tcl_archdir \
	--with-tcl=%_libdir
make %{?_smp_mflags}
make %{?_smp_mflags} TCLSH=tclsh doc

%install
%make_install

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

rm -f %buildroot%tcl_archdir/%pname/*.a

ls -lR %buildroot

%files
%defattr(-, root, root)
%doc ANNOUNCE
%doc ChangeLog
%license LICENSE
# README.html doc/*.html
%tcl_archdir/%pname

%files devel
%defattr(-, root, root)
%_includedir/*
%tcl_archdir/*.sh
# %_mandir/mann/*

%changelog
openSUSE Build Service is sponsored by