nano.spec 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## nano.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package version
  26. %define V_major 1.3
  27. %define V_minor 6
  28. # package information
  29. Name: nano
  30. Summary: GNU clone of the PICO text editor
  31. URL: http://www.nano-editor.org/
  32. Vendor: Chris Allegretta
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG
  35. Class: BASE
  36. Group: Editor
  37. License: GPL
  38. Version: %{V_major}.%{V_minor}
  39. Release: 20050321
  40. # list of sources
  41. Source0: http://www.nano-editor.org/dist/v%{V_major}/nano-%{version}.tar.gz
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20040130, make
  46. PreReq: OpenPKG, openpkg >= 20040130
  47. BuildPreReq: slang
  48. PreReq: slang
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. NANO is a clone of the popular PICO text editor from the PINE mail
  53. package. It is a very small editor targeted for novice users.
  54. %track
  55. prog nano = {
  56. version = %{version}
  57. url = http://www.nano-editor.org/download.html
  58. regex = nano-(__VER__)\.tar\.gz
  59. }
  60. %prep
  61. %setup -q
  62. %build
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --with-slang=%{l_prefix} \
  68. --disable-nls
  69. %{l_make} %{l_mflags -O}
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  73. strip $RPM_BUILD_ROOT%{l_prefix}/bin/nano >/dev/null 2>&1 || true
  74. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT