%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-mms
Version: 0.1
Release: 1%{?dist}
Summary: Python MMS creation/manipulation library
Group: Development/Languages
License: LGPL
URL: http://python-mms.sourceforge.net
Source0: http://dl.sourceforge.net/sourceforge/python-mms/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%description
python-mms is a Multimedia Messaging Service (MMS) library for Python. It
provides a "mms" module for Python, consisting of classes that facilitate the
creation, manipulation and encoding/decoding of MMS messages used in mobile
phones. It is designed to be easy to use, yet flexible.
The package also includes some examples of how the library can be used.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README examples
# For noarch packages: sitelib
%{python_sitelib}/*
%changelog
* Fri Jul 13 2007 Francois Aucamp <faucamp@csir.co.za> - 0.1-1
- Initial RPM build