orbit2.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ##
  2. ## orbit2.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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 version
  26. %define V_major 2
  27. %define V_minor 11
  28. %define V_level 2
  29. # package information
  30. Name: orbit2
  31. Summary: CORBA Toolkit (v2)
  32. URL: http://orbit-resource.sourceforge.net/
  33. Vendor: The GNOME Project
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG
  36. Class: EVAL
  37. Group: System
  38. License: GPL
  39. Version: %{V_major}.%{V_minor}.%{V_level}
  40. Release: 20040820
  41. # list of sources
  42. Source0: ftp://ftp.gnome.org/pub/GNOME/sources/ORBit%{V_major}/%{V_major}.%{V_minor}/ORBit%{V_major}-%{version}.tar.gz
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130, glib2, libidl, linc >= 1.1.0, popt, pkgconfig, make, bison, flex
  47. PreReq: OpenPKG, openpkg >= 20040130, glib2, libidl, linc >= 1.1.0, popt
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. ORBit is a CORBA 2.2-compliant Object Request Broker (ORB) featuring
  52. mature C and Perl bindings. It supports POA, DII, DSI, TypeCode,
  53. Any, IR and IIOP. Optional features including INS and threading
  54. are available. ORBit is engineered for the desktop workstation
  55. environment, with a focus on performance, low resource usage, and
  56. security.
  57. %track
  58. prog orbit2 = {
  59. version = %{version}
  60. url = ftp://ftp.gnome.org/pub/GNOME/sources/ORBit2/
  61. regex = (\d+\.\d+(\.\d+)*)\b
  62. url = ftp://ftp.gnome.org/pub/GNOME/sources/ORBit2/__NEWVER__/
  63. regex = ORBit2-(__VER__)\.tar\.gz
  64. }
  65. %prep
  66. %setup -q -n ORBit%{V_major}-%{version}
  67. touch *
  68. %build
  69. CFLAGS="%{l_cflags -O}"
  70. case "%{l_platform -t}" in
  71. *-freebsd* ) CFLAGS="$CFLAGS -pthread" ;;
  72. esac
  73. CC="%{l_cc}" \
  74. CFLAGS="$CFLAGS" \
  75. CPPFLAGS="%{l_cppflags}" \
  76. LDFLAGS="%{l_ldflags}" \
  77. ./configure \
  78. --prefix=%{l_prefix} \
  79. --disable-shared \
  80. --disable-nls
  81. %{l_make} %{l_mflags}
  82. %install
  83. rm -rf $RPM_BUILD_ROOT
  84. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  85. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  86. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/linc-cleanup-sockets
  87. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  88. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  89. %{l_files_std} \
  90. '%not %dir %{l_prefix}/share/aclocal' \
  91. '%not %dir %{l_prefix}/lib/pkgconfig'
  92. %files -f files
  93. %clean
  94. rm -rf $RPM_BUILD_ROOT