rfc.spec 3.5 KB

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