|
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 ## |
|
23 |
|
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: 20080717 |
|
36 |
|
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 |
|
43 |
|
44 # list of sources |
|
45 Source0: ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz |
|
46 Patch0: uuid.patch |
|
47 |
|
48 # build information |
|
49 Prefix: %{l_prefix} |
|
50 BuildRoot: %{l_buildroot} |
|
51 BuildPreReq: OpenPKG, openpkg >= 20050615 |
|
52 PreReq: OpenPKG, openpkg >= 20050615 |
|
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 |
|
70 |
|
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. |
|
81 |
|
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. |
|
89 |
|
90 %track |
|
91 prog uuid = { |
|
92 version = %{version} |
|
93 url = ftp://ftp.ossp.org/pkg/lib/uuid/ |
|
94 regex = uuid-(__VER__)\.tar\.gz |
|
95 } |
|
96 |
|
97 %prep |
|
98 %setup -q |
|
99 %patch -p0 |
|
100 |
|
101 %build |
|
102 CC="%{l_cc}" \ |
|
103 CFLAGS="%{l_cflags -O}" \ |
|
104 GREP="grep" \ |
|
105 ./configure \ |
|
106 --prefix=%{l_prefix} \ |
|
107 --mandir=%{l_prefix}/man \ |
|
108 %if "%{with_dce}" == "yes" |
|
109 --with-dce \ |
|
110 %endif |
|
111 %if "%{with_cxx}" == "yes" |
|
112 --with-cxx \ |
|
113 %endif |
|
114 %if "%{with_php}" == "yes" |
|
115 --with-php \ |
|
116 %endif |
|
117 %if "%{with_pgsql}" == "yes" |
|
118 --with-pgsql \ |
|
119 %endif |
|
120 --disable-shared |
|
121 %{l_make} %{l_mflags -O} |
|
122 %if "%{with_perl}" == "yes" |
|
123 %{l_prefix}/bin/perl-openpkg prepare |
|
124 %{l_prefix}/bin/perl-openpkg -d perl configure build |
|
125 %endif |
|
126 |
|
127 %install |
|
128 rm -rf $RPM_BUILD_ROOT |
|
129 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
|
130 %if "%{with_perl}" == "yes" |
|
131 %{l_prefix}/bin/perl-openpkg -d perl install |
|
132 %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup |
|
133 %else |
|
134 >perl-openpkg-files |
|
135 %endif |
|
136 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
|
137 %{l_files_std} `cat perl-openpkg-files` |
|
138 |
|
139 %files -f files |
|
140 |
|
141 %clean |
|
142 rm -rf $RPM_BUILD_ROOT |
|
143 |