limo.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ##
  2. ## limo.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: limo
  26. Summary: Alternative List ls(1) Command
  27. URL: http://users.gtn.net/fraserm/limo.html
  28. Vendor: Fraser McCrossan
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: System
  32. License: GPL
  33. Version: 0.3.2
  34. Release: %{l_branch}.0
  35. # list of sources
  36. Source0: http://users.gtn.net/fraserm/limo-%{version}.tar.gz
  37. Patch0: limo-%{version}.patch
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20011023.0
  42. PreReq: OpenPKG, openpkg >= 20011023.0
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. limo is a replacement for ls with some knobs on. By default, it
  47. is installed as both limo and as li. It tries to give far more
  48. control over the output format than ls and has simpler and more
  49. straightforward (albeit more verbose) options. It also has the
  50. -l and -s options which behave similarly to those of ls. It is
  51. probably most suited to system administrators who need to know file
  52. attributes very precisely, and to script writers, who wish to avoid
  53. parsing ls output.
  54. %prep
  55. %setup -q
  56. %patch -p0
  57. %build
  58. %{l_make} %{l_mflags -O} \
  59. CC="%{l_cc}"
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
  63. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
  64. %{l_shtool} install -c -s -m 755 limo $RPM_BUILD_ROOT%{l_prefix}/bin/
  65. %{l_shtool} install -c -m 644 limo.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  66. ln $RPM_BUILD_ROOT%{l_prefix}/bin/limo \
  67. $RPM_BUILD_ROOT%{l_prefix}/bin/li
  68. ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/limo.1 \
  69. $RPM_BUILD_ROOT%{l_prefix}/man/man1/li.1
  70. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  71. %files -f files
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT