mico.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. ##
  2. ## mico.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package options
  26. %option with_ssl no
  27. %option with_qt no
  28. %option with_gtk no
  29. %option with_tcl no
  30. # package information
  31. Name: mico
  32. Summary: CORBA Toolkit
  33. URL: http://www.mico.org/
  34. Vendor: The MICO Project
  35. Packager: The OpenPKG Project
  36. Distribution: OpenPKG [EVAL]
  37. Group: System
  38. License: GPL
  39. Version: 2.3.7
  40. Release: 20030102
  41. # list of sources
  42. Source0: http://www.mico.org/mico-%{version}.tar.gz
  43. Patch0: mico.patch
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20021230, gcc
  48. PreReq: OpenPKG, openpkg >= 20021230
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. The acronym MICO expands to MICO Is CORBA. The intention of this
  53. project is to provide a freely available and fully compliant
  54. implementation of the CORBA standard. The following design
  55. principles guided the implementation of MICO:
  56. - Start from scratch, and only use standard APIs (Posix/Win32)
  57. - Don't rely on propietary or specialized libraries
  58. - Use standard C++ for the implementation
  59. - Only make use of widely available, free, non-proprietary tools
  60. - Only implement what is required for a CORBA compliant implementation
  61. - Provide a clear design even for implementation internals
  62. %options -p8
  63. %prep
  64. %setup -q -n mico
  65. %patch -p1
  66. %build
  67. CC="%{l_cc}" \
  68. CXX="%{l_cxx}" \
  69. CFLAGS="%{l_cflags -O}" \
  70. CXXFLAGS="%{l_cxxflags -O} -Wno-deprecated" \
  71. %if "%{with_qt}" == "yes"
  72. CXXFLAGS+="-I%{l_prefix}/include/qt" \
  73. %endif
  74. CPPFLAGS="%{l_cppflags}" \
  75. LDFLAGS="%{l_ldflags}" \
  76. ./configure \
  77. --prefix=%{l_prefix} \
  78. %if "%{with_ssl}" == "yes"
  79. --with-ssl=%{l_prefix} \
  80. %endif
  81. %if "%{with_qt}" == "yes"
  82. --with-qt=%{l_prefix} \
  83. %endif
  84. %if "%{with_gtk}" == "yes"
  85. --with-gtk=%{l_prefix} \
  86. %endif
  87. %if "%{with_tcl}" == "yes"
  88. --with-tcl=%{l_prefix} \
  89. %endif
  90. --disable-mini-stl \
  91. --disable-shared
  92. %{l_make} %{l_mflags}
  93. %install
  94. rm -rf $RPM_BUILD_ROOT
  95. # make directory structure
  96. %{l_shtool} mkdir -f -p -m 755 \
  97. $RPM_BUILD_ROOT%{l_prefix}/bin \
  98. $RPM_BUILD_ROOT%{l_prefix}/lib \
  99. $RPM_BUILD_ROOT%{l_prefix}/include/mico \
  100. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  101. $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
  102. $RPM_BUILD_ROOT%{l_prefix}/man/man8
  103. # install binaries, libraries, headers
  104. %{l_make} %{l_mflags} install \
  105. INSTDIR=$RPM_BUILD_ROOT%{l_prefix} \
  106. SHARED_INSTDIR=$RPM_BUILD_ROOT%{l_prefix}
  107. # cleanup installation files
  108. rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc
  109. rm -rf $RPM_BUILD_ROOT%{l_prefix}/include/ministl
  110. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/mico-setup.*
  111. ( cd $RPM_BUILD_ROOT%{l_prefix}/lib
  112. for name in mico micoaux micocoss micoir micox; do
  113. mv lib${name}%{version}.a lib${name}.a
  114. done
  115. )
  116. # generate files listing
  117. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  118. %files -f files
  119. %clean
  120. rm -rf $RPM_BUILD_ROOT