]>
Commit | Line | Data |
---|---|---|
725c5c66 ER |
1 | %define php_name php%{?php_suffix} |
2 | %define modname uuid | |
3 | %define status stable | |
4 | Summary: %{modname} - UUID support functions | |
5 | Summary(pl.UTF-8): %{modname} - funkcje obsługujące UUID | |
6 | Name: %{php_name}-pecl-%{modname} | |
1f106063 | 7 | Version: 1.1.0 |
62684020 | 8 | Release: 1 |
ac10a694 | 9 | License: LGPL |
6b110da3 | 10 | Group: Development/Languages/PHP |
f35d6e0e | 11 | Source0: https://pecl.php.net/get/%{modname}-%{version}.tgz |
1f106063 | 12 | # Source0-md5: 8a4afcd46b4fba49601845d55a608449 |
f35d6e0e | 13 | URL: https://pecl.php.net/package/uuid/ |
1f106063 | 14 | BuildRequires: %{php_name}-devel >= 3:7.0 |
b6f6780d | 15 | BuildRequires: libuuid-devel |
725c5c66 | 16 | BuildRequires: rpmbuild(macros) >= 1.650 |
ee2e8d28 | 17 | %{?requires_php_extension} |
b6f6780d | 18 | Provides: php(%{modname}) = %{version} |
1d1acfd4 | 19 | Obsoletes: php-pecl-uuid < 1.0.3-5 |
6b110da3 AG |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
6b110da3 AG |
22 | %description |
23 | This extension provides functions to generate and analyse universally | |
24 | unique identifiers (UUIDs). It depends on external libuuid. This | |
25 | library is available on most linux systems, its source is bundled with | |
26 | ext2fs tools. | |
27 | ||
725c5c66 | 28 | In PECL status of this package is: %{status}. |
6b110da3 | 29 | |
de4176fe | 30 | %description -l pl.UTF-8 |
9a35b1b3 | 31 | To rozszerzenie dostarcza funkcje do generowania i analizy |
de4176fe JR |
32 | uniwersalnie unikalnych identyfikatorów (ang. UUIDs). Rozszerznie to |
33 | wymaga zewnętrznej biblioteki libuuid, dostępnej w większości | |
34 | dystrybucji, której źródło jest dostarczane wraz z narzędziami ext2fs. | |
6b110da3 | 35 | |
725c5c66 | 36 | To rozszerzenie ma w PECL status: %{status}. |
6b110da3 AG |
37 | |
38 | %prep | |
725c5c66 ER |
39 | %setup -qc |
40 | mv %{modname}-%{version}/* . | |
6b110da3 AG |
41 | |
42 | %build | |
6b110da3 AG |
43 | phpize |
44 | %configure | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
bc584bd7 | 49 | install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}} |
6b110da3 | 50 | |
725c5c66 ER |
51 | install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir} |
52 | cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini | |
53 | ; Enable %{modname} extension module | |
54 | extension=%{modname}.so | |
ee2e8d28 | 55 | EOF |
6b110da3 AG |
56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %post | |
bc584bd7 | 61 | %php_webserver_restart |
6b110da3 | 62 | |
ee2e8d28 ER |
63 | %postun |
64 | if [ "$1" = 0 ]; then | |
bc584bd7 | 65 | %php_webserver_restart |
6b110da3 AG |
66 | fi |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
725c5c66 ER |
70 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini |
71 | %attr(755,root,root) %{php_extensiondir}/%{modname}.so |