detex-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Summary: a program to remove TeX constructs
  2. Summary(ja): TeXコマンドを取り除くプログラム
  3. Name: detex
  4. Version: 2.8
  5. Release: 3%{?_dist_release}
  6. URL: http://www.cs.purdue.edu/homes/trinkle/detex/
  7. License: distributable
  8. Group: Applications/Text
  9. Source: http://www.cs.purdue.edu/homes/trinkle/detex/detex-2.8.tar
  10. Patch0: detex-2.8-malloc.patch
  11. Buildroot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: sed flex
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. Detex is a program to remove TeX constructs from a text file.
  17. It recognizes the \input command.
  18. This program assumes it is dealing with LaTeX input if it sees the string
  19. "\begin{document}" in the text. It recognizes the \include and \includeonly
  20. commands.
  21. %description -l ja
  22. LaTeX 文書から LaTeX コマンドを取り除くプログラムです。
  23. %prep
  24. %setup -q
  25. %patch0 -p0 -b .malloc
  26. # To convert the man page from 1L to 1
  27. %__sed -i "s/1L/1/" detex.1l
  28. %build
  29. %__make
  30. %install
  31. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  32. %__install -Dpm 755 detex $RPM_BUILD_ROOT%{_bindir}/detex
  33. %__install -Dpm 644 detex.1l $RPM_BUILD_ROOT%{_mandir}/man1/detex.1
  34. %clean
  35. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root)
  38. %doc README COPYRIGHT
  39. %{_bindir}/detex
  40. %{_mandir}/man1/%{name}.1*
  41. %changelog
  42. * Tue Jan 24 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.8-3
  43. - rebuild
  44. * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.8-2
  45. - added man file
  46. * Mon Sep 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8-1vl5
  47. - new upstream release
  48. - added Patch0 for compiling new toolchains
  49. - added BuildRequires: sed flex
  50. - applied new versioning policy
  51. - spec in UTF-8
  52. * Sun Jul 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-0vl3
  53. - build with new toolchains
  54. - to use License instead of Copyright
  55. * Thu Jan 4 2001 Jun Nishii <jun@vinelinux.org>
  56. - 2.7-0vl2
  57. - build with gcc
  58. * Wed Jan 3 2001 Jun Nishii <jun@vinelinux.org>
  59. - 2.7-0vl1
  60. - first build