Import package vendor original specs for necessary manipulations.

Tue, 28 Aug 2012 18:33:45 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:33:45 +0200
changeset 559
5366946896cd
parent 558
d05aa91cd793
child 560
680d05ed5db8

Import package vendor original specs for necessary manipulations.

uuid/uuid.patch file | annotate | diff | comparison | revisions
uuid/uuid.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/uuid/uuid.patch	Tue Aug 28 18:33:45 2012 +0200
     1.3 @@ -0,0 +1,12 @@
     1.4 +Index: perl/Makefile.PL
     1.5 +--- perl/Makefile.PL.orig	2007-01-01 19:13:18 +0100
     1.6 ++++ perl/Makefile.PL	2008-07-17 09:58:04 +0200
     1.7 +@@ -61,7 +61,7 @@
     1.8 +     NO_META           => 1,
     1.9 +     #    cruel hack to workaround the conflict between OSSP uuid's
    1.10 +     #    uuid_create() function and one from FreeBSD's libc
    1.11 +-    ((   "$Config{'osname'}$Config{'osvers'}" =~ m/^freebsd[56]\./
    1.12 ++    ((   "$Config{'osname'}$Config{'osvers'}" =~ m/^freebsd[5-8]\./
    1.13 +       and $Config{'ld'} =~ m/cc$/ and -f "/usr/include/uuid.h") ?
    1.14 +       ( LDDLFLAGS => $Config{'lddlflags'} . ' -Wl,-Bsymbolic') : ())
    1.15 + );
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/uuid/uuid.spec	Tue Aug 28 18:33:45 2012 +0200
     2.3 @@ -0,0 +1,143 @@
     2.4 +##
     2.5 +##  uuid.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package information
    2.28 +Name:         uuid
    2.29 +Summary:      Universally Unique Identifier (UUID)
    2.30 +URL:          http://www.ossp.org/pkg/lib/uuid/
    2.31 +Vendor:       The OSSP Project
    2.32 +Packager:     OpenPKG Foundation e.V.
    2.33 +Distribution: OpenPKG Community
    2.34 +Class:        BASE
    2.35 +Group:        Libraries
    2.36 +License:      MIT/X11-style
    2.37 +Version:      1.6.2
    2.38 +Release:      20080717
    2.39 +
    2.40 +#   package options
    2.41 +%option       with_dce   no
    2.42 +%option       with_cxx   no
    2.43 +%option       with_perl  no
    2.44 +%option       with_php   no
    2.45 +%option       with_pgsql no
    2.46 +
    2.47 +#   list of sources
    2.48 +Source0:      ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz
    2.49 +Patch0:       uuid.patch
    2.50 +
    2.51 +#   build information
    2.52 +Prefix:       %{l_prefix}
    2.53 +BuildRoot:    %{l_buildroot}
    2.54 +BuildPreReq:  OpenPKG, openpkg >= 20050615
    2.55 +PreReq:       OpenPKG, openpkg >= 20050615
    2.56 +%if "%{with_cxx}" == "yes"
    2.57 +BuildPreReq:  gcc
    2.58 +%endif
    2.59 +%if "%{with_perl}" == "yes"
    2.60 +BuildPreReq:  perl, perl-openpkg
    2.61 +PreReq:       perl
    2.62 +%endif
    2.63 +%if "%{with_php}" == "yes"
    2.64 +BuildPreReq:  php, autoconf, libtool
    2.65 +PreReq:       php
    2.66 +%endif
    2.67 +%if "%{with_pgsql}" == "yes"
    2.68 +BuildPreReq:  postgresql >= 8.1.2-20060115
    2.69 +PreReq:       postgresql >= 8.1.2-20060115
    2.70 +%endif
    2.71 +AutoReq:      no
    2.72 +AutoReqProv:  no
    2.73 +
    2.74 +%description
    2.75 +    OSSP uuid is a ISO-C:1999 application programming interface (API)
    2.76 +    and corresponding command line interface (CLI) for the generation
    2.77 +    of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally
    2.78 +    Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of
    2.79 +    version 1 (time and node based), version 3 (name based, MD5),
    2.80 +    version 4 (random number based) and version 5 (name based, SHA-1).
    2.81 +    Additional API bindings are provided for the languages ISO-C++:1998,
    2.82 +    Perl:5 and PHP:4/5. Optional backward compatibility exists for the
    2.83 +    ISO-C DCE-1.1 and Perl Data::UUID APIs.
    2.84 +
    2.85 +    UUIDs are 128 bit numbers which are intended to have a high
    2.86 +    likelihood of uniqueness over space and time and are computationally
    2.87 +    difficult to guess. They are globally unique identifiers which
    2.88 +    can be locally generated without contacting a global registration
    2.89 +    authority. UUIDs are intended as unique identifiers for both mass
    2.90 +    tagging objects with an extremely short lifetime and to reliably
    2.91 +    identifying very persistent objects across a network.
    2.92 +
    2.93 +%track
    2.94 +    prog uuid = {
    2.95 +        version   = %{version}
    2.96 +        url       = ftp://ftp.ossp.org/pkg/lib/uuid/
    2.97 +        regex     = uuid-(__VER__)\.tar\.gz
    2.98 +    }
    2.99 +
   2.100 +%prep
   2.101 +    %setup -q
   2.102 +    %patch -p0
   2.103 +
   2.104 +%build
   2.105 +    CC="%{l_cc}" \
   2.106 +    CFLAGS="%{l_cflags -O}" \
   2.107 +    GREP="grep" \
   2.108 +    ./configure \
   2.109 +        --prefix=%{l_prefix} \
   2.110 +        --mandir=%{l_prefix}/man \
   2.111 +%if "%{with_dce}" == "yes"
   2.112 +        --with-dce \
   2.113 +%endif
   2.114 +%if "%{with_cxx}" == "yes"
   2.115 +        --with-cxx \
   2.116 +%endif
   2.117 +%if "%{with_php}" == "yes"
   2.118 +        --with-php \
   2.119 +%endif
   2.120 +%if "%{with_pgsql}" == "yes"
   2.121 +        --with-pgsql \
   2.122 +%endif
   2.123 +        --disable-shared
   2.124 +    %{l_make} %{l_mflags -O}
   2.125 +%if "%{with_perl}" == "yes"
   2.126 +    %{l_prefix}/bin/perl-openpkg prepare
   2.127 +    %{l_prefix}/bin/perl-openpkg -d perl configure build
   2.128 +%endif
   2.129 +
   2.130 +%install
   2.131 +    rm -rf $RPM_BUILD_ROOT
   2.132 +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
   2.133 +%if "%{with_perl}" == "yes"
   2.134 +    %{l_prefix}/bin/perl-openpkg -d perl install
   2.135 +    %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
   2.136 +%else
   2.137 +    >perl-openpkg-files
   2.138 +%endif
   2.139 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   2.140 +        %{l_files_std} `cat perl-openpkg-files`
   2.141 +
   2.142 +%files -f files
   2.143 +
   2.144 +%clean
   2.145 +    rm -rf $RPM_BUILD_ROOT
   2.146 +

mercurial