ircii.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ##
  2. ## ircii.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 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 information
  25. Name: ircii
  26. Summary: Internet Relay Chat (IRC) Client
  27. URL: http://www.eterna.com.au/ircii/
  28. Vendor: Michael Sandrof, Matthew Green
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: BASE
  32. Group: Network
  33. License: BSD
  34. Version: 20040820
  35. Release: 20050422
  36. # list of sources
  37. Source0: ftp://ircii.warped.com/pub/ircII/ircii-%{version}.tar.gz
  38. Source1: ircii.pl
  39. Source2: openpkg.rc
  40. Source3: rse.rc
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
  45. PreReq: OpenPKG, openpkg >= 20040130, perl
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. ircII is the classical Unix IRC client.
  50. %track
  51. prog ircii = {
  52. version = %{version}
  53. url = ftp://ircii.warped.com/pub/ircII/
  54. regex = ircii-(__VER__)\.tar\.bz2
  55. }
  56. %prep
  57. %setup -q
  58. %build
  59. # configure program
  60. libs=""
  61. case "%{l_platform -t}" in
  62. *-sunos* ) libs="-lsocket -lnsl" ;;
  63. esac
  64. CC="%{l_cc}" \
  65. CFLAGS="%{l_cflags -O}" \
  66. LIBS="$libs" \
  67. IRCLIB="\${datadir}/ircii" \
  68. ./configure \
  69. --prefix=%{l_prefix} \
  70. --disable-ipv6
  71. # build program
  72. %{l_make} %{l_mflags -O}
  73. %install
  74. # install program
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  77. # post-adjust installation installation
  78. strip $RPM_BUILD_ROOT%{l_prefix}/bin/irc-%{version}
  79. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/irc
  80. mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/ircII.1 \
  81. $RPM_BUILD_ROOT%{l_prefix}/man/man1/irc.1
  82. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ircbug
  83. rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/ircbug.1
  84. rm -f "$RPM_BUILD_ROOT%{l_prefix}/share/ircii/help/!"
  85. rm -f "$RPM_BUILD_ROOT%{l_prefix}/share/irci/help/:"
  86. # install program wrapper script
  87. %{l_shtool} mkdir -f -p -m 755 \
  88. $RPM_BUILD_ROOT%{l_prefix}/libexec/ircii
  89. mv $RPM_BUILD_ROOT%{l_prefix}/bin/irc-%{version} \
  90. $RPM_BUILD_ROOT%{l_prefix}/libexec/ircii/irc
  91. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  92. %{SOURCE ircii.pl} $RPM_BUILD_ROOT%{l_prefix}/bin/irc
  93. # install additional run-command scripts
  94. %{l_shtool} install -c -m 644 \
  95. %{SOURCE openpkg.rc} $RPM_BUILD_ROOT%{l_prefix}/share/ircii/script/openpkg
  96. %{l_shtool} install -c -m 644 \
  97. %{SOURCE rse.rc} $RPM_BUILD_ROOT%{l_prefix}/share/ircii/script/rse
  98. # determine installation files
  99. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  100. %files -f files
  101. %clean
  102. rm -rf $RPM_BUILD_ROOT