cvsextras 60d51f
%define pyver %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")
cvsextras 60d51f
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
cvsextras 60d51f
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
cvsextras 60d51f
cvsextras 60d51f
Name:           python-dialog
b305f4
Version:        2.7
01920b
Release:        1.fc4
cvsextras 60d51f
Summary:        Python interface to the Unix dialog utility
cvsextras 60d51f
cvsextras 60d51f
Group:          Development/Languages
cvsextras 60d51f
License:        LGPL
b305f4
URL:            http://pythondialog.sourceforge.net
b305f4
Source0:        http://dl.sf.net/pythondialog/pythondialog-2.7.tar.bz2
cvsextras 60d51f
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsextras 60d51f
cvsextras 60d51f
BuildArch:      noarch
cvsextras 60d51f
BuildRequires:  python-devel
cvsextras 60d51f
Requires:       python-abi = %{pyver}
cvsextras 60d51f
Requires:       dialog
cvsextras 60d51f
cvsextras 60d51f
%description
cvsextras 60d51f
A Python interface to the Unix dialog utility, designed to provide an
cvsextras 60d51f
easy, pythonic and as complete as possible way to use the dialog
cvsextras 60d51f
features from Python code.
cvsextras 60d51f
cvsextras 60d51f
%prep
b305f4
%setup -q -n pythondialog-%{version}
cvsextras 60d51f
cvsextras 60d51f
cvsextras 60d51f
%build
cvsextras 60d51f
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
cvsextras 60d51f
cvsextras 60d51f
cvsextras 60d51f
%install
cvsextras 60d51f
rm -rf $RPM_BUILD_ROOT
cvsextras 60d51f
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix}
cvsextras 60d51f
5d440d
cvsextras 60d51f
%clean
cvsextras 60d51f
rm -rf $RPM_BUILD_ROOT
cvsextras 60d51f
cvsextras 60d51f
cvsextras 60d51f
%files
cvsextras 60d51f
%defattr(-,root,root,-)
b305f4
%doc demo.py AUTHORS COPYING DEBUGGING README TODO
b305f4
%{python_sitelib}/dialog.py
b305f4
%{python_sitelib}/dialog.pyc
b305f4
%ghost %{python_sitelib}/dialog.pyo
cvsextras 60d51f
cvsextras 60d51f
cvsextras 60d51f
%changelog
01920b
* Wed Mar 30 2005 Aurelien Bompard <gauret[AT]free.fr> 2.7-1.fc4
01920b
- change release tag for FC4
01920b
- drop Epoch
01920b
b305f4
* Thu Feb 10 2005 Aurelien Bompard <gauret[AT]free.fr> 0:2.7-1
b305f4
- update to version 2.7
b305f4
- update URL
b305f4
b305f4
* Sat Feb 05 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0:2.0.6-2
b305f4
- Change %%python_sitearch to %%python_sitelib as sitearch references
b305f4
  /usr/lib64 on x86_64 multilib and the python files install to /usr/lib.
5d440d
cvsextras 60d51f
* Sat Jul 24 2004 Aurelien Bompard <gauret[AT]free.fr> 0:2.06-0.fdr.1
cvsextras 60d51f
- Initial Fedora Package