1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/uuid/uuid.spec Tue Aug 28 18:33:45 2012 +0200 1.3 @@ -0,0 +1,143 @@ 1.4 +## 1.5 +## uuid.spec -- OpenPKG RPM Package Specification 1.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 1.7 +## 1.8 +## Permission to use, copy, modify, and distribute this software for 1.9 +## any purpose with or without fee is hereby granted, provided that 1.10 +## the above copyright notice and this permission notice appear in all 1.11 +## copies. 1.12 +## 1.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 1.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 1.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 1.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 1.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 1.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1.24 +## SUCH DAMAGE. 1.25 +## 1.26 + 1.27 +# package information 1.28 +Name: uuid 1.29 +Summary: Universally Unique Identifier (UUID) 1.30 +URL: http://www.ossp.org/pkg/lib/uuid/ 1.31 +Vendor: The OSSP Project 1.32 +Packager: OpenPKG Foundation e.V. 1.33 +Distribution: OpenPKG Community 1.34 +Class: BASE 1.35 +Group: Libraries 1.36 +License: MIT/X11-style 1.37 +Version: 1.6.2 1.38 +Release: 20080717 1.39 + 1.40 +# package options 1.41 +%option with_dce no 1.42 +%option with_cxx no 1.43 +%option with_perl no 1.44 +%option with_php no 1.45 +%option with_pgsql no 1.46 + 1.47 +# list of sources 1.48 +Source0: ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz 1.49 +Patch0: uuid.patch 1.50 + 1.51 +# build information 1.52 +Prefix: %{l_prefix} 1.53 +BuildRoot: %{l_buildroot} 1.54 +BuildPreReq: OpenPKG, openpkg >= 20050615 1.55 +PreReq: OpenPKG, openpkg >= 20050615 1.56 +%if "%{with_cxx}" == "yes" 1.57 +BuildPreReq: gcc 1.58 +%endif 1.59 +%if "%{with_perl}" == "yes" 1.60 +BuildPreReq: perl, perl-openpkg 1.61 +PreReq: perl 1.62 +%endif 1.63 +%if "%{with_php}" == "yes" 1.64 +BuildPreReq: php, autoconf, libtool 1.65 +PreReq: php 1.66 +%endif 1.67 +%if "%{with_pgsql}" == "yes" 1.68 +BuildPreReq: postgresql >= 8.1.2-20060115 1.69 +PreReq: postgresql >= 8.1.2-20060115 1.70 +%endif 1.71 +AutoReq: no 1.72 +AutoReqProv: no 1.73 + 1.74 +%description 1.75 + OSSP uuid is a ISO-C:1999 application programming interface (API) 1.76 + and corresponding command line interface (CLI) for the generation 1.77 + of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally 1.78 + Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of 1.79 + version 1 (time and node based), version 3 (name based, MD5), 1.80 + version 4 (random number based) and version 5 (name based, SHA-1). 1.81 + Additional API bindings are provided for the languages ISO-C++:1998, 1.82 + Perl:5 and PHP:4/5. Optional backward compatibility exists for the 1.83 + ISO-C DCE-1.1 and Perl Data::UUID APIs. 1.84 + 1.85 + UUIDs are 128 bit numbers which are intended to have a high 1.86 + likelihood of uniqueness over space and time and are computationally 1.87 + difficult to guess. They are globally unique identifiers which 1.88 + can be locally generated without contacting a global registration 1.89 + authority. UUIDs are intended as unique identifiers for both mass 1.90 + tagging objects with an extremely short lifetime and to reliably 1.91 + identifying very persistent objects across a network. 1.92 + 1.93 +%track 1.94 + prog uuid = { 1.95 + version = %{version} 1.96 + url = ftp://ftp.ossp.org/pkg/lib/uuid/ 1.97 + regex = uuid-(__VER__)\.tar\.gz 1.98 + } 1.99 + 1.100 +%prep 1.101 + %setup -q 1.102 + %patch -p0 1.103 + 1.104 +%build 1.105 + CC="%{l_cc}" \ 1.106 + CFLAGS="%{l_cflags -O}" \ 1.107 + GREP="grep" \ 1.108 + ./configure \ 1.109 + --prefix=%{l_prefix} \ 1.110 + --mandir=%{l_prefix}/man \ 1.111 +%if "%{with_dce}" == "yes" 1.112 + --with-dce \ 1.113 +%endif 1.114 +%if "%{with_cxx}" == "yes" 1.115 + --with-cxx \ 1.116 +%endif 1.117 +%if "%{with_php}" == "yes" 1.118 + --with-php \ 1.119 +%endif 1.120 +%if "%{with_pgsql}" == "yes" 1.121 + --with-pgsql \ 1.122 +%endif 1.123 + --disable-shared 1.124 + %{l_make} %{l_mflags -O} 1.125 +%if "%{with_perl}" == "yes" 1.126 + %{l_prefix}/bin/perl-openpkg prepare 1.127 + %{l_prefix}/bin/perl-openpkg -d perl configure build 1.128 +%endif 1.129 + 1.130 +%install 1.131 + rm -rf $RPM_BUILD_ROOT 1.132 + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 1.133 +%if "%{with_perl}" == "yes" 1.134 + %{l_prefix}/bin/perl-openpkg -d perl install 1.135 + %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup 1.136 +%else 1.137 + >perl-openpkg-files 1.138 +%endif 1.139 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 1.140 + %{l_files_std} `cat perl-openpkg-files` 1.141 + 1.142 +%files -f files 1.143 + 1.144 +%clean 1.145 + rm -rf $RPM_BUILD_ROOT 1.146 +