epic4.spec 3.6 KB

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