--- /dev/null
+Name: python-magic
+Version: 5.39
+Release: 0
+Url: http://www.darwinsys.com/file/
+Summary: Python module to use libmagic
+License: BSD-2-Clause
+Group: Platform Development/Python
+Source: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
+Source1001: python-magic.manifest
+BuildRequires: findutils
+BuildRequires: libtool
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: zlib-devel
+
+BuildArch: noarch
+
+%description
+This package contains the python binding that require the magic "file"
+interface.
+
+%prep
+%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} ./%{name}.manifest
+
+%build
+pushd python
+python setup.py build
+popd
+
+%install
+pushd python
+python setup.py install --root=%{buildroot} \
+ --prefix=%{_prefix}
+popd
+
+%files
+%defattr(-,root,root)
+%manifest %{name}.manifest
+%license python/LICENSE
+%{python_sitelib}/file_magic-*.egg-info/*
+%{python_sitelib}/magic.*