File python-dialog.spec of Package python-dialog

#
# spec file for package python-dialog (Version 2.7)
#
# Copyright (c) 2009 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:           python-dialog
BuildRequires:  python-devel
%define tarname pythondialog
Summary:        A Python interface to the Unix dialog utility
Version:        2.7
Release:        200
Source0:        %{tarname}-%{version}.tar.bz2
License:        LGPL v2.1 or later
Group:          Development/Libraries/Python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Prefix:         %{_prefix}
Url:            http://pythondialog.sourceforge.net/
%py_requires
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:      noarch
%endif

%description
A Python interface to the Unix dialog utility, designed to provide an
easy, pythonic and as complete as possible way to use the dialog
features from Python code.



Authors:
--------
    Peter Astrand <peter@cendio.se> (current maintainer)
    Robb Shecter <robb@acm.org>
    Sultanbek Tezadov (http://sultan.da.ru/)
    Florent Rougon <flo@via.ecp.fr>

%prep
%setup -n %{tarname}-%{version}

%build
rm setup.cfg
CFLAGS="$RPM_OPT_FLAGS" python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc AUTHORS PKG-INFO  TODO demo.py COPYING README

%changelog
openSUSE Build Service is sponsored by