Name: python-xml2dict Version: 1.0 Release: 1%{?dist} Summary: Use attributes of dictionary to access XML elements Group: Development/Libraries License: BSD URL: http://code.google.com/p/xml2dict/ Source0: http://yuwang.fedorapeople.org/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools %description Use attributes of dictionary to access XML elements. %prep %setup -q -n %{name}-%{version} sed -i "s|\r||g" PKG-INFO %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install %{__python} setup.py install --skip-build --root="$RPM_BUILD_ROOT" %clean rm -rf $RPM_BUILD_ROOT %files %doc README PKG-INFO %{python_sitelib}/ %{python_sitelib}/xml2dict*.egg-info %changelog * Mon Aug 8 2011 Yuguang Wang - 1.0-1 - Initial RPM release