File ldtp.spec of Package ldtp

#
# spec file for package ldtp (Version 2.1.0)
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           ldtp
Version:        2.1.0
Release:        1
License:        GPLv2+ ; LGPLv2.1+
Summary:        Linux Desktop Testing Project (LDTP)
Url:            http://ldtp.freedesktop.org
Group:          Productivity/Other
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  python
# pyatspi is a virtual name that is provided by the default at-spi stack
Requires:       pyatspi
Requires:       python-gnome
Requires:       python-gtk
Requires:       python-twisted-web
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{suse_version} > 1110
BuildArch:      noarch
%endif
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif

%description
The GNU/Linux Desktop Testing Project (GNU LDTP) aims to produce a
high quality test automation framework with cutting-edge tools that
can be used to test and improve the GNU/Linux or Solaris desktops.
It uses the Accessibility libraries to discover through the
application's user interface. The framework also has tools to
record test-cases based on user actions in an application.

%prep
%setup -q

%build
%{__python} setup.py build

%install
%{__python} setup.py install --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
%fdupes %{buildroot}/%{python_sitelib}

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS README COPYING
%{_bindir}/ldtp
%{python_sitelib}/ldtp/
%{python_sitelib}/ldtpd/
%{python_sitelib}/ldtputils/
%{python_sitelib}/ooldtp/
%{python_sitelib}/ldtp-%{version}-*.egg-info

%changelog
openSUSE Build Service is sponsored by