orbit2.spec 3.6 KB

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