wcd.spec 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ##
  2. ## wcd.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2011 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 information
  24. Name: wcd
  25. Summary: Wherever Change Directory
  26. URL: http://www.xs4all.nl/~waterlan/
  27. Vendor: Erwin Waterlander
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: EVAL
  31. Group: Terminal
  32. License: GPL
  33. Version: 5.2.0
  34. Release: 20111112
  35. # list of sources
  36. Source0: http://www.xs4all.nl/~waterlan/wcd-%{version}-src.tar.gz
  37. # build information
  38. BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, make
  39. PreReq: OpenPKG, openpkg >= 20100101
  40. BuildPreReq: ncurses
  41. PreReq: ncurses
  42. %description
  43. WCD is another Norton Change Directory (NCD) clone for Unix -- with
  44. more features. WCD is a program to change directory fast. It saves
  45. time typing at the keyboard. One needs to type only a part of a
  46. directory name and WCD will jump to it. By default WCD searches for
  47. a directory with a name that begins with what has been typed, but
  48. the use of wildcards is also fully supported.
  49. %track
  50. prog wcd = {
  51. version = %{version}
  52. url = http://www.xs4all.nl/~waterlan/
  53. regex = wcd-(\d+\.\d+\.\d+)-src\.tar\.gz
  54. }
  55. %prep
  56. %setup -q
  57. %build
  58. cd src
  59. %{l_make} %{l_mflags -O} \
  60. CC="%{l_cc}" \
  61. NCFLAG="%{l_cppflags ncurses .}" \
  62. NLFLAG="%{l_ldflags}"
  63. %install
  64. %{l_shtool} mkdir -f -p -m 755 \
  65. $RPM_BUILD_ROOT%{l_prefix}/bin \
  66. $RPM_BUILD_ROOT%{l_prefix}/man/cat1
  67. %{l_shtool} install -c -s -m 755 \
  68. src/wcd.exe $RPM_BUILD_ROOT%{l_prefix}/bin/wcd
  69. %{l_shtool} install -c -m 644 \
  70. doc/wcd.txt $RPM_BUILD_ROOT%{l_prefix}/man/cat1/wcd.1
  71. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  72. %files -f files
  73. %clean