datamash-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. %define pkg_name datamash
  2. %define pkg_version 1.1.0
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: A statistics tool for command-line interface
  5. Name: %{pkg_name}
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. License: GPLv3+
  9. Group: Applications/Edutainment
  10. URL: https://www.gnu.org/software/datamash/
  11. Source0: http://ftp.gnu.org/gnu/datamash/%{name}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: ara_t
  16. %description
  17. GNU datamash is a command-line program which performs basic numeric,
  18. textual and statistical operations on input textual data files.
  19. GNU datamash is designed for ease of use, strict input validation,
  20. and robust operation. If datamash is not available, some operations
  21. could be performed using existing software (such as awk, Perl, R).
  22. Using Datamash has the following advantages over simple one-liners:
  23. - Datamash performs strict input validation on the input, and provides
  24. informative error messages when invalid input is found.
  25. - Datamash operations are simpler to type, and less error-prone than
  26. writing one-liners.
  27. - Datamash supports header lines (-H/--headers) on all operations.
  28. - Datamash supports printing the entire line (-f/--full), not just
  29. the field being processed.
  30. - Datamash's output is suitable for both interactive command-line usage,
  31. and for scripting, automation and down-stream processing by other tools.
  32. GNU datamash is a command-line program which performs basic numeric,
  33. textual and statistical operations on input textual data files.
  34. #'
  35. %prep
  36. %{__rm} -rf ${RPM_BUILD_ROOT}
  37. %setup -q
  38. %{configure}
  39. %build
  40. %{__make} %{?_smp_mflags}
  41. %install
  42. %{make_install}
  43. %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir
  44. %check
  45. %{__make} %{?_smp_mflags} check
  46. %clean
  47. %{__rm} -rf ${RPM_BUILD_ROOT}
  48. %post
  49. %{_syssbindir}/install-info --info-dir=%{_infodir} \
  50. %{_infodir}/datamash.info.gz || :
  51. %preun
  52. if [ "$1" = "0" ]; then
  53. %{_syssbindir}/install-info --delete --info-dir=%{_infodir} \
  54. %{_infodir}/datamash.info.gz || :
  55. fi
  56. %files
  57. %defattr(-, root, root)
  58. %doc ABOUT-NLS AUTHORS COPYING ChangeLog NEWS
  59. %doc README README-release THANKS TODO
  60. %{_bindir}/
  61. %{_datadir}/%{name}/
  62. %{_datadir}/info/
  63. %{_datadir}/locale/
  64. %{_mandir}/man1/
  65. %changelog
  66. * Sun Jul 31 2016 Toshiaki Ara <ara_t@384.jp> 1.1.0-1
  67. - new package