txt2man-vl.spec 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Name: txt2man
  2. Version: 1.5.6
  3. Release: 1%{?_dist_release}
  4. Summary: Convert flat ASCII text to man page format
  5. Group: Applications/Text
  6. License: GPLv2+
  7. URL: http://mvertes.free.fr/txt2man/
  8. Source0: http://mvertes.free.fr/download/%{name}-%{version}.tar.gz
  9. #Fixes bug with bashisms in /bin/sh script, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473696
  10. #Patch0: txt2man-1.5.5-fixbashisms.patch
  11. # Fixes same bug as above, but code was changed in new release so old patch
  12. # no longer worked.
  13. Patch1: txt2man-1.5.6-fixbashisms.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15. BuildArch: noarch
  16. Requires: gawk
  17. %description
  18. tx2man is a shell script using gnu awk, that should run on any
  19. Unix-like system. The syntax of the ASCII text is very straightforward
  20. and looks very much like the output of the man(1) program.
  21. %prep
  22. %setup -q
  23. #%patch0 -p1
  24. %patch1
  25. %build
  26. #no build needed
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. #manual install
  30. install -p -m 0755 -D bookman $RPM_BUILD_ROOT%{_bindir}/bookman
  31. install -p -m 0755 -D src2man $RPM_BUILD_ROOT%{_bindir}/src2man
  32. install -p -m 0755 -D txt2man $RPM_BUILD_ROOT%{_bindir}/txt2man
  33. install -p -m 0644 -D bookman.1 $RPM_BUILD_ROOT%{_mandir}/man1/bookman.1
  34. install -p -m 0644 -D src2man.1 $RPM_BUILD_ROOT%{_mandir}/man1/src2man.1
  35. install -p -m 0644 -D txt2man.1 $RPM_BUILD_ROOT%{_mandir}/man1/txt2man.1
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-,root,root,-)
  40. %doc COPYING Changelog README
  41. %{_bindir}/*
  42. %{_mandir}/man?/*
  43. %changelog
  44. * Sun Jan 18 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.6-1
  45. - initial build for Vine Linux
  46. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-4
  47. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  48. * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-3
  49. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  50. * Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-2
  51. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  52. * Mon May 09 2011 Adam Miller <maxamillion@fedoraproject.org> - 1.5.6-1
  53. - New upstream release, fixes old bugs.
  54. - Upstream release notes claim POSIX shell code, but bookman still relies on
  55. bash styled syntax so we continue to patch it out.
  56. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-3
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  58. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-2
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  60. * Wed Mar 04 2009 Sindre Pedersen Bjordal <sindrepb@fedoraproject.org> - 1.5.5-1
  61. - Initial build
  62. - Include debian patch to fix bashisms