uuid/uuid.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 559
5366946896cd
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

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

mercurial