ed.spec 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## ed.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package version
  24. %define V_dist 1.0-pre1
  25. %define V_opkg 1.0pre1
  26. # package information
  27. Name: ed
  28. Summary: Line Editor
  29. URL: http://www.gnu.org/software/ed/ed.html
  30. Vendor: Andrew L. Moore, Antonio Diaz Diaz
  31. Packager: OpenPKG Foundation e.V.
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: ShellUtils
  35. License: GPL
  36. Version: %{V_opkg}
  37. Release: 20080411
  38. # list of sources
  39. Source0: http://es.geocities.com/ant_diaz2001/ed-%{V_dist}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. ed(1) is a line-oriented text editor. It is used to create, display,
  49. modify and otherwise manipulate text files, both interactively
  50. and via shell scripts. A restricted version of ed(1), red(1), can
  51. only edit files in the current directory and cannot execute shell
  52. commands. ed(1) is the "standard" text editor in the sense that it
  53. is the original editor for Unix, and thus widely available. For most
  54. purposes, however, it is superseded since decades by full-screen
  55. editors such as Vim or Emacs.
  56. %track
  57. prog ed = {
  58. version = %{V_dist}
  59. url = ftp://ftp.gnu.org/gnu/ed/
  60. regex = ed-(__VER__)\.tar\.bz2
  61. }
  62. %prep
  63. %setup -q -n ed-%{V_dist}
  64. %build
  65. ./configure \
  66. CC="%{l_cc}" \
  67. CFLAGS="%{l_cflags -O}" \
  68. CPPFLAGS="%{l_cppflags}" \
  69. LDFLAGS="%{l_ldflags}" \
  70. --prefix=%{l_prefix} \
  71. --infodir=%{l_prefix}/info \
  72. --mandir=%{l_prefix}/man
  73. %{l_make} %{l_mflags -O}
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_make} %{l_mflags} install install-man DESTDIR=$RPM_BUILD_ROOT
  77. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  78. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT