aegis.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. ##
  2. ## aegis.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 information
  26. Name: aegis
  27. Summary: Software Configuration Management System
  28. URL: http://aegis.sourceforge.net/
  29. Vendor: Peter Miller
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: Text
  34. License: GPL
  35. Version: 4.19
  36. Release: 20041008
  37. # list of sources
  38. Source0: http://aegis.sourceforge.net/aegis-%{version}.tar.gz
  39. Patch0: aegis.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130, perl, bison, groff, gcc
  44. PreReq: OpenPKG, openpkg >= 20040130, perl
  45. BuildPreReq: zlib, gettext, libiconv, uuid, curl
  46. PreReq: zlib, gettext, libiconv, uuid, curl
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Aegis is a transaction-based software configuration management system. It
  51. provides a framework within which a team of developers may work on many
  52. changes to a program independently, and Aegis coordinates integrating
  53. these changes back into the master source of the program, with as little
  54. disruption as possible.
  55. %track
  56. prog aegis = {
  57. version = %{version}
  58. url = http://aegis.sourceforge.net/download.html
  59. regex = aegis-(__VER__)\.tar\.gz
  60. }
  61. %prep
  62. %setup -q
  63. %patch -p0
  64. %{l_shtool} subst \
  65. -e 's/-chown /-true /g' \
  66. -e 's/chgrp /true /g' \
  67. -e 's/\(\&\& *\)chmod /\1true /g' \
  68. Makefile.in
  69. ( echo "ac_cv_lib_uuid_uuid_load=yes"
  70. echo "ac_cv_lib_uuid_uuid_generate=no"
  71. echo "ac_cv_lib_uuid_uuid_hash=no"
  72. ) >config.cache
  73. %build
  74. AEGIS_UID="%{l_muid}" \
  75. AEGIS_GID="%{l_mgid}" \
  76. CC="%{l_cc} %{l_cppflags} %{l_ldflags}" \
  77. CFLAGS="%{l_cflags -O}" \
  78. CPPFLAGS="%{l_cppflags}" \
  79. LDFLAGS="%{l_ldflags}" \
  80. LIBS="-lintl -liconv" \
  81. PERL="%{l_prefix}/bin/perl" \
  82. ./configure -C \
  83. --prefix=%{l_prefix} \
  84. --disable-nls
  85. %{l_shtool} subst \
  86. -e 's;^.*\(HAVE_DCE_UUID_H\).*$;/* #undef \1 */;' \
  87. -e 's;^.*\(HAVE_UUID_GENERATE\).*$;/* #undef \1 */;' \
  88. -e 's;^.*\(HAVE_UUID_HASH\).*$;/* #undef \1 */;' \
  89. -e 's;^.*\(HAVE_UUID_UUID_H\).*$;/* #undef \1 */;' \
  90. -e 's;^.*\(HAVE_LINUX_UUID\).*$;/* #undef \1 */;' \
  91. -e 's;^.*\(LINUX_UUID_FILENAME\).*$;/* #undef \1 */;' \
  92. -e 's;^.*\(LINUX_UUID_SIZE\).*$;/* #undef \1 */;' \
  93. common/config.h
  94. %{l_make} %{l_mflags}
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. %{l_make} %{l_mflags} install \
  98. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  99. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  100. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  101. rm -rf $RPM_BUILD_ROOT%{l_prefix}/com
  102. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/cgi
  103. mv $RPM_BUILD_ROOT%{l_prefix}/bin/aegis.cgi $RPM_BUILD_ROOT%{l_prefix}/cgi/
  104. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/aegis.cgi.i
  105. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
  106. '%attr(4755,%{l_susr},%{l_sgrp}) %{l_prefix}/bin/aegis' \
  107. '%attr(4755,%{l_susr},%{l_sgrp}) %{l_prefix}/bin/aeimport'
  108. %files -f files
  109. %clean
  110. rm -rf $RPM_BUILD_ROOT