3 %bcond_without php # don't build PHP binding
4 %bcond_without perl # don't build Perl binding
5 %bcond_with pgsql # build postgresql binding
6 %bcond_without static_libs # don't build static libraries
8 Summary: Universally Unique Identifier library
9 Summary(pl.UTF-8): Biblioteka unikalnych identyfikatorów UUID
15 Source0: ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz
16 # Source0-md5: 5db0d43a9022a6ebbbc25337ae28942f
17 Patch0: uuid-ossp-prefix.patch
18 URL: http://www.ossp.org/pkg/lib/uuid/
19 %{?with_php:BuildRequires: /usr/bin/php}
20 BuildRequires: libstdc++-devel
21 BuildRequires: libtool
22 %{?with_perl:BuildRequires: perl-devel}
23 %{?with_php:BuildRequires: php-devel >= 3:5.0.0}
24 %{?with_pgsql:BuildRequires: postgresql-backend-devel}
25 %{?with_pgsql:BuildRequires: postgresql-devel}
26 BuildRequires: rpmbuild(macros) >= 1.519
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 OSSP uuid is a ISO-C:1999 application programming interface (API) and
31 corresponding command line interface (CLI) for the generation of DCE
32 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally Unique
33 Identifier (UUID). It supports DCE 1.1 variant UUIDs of version 1
34 (time and node based), version 3 (name based, MD5), version 4 (random
35 number based) and version 5 (name based, SHA-1). Additional API
36 bindings are provided for the languages ISO-C++:1998, Perl:5 and
37 PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
38 and Perl Data::UUID APIs.
40 %description -l pl.UTF-8
41 OSSP uuid to interfejs programistyczny (API) ISO-C:1999 i
42 odpowiadający mu interfejs linii poleceń (CLI) do generowania
43 całkowicie unikalnych identyfikatorów UUID (Universally Unique
44 Identifier) zgodnych z DCE 1.1, ISO/IEC 11578:1996 i RFC 4122.
45 Obsługuje wariant DCE 1.1 UUID-ów w wersji 1 (oparty na czasie i
46 węzłach), w wersji 3 (oparty na nazwie i MD5), w wersji 4 (oparty na
47 liczbach losowych) oraz w wersji 5 (oparty na nazwach i SHA-1).
48 Załączone są dodatkowe wiązania API do języków ISO-C++:1998, Perl:5
49 oraz PHP:4/5. Istnieje też opcjonalna warstwa kompatybilności dla API
50 ISO-C DCE-1.1 i perlowego Data::UUID.
53 Summary: Development files for Universally Unique Identifier library
54 Summary(pl.UTF-8): Pliki programistyczne biblioteki OSSP uuid
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
59 Development headers and libraries for OSSP uuid.
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki OSSP uuid.
65 Summary: Universally Unique Identifier library - static library
66 Summary(pl.UTF-8): Biblioteka statyczna OSSP uuid
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Universally Unique Identifier library - static library
73 %description static -l pl.UTF-8
74 Biblioteka statyczna OSSP uuid
77 Summary: C++ support for Universally Unique Identifier library
78 Summary(pl.UTF-8): Wiązania C++ dla biblioteki OSSP uuid
80 Requires: %{name} = %{version}-%{release}
83 C++ binding for OSSP uuid library.
85 %description c++ -l pl.UTF-8
86 Wiązania C++ dla biblioteki OSSP uuid.
89 Summary: C++ development support for Universally Unique Identifier library
90 Summary(pl.UTF-8): Pliki programistyczne wiązania C++ biblioteki OSSP uuid
91 Group: Development/Libraries
92 Requires: %{name}-c++ = %{version}-%{release}
93 Requires: %{name}-devel = %{version}-%{release}
94 Requires: libstdc++-devel
96 %description c++-devel
97 C++ development headers and libraries for OSSP uuid.
99 %description c++-devel -l pl.UTF-8
100 Pliki programistyczne wiązania C++ biblioteki OSSP uuid.
103 Summary: C++ support for Universally Unique Identifier library - static library
104 Summary(pl.UTF-8): Wiązania C++ dla biblioteki OSSP uuid - biblioteka statyczna
105 Group: Development/Libraries
106 Requires: %{name}-c++-devel = %{version}-%{release}
108 %description c++-static
109 C++ support for Universally Unique Identifier library - static library
111 %description c++-static -l pl.UTF-8
112 Wiązania C++ dla biblioteki OSSP uuid - biblioteka statyczna
115 Summary: DCE support for Universally Unique Identifier library
116 Summary(pl.UTF-8): Obsługa DCE dla biblioteki OSSP uuid
117 Group: Development/Libraries
118 Requires: %{name} = %{version}-%{release}
121 DCE OSSP uuid library.
123 %description dce -l pl.UTF-8
124 Biblioteka DCE OSSP uuid.
127 Summary: DCE development support for Universally Unique Identifier library
128 Summary(pl.UTF-8): Pliki programistyczne obsługi DCE dla biblioteki OSSP uuid
129 Group: Development/Libraries
130 Requires: %{name}-dce = %{version}-%{release}
131 Requires: %{name}-devel = %{version}-%{release}
133 %description dce-devel
134 DCE development headers and libraries for OSSP uuid.
136 %description dce-devel -l pl.UTF-8
137 Pliki programistyczne obsługi DCE dla biblioteki OSSP uuid.
140 Summary: DCE development support for Universally Unique Identifier library - static library
141 Summary(pl.UTF-8): Pliki programistyczne obsługi DCE dla biblioteki OSSP uuid - biblioteka statyczna
142 Group: Development/Libraries
143 Requires: %{name}-dce-devel = %{version}-%{release}
145 %description dce-static
146 DCE development support for Universally Unique Identifier library -
149 %description dce-static -l pl.UTF-8
150 Pliki programistyczne obsługi DCE dla biblioteki OSSP uuid -
153 %package -n perl-uuid
154 Summary: OSSP uuid Perl Binding
155 Summary(pl.UTF-8): Perlowe wiązania biblioteki OSSP uuid
156 Group: Development/Libraries
157 Requires: %{name} = %{version}-%{release}
159 %description -n perl-uuid
160 Perl OSSP uuid modules, which includes a Data::UUID replacement.
162 %description -n perl-uuid -l pl.UTF-8
163 Moduły Perla OSSP uuid, zawierające zamiennik Data::UUID.
166 Summary: PHP support for Universally Unique Identifier library
167 Summary(pl.UTF-8): Wiązania PHP dla biblioteki OSSP UUID
168 Group: Development/Libraries
169 Requires: %{name} = %{version}-%{release}
170 %{?requires_php_extension}
171 Requires: php-common >= 4:5.0.4
173 %description -n php-uuid
174 UUID is a PHP extension for the creation of Universally Unique
177 %description -n php-uuid -l pl.UTF-8
178 UUID to rozrzeszenie PHP do tworzenia całkowicie unikalnych
179 identyfikatorów UUID.
181 %package -n postgresql-uuid
182 Summary: OSSP uuid bindings for PostgreSQL
183 Summary(pl.UTF-8): Wiązania OSSP uuid dla PostgreSQL-a
184 Group: Development/Libraries
185 Requires: %{name} = %{version}-%{release}
187 %description -n postgresql-uuid
188 PostgreSQL OSSP uuid module.
190 %description -n postgresql-uuid -l pl.UTF-8
191 Moduł OSSP uuid dla PostgreSQL-a.
194 %setup -q -n uuid-%{version}
200 --includedir=%{_includedir}/ossp-uuid \
201 %{!?with_static_libs:--disable-static} \
204 --with%{!?with_perl:out}-perl \
205 --with%{!?with_php:out}-php \
206 --with%{!?with_pgsql:out}-pgsql
211 rm -rf $RPM_BUILD_ROOT
212 install -d $RPM_BUILD_ROOT/%{_lib}
216 DESTDIR=$RPM_BUILD_ROOT
218 mv -f $RPM_BUILD_ROOT%{_libdir}/libossp-uuid.so.* $RPM_BUILD_ROOT/%{_lib}
219 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libossp-uuid.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libossp-uuid.so
222 %{__make} pure_install \
225 DESTDIR=$RPM_BUILD_ROOT
227 rm $RPM_BUILD_ROOT%{perl_vendorarch}/OSSP/uuid.pod
228 rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/OSSP/uuid/.packlist
229 rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/OSSP/uuid/uuid.bs
233 install -d $RPM_BUILD_ROOT{%{php_data_dir},%{php_sysconfdir}/conf.d}
237 EXTDIR=%{php_extensiondir} \
238 DESTDIR=$RPM_BUILD_ROOT
240 mv $RPM_BUILD_ROOT{%{php_extensiondir},%{php_data_dir}}/uuid.php
241 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{name}.ini
242 ; Enable %{name} extension module
248 rm -rf $RPM_BUILD_ROOT
250 %post -p /sbin/ldconfig
251 %postun -p /sbin/ldconfig
253 %post c++ -p /sbin/ldconfig
254 %postun c++ -p /sbin/ldconfig
256 %post dce -p /sbin/ldconfig
257 %postun dce -p /sbin/ldconfig
260 %defattr(644,root,root,755)
261 %doc AUTHORS ChangeLog HISTORY NEWS PORTING README SEEALSO THANKS TODO USERS
262 %attr(755,root,root) %{_bindir}/uuid
263 %attr(755,root,root) /%{_lib}/libossp-uuid.so.*.*.*
264 %attr(755,root,root) %ghost /%{_lib}/libossp-uuid.so.16
265 %{_mandir}/man1/uuid.1*
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_bindir}/uuid-config
270 %attr(755,root,root) %{_libdir}/libossp-uuid.so
271 %{_libdir}/libossp-uuid.la
272 %dir %{_includedir}/ossp-uuid
273 %{_includedir}/ossp-uuid/uuid.h
274 %{_pkgconfigdir}/ossp-uuid.pc
275 %{_mandir}/man1/uuid-config.1*
276 %{_mandir}/man3/ossp-uuid.3*
278 %if %{with static_libs}
280 %defattr(644,root,root,755)
281 %{_libdir}/libossp-uuid.a
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_libdir}/libossp-uuid++.so.*.*.*
287 %attr(755,root,root) %ghost %{_libdir}/libossp-uuid++.so.16
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libossp-uuid++.so
292 %{_libdir}/libossp-uuid++.la
293 %{_includedir}/ossp-uuid/uuid++.hh
294 %{_mandir}/man3/uuid++.3*
296 %if %{with static_libs}
298 %defattr(644,root,root,755)
299 %{_libdir}/libossp-uuid++.a
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/libossp-uuid_dce.so.*.*.*
305 %attr(755,root,root) %ghost %{_libdir}/libossp-uuid_dce.so.16
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/libossp-uuid_dce.so
310 %{_libdir}/libossp-uuid_dce.la
311 %{_includedir}/ossp-uuid/uuid_dce.h
313 %if %{with static_libs}
315 %defattr(644,root,root,755)
316 %{_libdir}/libossp-uuid_dce.a
321 %defattr(644,root,root,755)
322 %dir %{perl_vendorarch}/OSSP
323 %{perl_vendorarch}/OSSP/uuid.pm
324 %dir %{perl_vendorarch}/auto/OSSP
325 %dir %{perl_vendorarch}/auto/OSSP/uuid
326 %attr(755,root,root) %{perl_vendorarch}/auto/OSSP/uuid/uuid.so
327 %{_mandir}/man3/OSSP::uuid.3*
332 %defattr(644,root,root,755)
333 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{name}.ini
334 %attr(755,root,root) %{php_extensiondir}/%{name}.so
335 %{php_data_dir}/uuid.php
339 %files -n postgresql-uuid
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/postgresql/ossp-uuid.so
342 %{_datadir}/postgresql/uuid.sql