Script to trigger re-build of ydiff - https://github.com/ymattw/ydiff

ydiff.spec.in 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Name: ydiff
  2. Version: __APP_VERSION__
  3. Release: __APP_RELEASE__%{?dist}
  4. Summary: View colored, incremental diff
  5. URL: https://github.com/ymattw/ydiff
  6. License: BSD
  7. Source0: __APP_URLBASE__/archive/%{version}/%{name}-%{version}.tar.gz
  8. BuildRequires: python2-devel
  9. BuildRequires: python3-devel
  10. BuildArch: noarch
  11. Requires: less
  12. Requires: python%{python3_pkgversion}-%{name}
  13. %description
  14. Term based tool to view colored, incremental diff in a Git/Mercurial/Svn
  15. workspace or from stdin, with side by side (similar to diff -y) and auto
  16. pager support.
  17. %package -n python2-%{name}
  18. Summary: %{summary}
  19. %description -n python2-%{name}
  20. Python library that implements API used by ydiff tool.
  21. %package -n python3-%{name}
  22. Summary: %{summary}
  23. %{?python_provide:%python_provide python3-%{name}}
  24. %description -n python3-%{name}
  25. Python library that implements API used by ydiff tool.
  26. %prep
  27. %autosetup -n %{name}-%{version}
  28. /usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py
  29. %build
  30. %py2_build
  31. %py3_build
  32. %install
  33. %py2_install
  34. %py3_install
  35. %files
  36. %doc README.rst
  37. %license LICENSE
  38. %{_bindir}/ydiff
  39. %files -n python2-%{name}
  40. %{python2_sitelib}/%{name}.py
  41. %{python2_sitelib}/%{name}.pyc
  42. %{python2_sitelib}/%{name}.pyo
  43. %{python2_sitelib}/%{name}-*.egg-info
  44. %files -n python3-%{name}
  45. %{python3_sitelib}/__pycache__/*
  46. %{python3_sitelib}/%{name}.py
  47. %{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
  48. %changelog
  49. * __APP_DATE__ Alois Mahdal <netvor+ydiff@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
  50. - Unofficial experimental RPM pseudo-release
  51. # spec file generated from __APP_BUILDSCRIPT_VERSION__