epic4.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. ##
  2. ## epic4.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 version
  25. %define V_epic4 2.6
  26. %define V_epic4_help 20050315
  27. # package information
  28. Name: epic4
  29. Summary: Enhanced Programmable ircII Client
  30. URL: http://www.epicsol.org/
  31. Vendor: EPIC Software Labs.
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: EVAL
  35. Group: InstantMessaging
  36. License: GPL
  37. Version: %{V_epic4}
  38. Release: 20061117
  39. # package options
  40. %option with_ssl no
  41. # list of sources
  42. Source0: ftp://ftp.epicsol.org/pub/ircii/EPIC4-PRODUCTION/epic4-%{V_epic4}.tar.gz
  43. Source1: ftp://ftp.epicsol.org/pub/ircii/EPIC4-PRODUCTION/epic4-help-%{V_epic4_help}.tar.gz
  44. Patch0: epic4.patch
  45. # build information
  46. Prefix: %{l_prefix}
  47. BuildRoot: %{l_buildroot}
  48. BuildPreReq: OpenPKG, openpkg >= 20040701
  49. PreReq: OpenPKG, openpkg >= 20040701
  50. %if "%{with_ssl}" == "yes"
  51. BuildPreReq: openssl
  52. PreReq: openssl
  53. %endif
  54. AutoReq: no
  55. AutoReqProv: no
  56. %description
  57. EPIC4 is a new direction in ircII development. No longer is EPIC
  58. 100% backwards compatable with ircII, but instead we have chosen
  59. to find those things where compatability is undesirable, and fix
  60. them. No gratuitous incompatabilities have been added, but lots of
  61. new code has been added to make EPIC the best ircII client we could
  62. make.
  63. %track
  64. prog epic4 = {
  65. version = %{V_epic4}
  66. url = ftp://ftp.epicsol.org/pub/ircii/EPIC4-PRODUCTION/
  67. regex = epic4-(__VER__)\.tar\.gz
  68. }
  69. prog epic4:help = {
  70. version = %{V_epic4_help}
  71. url = ftp://ftp.epicsol.org/pub/ircii/EPIC4-PRODUCTION/
  72. regex = epic4-help-(__VER__)\.tar\.gz
  73. }
  74. %prep
  75. %setup -q
  76. %setup -q -T -D -a 1
  77. %patch -p0
  78. %build
  79. CC="%{l_cc}" \
  80. %if "%{with_ssl}" == "yes"
  81. CFLAGS="%{l_cflags -O} %{l_cppflags openssl .}" \
  82. %else
  83. CFLAGS="%{l_cflags -O} %{l_cppflags}" \
  84. %endif
  85. LDFLAGS="%{l_ldflags}" \
  86. ./configure \
  87. --prefix=%{l_prefix} \
  88. --datadir=%{l_prefix}/share/epic \
  89. %if "%{with_ssl}" == "yes"
  90. --with-ssl=%{l_prefix}
  91. %else
  92. --without-ssl
  93. %endif
  94. %{l_make} %{l_mflags}
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. %{l_make} %{l_mflags} install installhelp \
  98. DESTDIR=$RPM_BUILD_ROOT \
  99. INSTALL_PROGRAM="%{l_shtool} install -c -m 755" \
  100. INSTALL_DATA="%{l_shtool} install -c -m 644"
  101. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  102. %files -f files
  103. %clean
  104. rm -rf $RPM_BUILD_ROOT