uuid.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. ##
  2. ## uuid.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 information
  25. Name: uuid
  26. Summary: Universally Unique Identifier (UUID)
  27. URL: http://www.ossp.org/pkg/lib/uuid/
  28. Vendor: The OSSP Project
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: BASE
  32. Group: System
  33. License: MIT/X11-style
  34. Version: 1.4.0
  35. Release: 20060115
  36. # package options
  37. %option with_dce no
  38. %option with_cxx no
  39. %option with_perl no
  40. %option with_php no
  41. %option with_pgsql no
  42. # list of sources
  43. Source0: ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20050615
  48. PreReq: OpenPKG, openpkg >= 20050615
  49. %if "%{with_cxx}" == "yes"
  50. BuildPreReq: gcc
  51. %endif
  52. %if "%{with_perl}" == "yes"
  53. BuildPreReq: perl, perl-openpkg
  54. PreReq: perl
  55. %endif
  56. %if "%{with_php}" == "yes"
  57. BuildPreReq: php, autoconf, libtool
  58. PreReq: php
  59. %endif
  60. %if "%{with_pgsql}" == "yes"
  61. BuildPreReq: postgresql
  62. PreReq: postgresql
  63. %endif
  64. AutoReq: no
  65. AutoReqProv: no
  66. %description
  67. OSSP uuid is a ISO-C:1999 application programming interface (API)
  68. and corresponding command line interface (CLI) for the generation
  69. of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally
  70. Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of
  71. version 1 (time and node based), version 3 (name based, MD5),
  72. version 4 (random number based) and version 5 (name based, SHA-1).
  73. Additional API bindings are provided for the languages ISO-C++:1998,
  74. Perl:5 and PHP:4/5. Optional backward compatibility exists for the
  75. ISO-C DCE-1.1 and Perl Data::UUID APIs.
  76. UUIDs are 128 bit numbers which are intended to have a high
  77. likelihood of uniqueness over space and time and are computationally
  78. difficult to guess. They are globally unique identifiers which
  79. can be locally generated without contacting a global registration
  80. authority. UUIDs are intended as unique identifiers for both mass
  81. tagging objects with an extremely short lifetime and to reliably
  82. identifying very persistent objects across a network.
  83. %track
  84. prog uuid = {
  85. version = %{version}
  86. url = ftp://ftp.ossp.org/pkg/lib/uuid/
  87. regex = uuid-(__VER__)\.tar\.gz
  88. }
  89. %prep
  90. %setup -q
  91. %build
  92. CC="%{l_cc}" \
  93. CFLAGS="%{l_cflags -O}" \
  94. ./configure \
  95. --prefix=%{l_prefix} \
  96. %if "%{with_dce}" == "yes"
  97. --with-dce \
  98. %endif
  99. %if "%{with_cxx}" == "yes"
  100. --with-cxx \
  101. %endif
  102. %if "%{with_php}" == "yes"
  103. --with-php \
  104. %endif
  105. %if "%{with_pgsql}" == "yes"
  106. --with-pgsql \
  107. %endif
  108. --disable-shared
  109. %{l_make} %{l_mflags -O}
  110. %if "%{with_perl}" == "yes"
  111. %{l_prefix}/bin/perl-openpkg prepare
  112. %{l_prefix}/bin/perl-openpkg -d perl configure build
  113. %endif
  114. %install
  115. rm -rf $RPM_BUILD_ROOT
  116. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  117. %if "%{with_perl}" == "yes"
  118. %{l_prefix}/bin/perl-openpkg -d perl install
  119. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  120. %else
  121. >perl-openpkg-files
  122. %endif
  123. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  124. %{l_files_std} `cat perl-openpkg-files`
  125. %files -f files
  126. %clean
  127. rm -rf $RPM_BUILD_ROOT