rfc.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ##
  2. ## rfc.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://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 versions
  25. %define V_rfctool 3.2.3
  26. %define V_rfcindex 20060825
  27. %define V_services 20041012
  28. # package information
  29. Name: rfc
  30. Summary: Request For Comment (RFC) Retrival Tool
  31. URL: http://www.dewn.com/rfc/
  32. Vendor: Derrick Daugherty
  33. Packager: OpenPKG
  34. Distribution: OpenPKG
  35. Class: PLUS
  36. Group: Searching
  37. License: PD
  38. Version: %{V_rfctool}
  39. Release: 20060924
  40. # list of sources
  41. Source0: http://www.dewn.com/rfc/rfc-%{V_rfctool}.tar.gz
  42. Source1: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/rfc/rfc-index-%{V_rfcindex}.txt
  43. Source2: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/rfc/nmap-services-%{V_services}
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20040130
  48. PreReq: OpenPKG, openpkg >= 20040130, perl
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. This tool will allow you to specify a number of an RFC, or a string
  53. that you're looking for, and return all related RFC's. You can also
  54. throw in the -l switch and have it spawn a browser to view the RFC.
  55. This is 100 times faster than scouring the Web for the RFC.
  56. %track
  57. prog rfc = {
  58. disabled
  59. comment = "website no longer has any link to (still existing) tarball"
  60. version = %{version}
  61. url = http://www.dewn.com/rfc/
  62. regex = rfc-(__VER__)\.tar\.gz
  63. }
  64. %prep
  65. %setup -q
  66. %build
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %{l_shtool} mkdir -f -p -m 755 \
  70. $RPM_BUILD_ROOT%{l_prefix}/bin \
  71. $RPM_BUILD_ROOT%{l_prefix}/var/rfc
  72. %{l_shtool} install -c -m 755 \
  73. -e "s;^#!.*;#!%{l_prefix}/bin/perl;" \
  74. -e "s;/usr/local/etc/rfc-index;%{l_prefix}/var/rfc/rfc-index.txt;" \
  75. -e "s;/usr/local/etc/nmap-services;%{l_prefix}/var/rfc/unix-services.txt;" \
  76. -e "s;/local/path/to/rfcs/;%{l_prefix}/var/rfc/;" \
  77. rfc-%{version} \
  78. $RPM_BUILD_ROOT%{l_prefix}/bin/rfc
  79. %{l_shtool} install -c -m 644 \
  80. %{SOURCE nmap-services-%{V_services}} \
  81. $RPM_BUILD_ROOT%{l_prefix}/var/rfc/unix-services.txt
  82. %{l_shtool} install -c -m 644 \
  83. %{SOURCE rfc-index-%{V_rfcindex}.txt} \
  84. $RPM_BUILD_ROOT%{l_prefix}/var/rfc/rfc-index.txt
  85. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  86. %files -f files
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT