uuid/uuid.spec

Mon, 17 Sep 2012 19:10:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 17 Sep 2012 19:10:10 +0200
changeset 689
9fe04d4d4e5a
parent 559
5366946896cd
permissions
-rw-r--r--

Update to new version of vendor software although Oracle fails to deliver.
More specifically, newer db(3) patch revisions exist but Oracle has
removed them from the canonical download server URI for Berkely DB.

     1 ##
     2 ##  uuid.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    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 Foundation e.V.
    30 Distribution: OpenPKG Community
    31 Class:        BASE
    32 Group:        Libraries
    33 License:      MIT/X11-style
    34 Version:      1.6.2
    35 Release:      20120800
    37 #   package options
    38 %option       with_dce   no
    39 %option       with_cxx   no
    40 %option       with_perl  no
    41 %option       with_php   no
    42 %option       with_pgsql no
    44 #   list of sources
    45 Source0:      ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz
    46 Patch0:       uuid.patch
    48 #   build information
    49 Prefix:       %{l_prefix}
    50 BuildRoot:    %{l_buildroot}
    51 BuildPreReq:  OpenPKG, openpkg >= 20100101
    52 PreReq:       OpenPKG, openpkg >= 20100101
    53 %if "%{with_cxx}" == "yes"
    54 BuildPreReq:  gcc
    55 %endif
    56 %if "%{with_perl}" == "yes"
    57 BuildPreReq:  perl, perl-openpkg
    58 PreReq:       perl
    59 %endif
    60 %if "%{with_php}" == "yes"
    61 BuildPreReq:  php, autoconf, libtool
    62 PreReq:       php
    63 %endif
    64 %if "%{with_pgsql}" == "yes"
    65 BuildPreReq:  postgresql >= 8.1.2-20060115
    66 PreReq:       postgresql >= 8.1.2-20060115
    67 %endif
    68 AutoReq:      no
    69 AutoReqProv:  no
    71 %description
    72     OSSP uuid is a ISO-C:1999 application programming interface (API)
    73     and corresponding command line interface (CLI) for the generation
    74     of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally
    75     Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of
    76     version 1 (time and node based), version 3 (name based, MD5),
    77     version 4 (random number based) and version 5 (name based, SHA-1).
    78     Additional API bindings are provided for the languages ISO-C++:1998,
    79     Perl:5 and PHP:4/5. Optional backward compatibility exists for the
    80     ISO-C DCE-1.1 and Perl Data::UUID APIs.
    82     UUIDs are 128 bit numbers which are intended to have a high
    83     likelihood of uniqueness over space and time and are computationally
    84     difficult to guess. They are globally unique identifiers which
    85     can be locally generated without contacting a global registration
    86     authority. UUIDs are intended as unique identifiers for both mass
    87     tagging objects with an extremely short lifetime and to reliably
    88     identifying very persistent objects across a network.
    90 %track
    91     prog uuid = {
    92         version   = %{version}
    93         url       = ftp://ftp.ossp.org/pkg/lib/uuid/
    94         regex     = uuid-(__VER__)\.tar\.gz
    95     }
    97 %prep
    98     %setup -q
    99     %patch -p0
   100     %{l_shtool} subst \
   101         -e 's;function_entry;zend_function_entry;' \
   102         php/uuid.c
   103     %{l_shtool} subst \
   104         -e 's;\[\.\.\];[\`pwd\`/..];g' \
   105         php/config.m4
   107 %build
   108     CC="%{l_cc}" \
   109     CFLAGS="%{l_cflags -O}" \
   110     ./configure \
   111         --prefix=%{l_prefix} \
   112         --mandir=%{l_prefix}/man \
   113 %if "%{with_dce}" == "yes"
   114         --with-dce \
   115 %endif
   116 %if "%{with_cxx}" == "yes"
   117         --with-cxx \
   118 %endif
   119 %if "%{with_php}" == "yes"
   120         --with-php \
   121 %endif
   122 %if "%{with_pgsql}" == "yes"
   123         --with-pgsql \
   124 %endif
   125         --disable-shared
   126     %{l_make} %{l_mflags -O}
   127 %if "%{with_perl}" == "yes"
   128     %{l_prefix}/bin/perl-openpkg prepare
   129     %{l_prefix}/bin/perl-openpkg -d perl configure build
   130 %endif
   132 %install
   133     %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
   134 %if "%{with_perl}" == "yes"
   135     %{l_prefix}/bin/perl-openpkg -d perl install
   136     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
   137 %else
   138     >perl-openpkg-files
   139 %endif
   140     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   141         %{l_files_std} `cat perl-openpkg-files`
   143 %files -f files
   145 %clean

mercurial