python-xmldiff-vl.spec 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: python-xmldiff
  3. Version: 0.6.9
  4. Release: 2%{?_dist_release}
  5. Summary: Python classes to diff XML files
  6. Group: System Environment/Libraries
  7. License: GPL
  8. URL: http://moblin.org/projects/clutter-gesture
  9. Source0: ftp://ftp.logilab.org/pub/xmldiff/xmldiff-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildRequires: python-devel
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. Packager: Takemikaduchi
  15. %description
  16. XMLdiff is a python tool that figures out the differences between two similar
  17. XML files, in the same way the diff utility does it for text files. It was
  18. developed for the Narval project and could also be used as a library or as a
  19. command line tool. It can work either with XML files or DOM trees
  20. %prep
  21. %setup -q -n xmldiff-%{version}
  22. %build
  23. export CFLAGS="%{optflags}"
  24. python setup.py build
  25. %install
  26. rm -rf %{buildroot}
  27. python setup.py install --root=%{buildroot} --record=INSTALLED_FILES
  28. rm -rf %{buildroot}%{_libdir}/python%{pyver}/site-packages/%{module}/test
  29. chmod 755 %{buildroot}%{_bindir}/*
  30. %clean
  31. rm -rf %{buildroot}
  32. %files
  33. %defattr(-,root,root,-)
  34. %doc README
  35. %{_bindir}/xmldiff
  36. %{_bindir}/xmlrev
  37. %{python_sitearch}/xmldiff/*
  38. %{python_sitearch}/xmldiff-%{version}-py%{pyver}.egg-info
  39. %{_datadir}/sgml/stylesheet/xmldiff/*
  40. %changelog
  41. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.9-2
  42. - rebuild with python-2.7.2
  43. * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.9-1
  44. - initial build for Vine Linux