]> git.pld-linux.org Git - packages/ossp-uuid.git/blame - ossp-uuid.spec
- rel 21
[packages/ossp-uuid.git] / ossp-uuid.spec
CommitLineData
ce1a1410
ER
1#
2# Conditional build:
fe61f643
JP
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
64edb34a 6%bcond_without static_libs # don't build static libraries
674f5a50 7
8becfe02 8Summary: Universally Unique Identifier library
b85a0049 9Summary(pl.UTF-8): Biblioteka unikalnych identyfikatorów UUID
660f1672 10Name: ossp-uuid
e531fcde 11Version: 1.6.2
57cedfce 12Release: 21
8becfe02
ER
13License: MIT
14Group: Libraries
660f1672 15Source0: ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz
e531fcde 16# Source0-md5: 5db0d43a9022a6ebbbc25337ae28942f
660f1672 17Patch0: uuid-ossp-prefix.patch
ddcb10f4 18Patch1: php3.patch
b85a0049 19URL: http://www.ossp.org/pkg/lib/uuid/
b19ded27 20%{?with_php:BuildRequires: /usr/bin/php}
21BuildRequires: libstdc++-devel
8becfe02 22BuildRequires: libtool
674f5a50 23%{?with_perl:BuildRequires: perl-devel}
f832c0e2 24%{?with_php:BuildRequires: php-devel >= 3:5.0.0}
b19ded27 25%{?with_pgsql:BuildRequires: postgresql-backend-devel}
ce1a1410 26%{?with_pgsql:BuildRequires: postgresql-devel}
674f5a50 27BuildRequires: rpmbuild(macros) >= 1.519
8becfe02
ER
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31OSSP uuid is a ISO-C:1999 application programming interface (API) and
32corresponding command line interface (CLI) for the generation of DCE
331.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally Unique
34Identifier (UUID). It supports DCE 1.1 variant UUIDs of version 1
35(time and node based), version 3 (name based, MD5), version 4 (random
36number based) and version 5 (name based, SHA-1). Additional API
37bindings are provided for the languages ISO-C++:1998, Perl:5 and
38PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
39and Perl Data::UUID APIs.
40
b85a0049
JB
41%description -l pl.UTF-8
42OSSP uuid to interfejs programistyczny (API) ISO-C:1999 i
43odpowiadający mu interfejs linii poleceń (CLI) do generowania
44całkowicie unikalnych identyfikatorów UUID (Universally Unique
45Identifier) zgodnych z DCE 1.1, ISO/IEC 11578:1996 i RFC 4122.
46Obsługuje wariant DCE 1.1 UUID-ów w wersji 1 (oparty na czasie i
47węzłach), w wersji 3 (oparty na nazwie i MD5), w wersji 4 (oparty na
48liczbach losowych) oraz w wersji 5 (oparty na nazwach i SHA-1).
49Załączone są dodatkowe wiązania API do języków ISO-C++:1998, Perl:5
674f5a50
ER
50oraz PHP:4/5. Istnieje też opcjonalna warstwa kompatybilności dla API
51ISO-C DCE-1.1 i perlowego Data::UUID.
b85a0049 52
8becfe02 53%package devel
b85a0049
JB
54Summary: Development files for Universally Unique Identifier library
55Summary(pl.UTF-8): Pliki programistyczne biblioteki OSSP uuid
8becfe02
ER
56Group: Development/Libraries
57Requires: %{name} = %{version}-%{release}
58
59%description devel
60Development headers and libraries for OSSP uuid.
61
b85a0049
JB
62%description devel -l pl.UTF-8
63Pliki nagłówkowe biblioteki OSSP uuid.
64
64edb34a 65%package static
66Summary: Universally Unique Identifier library - static library
67Summary(pl.UTF-8): Biblioteka statyczna OSSP uuid
68Group: Development/Libraries
69Requires: %{name}-devel = %{version}-%{release}
70
71%description static
72Universally Unique Identifier library - static library
73
74%description static -l pl.UTF-8
75Biblioteka statyczna OSSP uuid
76
8becfe02
ER
77%package c++
78Summary: C++ support for Universally Unique Identifier library
b85a0049 79Summary(pl.UTF-8): Wiązania C++ dla biblioteki OSSP uuid
8becfe02
ER
80Group: Libraries
81Requires: %{name} = %{version}-%{release}
82
83%description c++
b85a0049
JB
84C++ binding for OSSP uuid library.
85
86%description c++ -l pl.UTF-8
87Wiązania C++ dla biblioteki OSSP uuid.
8becfe02
ER
88
89%package c++-devel
90Summary: C++ development support for Universally Unique Identifier library
b85a0049 91Summary(pl.UTF-8): Pliki programistyczne wiązania C++ biblioteki OSSP uuid
8becfe02
ER
92Group: Development/Libraries
93Requires: %{name}-c++ = %{version}-%{release}
94Requires: %{name}-devel = %{version}-%{release}
e7ab4cf6 95Requires: libstdc++-devel
8becfe02
ER
96
97%description c++-devel
98C++ development headers and libraries for OSSP uuid.
99
b85a0049
JB
100%description c++-devel -l pl.UTF-8
101Pliki programistyczne wiązania C++ biblioteki OSSP uuid.
102
64edb34a 103%package c++-static
104Summary: C++ support for Universally Unique Identifier library - static library
105Summary(pl.UTF-8): Wiązania C++ dla biblioteki OSSP uuid - biblioteka statyczna
106Group: Development/Libraries
107Requires: %{name}-c++-devel = %{version}-%{release}
108
109%description c++-static
110C++ support for Universally Unique Identifier library - static library
111
112%description c++-static -l pl.UTF-8
113Wiązania C++ dla biblioteki OSSP uuid - biblioteka statyczna
114
8becfe02
ER
115%package dce
116Summary: DCE support for Universally Unique Identifier library
b85a0049 117Summary(pl.UTF-8): Obsługa DCE dla biblioteki OSSP uuid
8becfe02
ER
118Group: Development/Libraries
119Requires: %{name} = %{version}-%{release}
120
121%description dce
122DCE OSSP uuid library.
123
b85a0049
JB
124%description dce -l pl.UTF-8
125Biblioteka DCE OSSP uuid.
126
8becfe02
ER
127%package dce-devel
128Summary: DCE development support for Universally Unique Identifier library
b85a0049 129Summary(pl.UTF-8): Pliki programistyczne obsługi DCE dla biblioteki OSSP uuid
8becfe02
ER
130Group: Development/Libraries
131Requires: %{name}-dce = %{version}-%{release}
132Requires: %{name}-devel = %{version}-%{release}
133
134%description dce-devel
135DCE development headers and libraries for OSSP uuid.
136
b85a0049
JB
137%description dce-devel -l pl.UTF-8
138Pliki programistyczne obsługi DCE dla biblioteki OSSP uuid.
139
64edb34a 140%package dce-static
141Summary: DCE development support for Universally Unique Identifier library - static library
142Summary(pl.UTF-8): Pliki programistyczne obsługi DCE dla biblioteki OSSP uuid - biblioteka statyczna
143Group: Development/Libraries
144Requires: %{name}-dce-devel = %{version}-%{release}
145
146%description dce-static
147DCE development support for Universally Unique Identifier library -
148static library
149
150%description dce-static -l pl.UTF-8
151Pliki programistyczne obsługi DCE dla biblioteki OSSP uuid -
152biblioteka statyczna
153
660f1672 154%package -n perl-uuid
f832c0e2 155Summary: OSSP uuid Perl Binding
b85a0049 156Summary(pl.UTF-8): Perlowe wiązania biblioteki OSSP uuid
8becfe02
ER
157Group: Development/Libraries
158Requires: %{name} = %{version}-%{release}
159
660f1672 160%description -n perl-uuid
8becfe02
ER
161Perl OSSP uuid modules, which includes a Data::UUID replacement.
162
b85a0049
JB
163%description -n perl-uuid -l pl.UTF-8
164Moduły Perla OSSP uuid, zawierające zamiennik Data::UUID.
165
660f1672 166%package -n php-uuid
8becfe02 167Summary: PHP support for Universally Unique Identifier library
b85a0049 168Summary(pl.UTF-8): Wiązania PHP dla biblioteki OSSP UUID
8becfe02
ER
169Group: Development/Libraries
170Requires: %{name} = %{version}-%{release}
f832c0e2 171%{?requires_php_extension}
04c3829e 172Requires: php(core) >= 5.0.4
8becfe02 173
660f1672 174%description -n php-uuid
f832c0e2
ER
175UUID is a PHP extension for the creation of Universally Unique
176Identifiers (UUID).
8becfe02 177
b85a0049
JB
178%description -n php-uuid -l pl.UTF-8
179UUID to rozrzeszenie PHP do tworzenia całkowicie unikalnych
180identyfikatorów UUID.
181
660f1672 182%package -n postgresql-uuid
f832c0e2 183Summary: OSSP uuid bindings for PostgreSQL
b85a0049 184Summary(pl.UTF-8): Wiązania OSSP uuid dla PostgreSQL-a
8becfe02
ER
185Group: Development/Libraries
186Requires: %{name} = %{version}-%{release}
187
660f1672 188%description -n postgresql-uuid
8becfe02
ER
189PostgreSQL OSSP uuid module.
190
b85a0049
JB
191%description -n postgresql-uuid -l pl.UTF-8
192Moduł OSSP uuid dla PostgreSQL-a.
193
8becfe02 194%prep
660f1672 195%setup -q -n uuid-%{version}
e73d7b29 196%patch0 -p1
ddcb10f4 197%patch1 -p1
8becfe02
ER
198
199%build
200# Build the library.
201%configure \
a316374e 202 --includedir=%{_includedir}/ossp-uuid \
64edb34a 203 %{!?with_static_libs:--disable-static} \
8becfe02
ER
204 --with-dce \
205 --with-cxx \
ce1a1410
ER
206 --with%{!?with_perl:out}-perl \
207 --with%{!?with_php:out}-php \
208 --with%{!?with_pgsql:out}-pgsql
8becfe02
ER
209
210%{__make}
211
8becfe02
ER
212%install
213rm -rf $RPM_BUILD_ROOT
fda6c944 214install -d $RPM_BUILD_ROOT/%{_lib}
8becfe02 215%{__make} install \
674f5a50
ER
216 WITH_PHP=no \
217 WITH_PERL=no \
8becfe02
ER
218 DESTDIR=$RPM_BUILD_ROOT
219
fda6c944
ER
220mv -f $RPM_BUILD_ROOT%{_libdir}/libossp-uuid.so.* $RPM_BUILD_ROOT/%{_lib}
221ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libossp-uuid.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libossp-uuid.so
222
674f5a50
ER
223%if %{with perl}
224%{__make} pure_install \
225 -C perl \
226 INSTALLDIRS=vendor \
227 DESTDIR=$RPM_BUILD_ROOT
228
229rm $RPM_BUILD_ROOT%{perl_vendorarch}/OSSP/uuid.pod
230rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/OSSP/uuid/.packlist
231rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/OSSP/uuid/uuid.bs
232%endif
233
234%if %{with php}
235install -d $RPM_BUILD_ROOT{%{php_data_dir},%{php_sysconfdir}/conf.d}
236%{__make} install \
237 -C php \
238 -f Makefile.local \
239 EXTDIR=%{php_extensiondir} \
240 DESTDIR=$RPM_BUILD_ROOT
241
242mv $RPM_BUILD_ROOT{%{php_extensiondir},%{php_data_dir}}/uuid.php
243cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{name}.ini
244; Enable %{name} extension module
245extension=%{name}.so
246EOF
247%endif
248
8becfe02
ER
249%clean
250rm -rf $RPM_BUILD_ROOT
251
b85a0049
JB
252%post -p /sbin/ldconfig
253%postun -p /sbin/ldconfig
8becfe02 254
b85a0049
JB
255%post c++ -p /sbin/ldconfig
256%postun c++ -p /sbin/ldconfig
8becfe02 257
b85a0049
JB
258%post dce -p /sbin/ldconfig
259%postun dce -p /sbin/ldconfig
8becfe02
ER
260
261%files
262%defattr(644,root,root,755)
263%doc AUTHORS ChangeLog HISTORY NEWS PORTING README SEEALSO THANKS TODO USERS
264%attr(755,root,root) %{_bindir}/uuid
fda6c944
ER
265%attr(755,root,root) /%{_lib}/libossp-uuid.so.*.*.*
266%attr(755,root,root) %ghost /%{_lib}/libossp-uuid.so.16
237e5788 267%{_mandir}/man1/uuid.1*
8becfe02
ER
268
269%files devel
270%defattr(644,root,root,755)
271%attr(755,root,root) %{_bindir}/uuid-config
b85a0049
JB
272%attr(755,root,root) %{_libdir}/libossp-uuid.so
273%{_libdir}/libossp-uuid.la
a316374e 274%dir %{_includedir}/ossp-uuid
275%{_includedir}/ossp-uuid/uuid.h
e73d7b29 276%{_pkgconfigdir}/ossp-uuid.pc
237e5788 277%{_mandir}/man1/uuid-config.1*
b85a0049 278%{_mandir}/man3/ossp-uuid.3*
8becfe02 279
64edb34a 280%if %{with static_libs}
281%files static
282%defattr(644,root,root,755)
283%{_libdir}/libossp-uuid.a
284%endif
285
8becfe02
ER
286%files c++
287%defattr(644,root,root,755)
e73d7b29
ER
288%attr(755,root,root) %{_libdir}/libossp-uuid++.so.*.*.*
289%attr(755,root,root) %ghost %{_libdir}/libossp-uuid++.so.16
8becfe02
ER
290
291%files c++-devel
292%defattr(644,root,root,755)
b85a0049 293%attr(755,root,root) %{_libdir}/libossp-uuid++.so
e73d7b29 294%{_libdir}/libossp-uuid++.la
b85a0049 295%{_includedir}/ossp-uuid/uuid++.hh
8becfe02
ER
296%{_mandir}/man3/uuid++.3*
297
64edb34a 298%if %{with static_libs}
299%files c++-static
300%defattr(644,root,root,755)
301%{_libdir}/libossp-uuid++.a
302%endif
303
8becfe02
ER
304%files dce
305%defattr(644,root,root,755)
e73d7b29
ER
306%attr(755,root,root) %{_libdir}/libossp-uuid_dce.so.*.*.*
307%attr(755,root,root) %ghost %{_libdir}/libossp-uuid_dce.so.16
8becfe02
ER
308
309%files dce-devel
310%defattr(644,root,root,755)
b85a0049 311%attr(755,root,root) %{_libdir}/libossp-uuid_dce.so
e73d7b29 312%{_libdir}/libossp-uuid_dce.la
b85a0049 313%{_includedir}/ossp-uuid/uuid_dce.h
8becfe02 314
64edb34a 315%if %{with static_libs}
316%files dce-static
317%defattr(644,root,root,755)
318%{_libdir}/libossp-uuid_dce.a
319%endif
320
ce1a1410 321%if %{with perl}
660f1672 322%files -n perl-uuid
8becfe02 323%defattr(644,root,root,755)
674f5a50
ER
324%dir %{perl_vendorarch}/OSSP
325%{perl_vendorarch}/OSSP/uuid.pm
326%dir %{perl_vendorarch}/auto/OSSP
327%dir %{perl_vendorarch}/auto/OSSP/uuid
328%attr(755,root,root) %{perl_vendorarch}/auto/OSSP/uuid/uuid.so
8becfe02 329%{_mandir}/man3/OSSP::uuid.3*
ce1a1410 330%endif
8becfe02 331
ce1a1410 332%if %{with php}
660f1672 333%files -n php-uuid
8becfe02 334%defattr(644,root,root,755)
674f5a50
ER
335%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{name}.ini
336%attr(755,root,root) %{php_extensiondir}/%{name}.so
337%{php_data_dir}/uuid.php
ce1a1410 338%endif
8becfe02 339
ce1a1410 340%if %{with pgsql}
660f1672 341%files -n postgresql-uuid
8becfe02 342%defattr(644,root,root,755)
b85a0049 343%attr(755,root,root) %{_libdir}/postgresql/ossp-uuid.so
8becfe02 344%{_datadir}/postgresql/uuid.sql
ce1a1410 345%endif
This page took 0.152823 seconds and 4 git commands to generate.