File tcl-dbus.spec of Package tcl-dbus
#
# spec file for package tcl-dbus
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Guido Berhoerster.
#
# 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/
#
%define upstream_name dbus
Name: tcl-dbus
Version: 2.0
Release: 0
License: SUSE-Permissive
Summary: Tcl Library for Interacting with DBus
Url: http://dbus-tcl.sourceforge.net/
Group: Development/Languages/Tcl
Source: %{upstream_name}-%{version}.tar.gz
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkg-config
BuildRequires: tcl-devel
BuildRequires: tcllib
Requires: tcl
Provides: dbus-tcl = %{version}
Obsoletes: dbus-tcl <= 1.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
DBus-Tcl is a Tcl library for interacting with the DBus, a popular system for
applications to talk to eachother. DBus can also be used to coordinate the
lifecycle of a process. For more information about DBus, see
http://www.freedesktop.org/wiki/Software/dbus
%prep
%setup -q -n %{upstream_name}-%{version}
%build
%configure
make %{?_smp_mflags}
%install
%make_install pkglibdir=%{tcl_archdir}/%{upstream_name}%{version}
rm -r %{buildroot}%{_datadir}/doc/%{upstream_name}
mkdir html
cp -p doc/*.html html
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog README license.terms html/
%{tcl_archdir}/%{upstream_name}%{version}
%doc %{_mandir}/mann/*.n*
%changelog