michael@559: ## michael@559: ## uuid.spec -- OpenPKG RPM Package Specification michael@559: ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. michael@559: ## michael@559: ## Permission to use, copy, modify, and distribute this software for michael@559: ## any purpose with or without fee is hereby granted, provided that michael@559: ## the above copyright notice and this permission notice appear in all michael@559: ## copies. michael@559: ## michael@559: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@559: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@559: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@559: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@559: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@559: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@559: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@559: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@559: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@559: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@559: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@559: ## SUCH DAMAGE. michael@559: ## michael@559: michael@559: # package information michael@559: Name: uuid michael@559: Summary: Universally Unique Identifier (UUID) michael@559: URL: http://www.ossp.org/pkg/lib/uuid/ michael@559: Vendor: The OSSP Project michael@559: Packager: OpenPKG Foundation e.V. michael@559: Distribution: OpenPKG Community michael@559: Class: BASE michael@559: Group: Libraries michael@559: License: MIT/X11-style michael@559: Version: 1.6.2 michael@560: Release: 20120800 michael@559: michael@559: # package options michael@559: %option with_dce no michael@559: %option with_cxx no michael@559: %option with_perl no michael@559: %option with_php no michael@559: %option with_pgsql no michael@559: michael@559: # list of sources michael@559: Source0: ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz michael@559: Patch0: uuid.patch michael@559: michael@559: # build information michael@559: Prefix: %{l_prefix} michael@559: BuildRoot: %{l_buildroot} michael@560: BuildPreReq: OpenPKG, openpkg >= 20100101 michael@560: PreReq: OpenPKG, openpkg >= 20100101 michael@559: %if "%{with_cxx}" == "yes" michael@559: BuildPreReq: gcc michael@559: %endif michael@559: %if "%{with_perl}" == "yes" michael@559: BuildPreReq: perl, perl-openpkg michael@559: PreReq: perl michael@559: %endif michael@559: %if "%{with_php}" == "yes" michael@559: BuildPreReq: php, autoconf, libtool michael@559: PreReq: php michael@559: %endif michael@559: %if "%{with_pgsql}" == "yes" michael@559: BuildPreReq: postgresql >= 8.1.2-20060115 michael@559: PreReq: postgresql >= 8.1.2-20060115 michael@559: %endif michael@559: AutoReq: no michael@559: AutoReqProv: no michael@559: michael@559: %description michael@559: OSSP uuid is a ISO-C:1999 application programming interface (API) michael@559: and corresponding command line interface (CLI) for the generation michael@559: of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally michael@559: Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of michael@559: version 1 (time and node based), version 3 (name based, MD5), michael@559: version 4 (random number based) and version 5 (name based, SHA-1). michael@559: Additional API bindings are provided for the languages ISO-C++:1998, michael@559: Perl:5 and PHP:4/5. Optional backward compatibility exists for the michael@559: ISO-C DCE-1.1 and Perl Data::UUID APIs. michael@559: michael@559: UUIDs are 128 bit numbers which are intended to have a high michael@559: likelihood of uniqueness over space and time and are computationally michael@559: difficult to guess. They are globally unique identifiers which michael@559: can be locally generated without contacting a global registration michael@559: authority. UUIDs are intended as unique identifiers for both mass michael@559: tagging objects with an extremely short lifetime and to reliably michael@559: identifying very persistent objects across a network. michael@559: michael@559: %track michael@559: prog uuid = { michael@559: version = %{version} michael@559: url = ftp://ftp.ossp.org/pkg/lib/uuid/ michael@559: regex = uuid-(__VER__)\.tar\.gz michael@559: } michael@559: michael@559: %prep michael@559: %setup -q michael@559: %patch -p0 michael@560: %{l_shtool} subst \ michael@560: -e 's;function_entry;zend_function_entry;' \ michael@560: php/uuid.c michael@560: %{l_shtool} subst \ michael@560: -e 's;\[\.\.\];[\`pwd\`/..];g' \ michael@560: php/config.m4 michael@559: michael@559: %build michael@559: CC="%{l_cc}" \ michael@559: CFLAGS="%{l_cflags -O}" \ michael@559: ./configure \ michael@559: --prefix=%{l_prefix} \ michael@559: --mandir=%{l_prefix}/man \ michael@559: %if "%{with_dce}" == "yes" michael@559: --with-dce \ michael@559: %endif michael@559: %if "%{with_cxx}" == "yes" michael@559: --with-cxx \ michael@559: %endif michael@559: %if "%{with_php}" == "yes" michael@559: --with-php \ michael@559: %endif michael@559: %if "%{with_pgsql}" == "yes" michael@559: --with-pgsql \ michael@559: %endif michael@559: --disable-shared michael@559: %{l_make} %{l_mflags -O} michael@559: %if "%{with_perl}" == "yes" michael@559: %{l_prefix}/bin/perl-openpkg prepare michael@559: %{l_prefix}/bin/perl-openpkg -d perl configure build michael@559: %endif michael@559: michael@559: %install michael@559: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@559: %if "%{with_perl}" == "yes" michael@559: %{l_prefix}/bin/perl-openpkg -d perl install michael@559: %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup michael@559: %else michael@559: >perl-openpkg-files michael@559: %endif michael@559: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ michael@559: %{l_files_std} `cat perl-openpkg-files` michael@559: michael@559: %files -f files michael@559: michael@559: %clean michael@559: