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

ydiff.spec.in 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. BuildArch: noarch
  10. Requires: less
  11. Requires: python2-%{name}
  12. %description
  13. Term based tool to view colored, incremental diff in a Git/Mercurial/Svn
  14. workspace or from stdin, with side by side (similar to diff -y) and auto
  15. pager support.
  16. %package -n python2-%{name}
  17. Summary: %{summary}
  18. %description -n python2-%{name}
  19. Python library that implements API used by ydiff tool.
  20. %prep
  21. %autosetup -n %{name}-%{version}
  22. /usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py
  23. %build
  24. %py2_build
  25. %install
  26. %py2_install
  27. %files
  28. %doc README.rst
  29. %license LICENSE
  30. %{_bindir}/ydiff
  31. %files -n python2-%{name}
  32. %{python2_sitelib}/%{name}.py
  33. %{python2_sitelib}/%{name}.pyc
  34. %{python2_sitelib}/%{name}.pyo
  35. %{python2_sitelib}/%{name}-*.egg-info
  36. %changelog
  37. * __APP_DATE__ Alois Mahdal <netvor+ydiff@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
  38. - Unofficial experimental RPM pseudo-release
  39. # spec file generated from __APP_BUILDSCRIPT_VERSION__