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: python3-devel
  9. BuildArch: noarch
  10. Requires: less
  11. Requires: python%{python3_pkgversion}-%{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 python3-%{name}
  17. Summary: %{summary}
  18. %{?python_provide:%python_provide python3-%{name}}
  19. %description -n python3-%{name}
  20. Python library that implements API used by ydiff tool.
  21. %prep
  22. %autosetup -n %{name}-%{version}
  23. /usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py
  24. %build
  25. %py3_build
  26. %install
  27. %py3_install
  28. %files
  29. %doc README.rst
  30. %license LICENSE
  31. %{_bindir}/ydiff
  32. %files -n python3-%{name}
  33. %{python3_sitelib}/__pycache__/*
  34. %{python3_sitelib}/%{name}.py
  35. %{python3_sitelib}/%{name}-%{version}-py?.?.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__