tofrodos-vl.spec 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Name: tofrodos
  2. Summary: Text file format converter for between DOS and UNIX
  3. Summary(ja): DOS と UNIX のテキストファイルフォーマット相互変換ツール
  4. Version: 1.7.13
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Text
  8. URL: http://www.thefreecountry.com/tofrodos/
  9. Source0: %{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. %description
  12. DOS text files traditionally have CR/LF (carriage return/line feed) pairs
  13. as their new line delimiters while Unix text files traditionally have
  14. LFs (line feeds) to terminate each line.
  15. Tofrodos comprises two programs, "fromdos" and "todos", which convert
  16. ASCII and Unicode UTF-8 text files to and from these formats. Use "fromdos"
  17. to convert DOS text files to the Unix format, and "todos" to convert Unix
  18. text files to the DOS format.
  19. %prep
  20. %setup -qn %{name}
  21. %build
  22. cd src/
  23. make %{?_smp_flags}
  24. %install
  25. rm -rf %{buildroot}
  26. cd src
  27. %__install -m 755 -d %{buildroot}%{_bindir}
  28. %__install -m 755 -d %{buildroot}%{_mandir}/man1
  29. %__mv fromdos %{buildroot}%{_bindir}/fromdos
  30. %__mv todos %{buildroot}%{_bindir}/todos
  31. %__install -m 755 fromdos.1 %{buildroot}%{_mandir}/man1/
  32. %clean
  33. rm -rf %{buildroot}
  34. %files
  35. %doc COPYING readme.txt
  36. %{_bindir}/*
  37. %{_mandir}/man1/fromdos.1.gz
  38. %changelog
  39. * Sat Jul 12 2014 Toshiharu Kudoh <kudoh@vinelinux.org> - 1.7.13-1
  40. - initial build for VineSeed