]>
Commit | Line | Data |
---|---|---|
ed8fe255 ER |
1 | # TODO |
2 | # - doesn't compile | |
d1e40375 | 3 | # - php-pecl-mono-0.7/mono-0.7/php_mono.c:33:37: mono/metadata/tabledefs.h: No such file or directory |
8427699b | 4 | # - package examples into examplesdir |
2d77d9a0 | 5 | %define _modname mono |
76aac009 | 6 | %define _status beta |
2d77d9a0 | 7 | Summary: Allows you to access .NET assemblies from PHP |
7e5511e0 | 8 | Summary(pl.UTF-8): Pozwala na dostęp do wstawek .NET w PHP |
2d77d9a0 | 9 | Name: php-pecl-%{_modname} |
76aac009 | 10 | Version: 0.7 |
34355ff8 | 11 | Release: 0.2 |
2d77d9a0 PG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
332a5acc | 14 | Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz |
76aac009 | 15 | # Source0-md5: 23639443898018a743250a62b1873a89 |
332a5acc | 16 | URL: http://pecl.php.net/package/mono/ |
76aac009 | 17 | BuildRequires: mono-devel |
ed8fe255 | 18 | BuildRequires: php-devel >= 3:5.0.0 |
8427699b | 19 | BuildRequires: rpmbuild(macros) >= 1.344 |
ed8fe255 | 20 | %{?requires_php_extension} |
8427699b | 21 | Requires: php-common >= 4:5.0.4 |
e86b291d | 22 | Obsoletes: php-mono |
2d77d9a0 PG |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
2d77d9a0 PG |
25 | %description |
26 | A C extension that interfaces with the mono library to allow access to | |
27 | .NET assemblies. | |
28 | ||
341fe324 | 29 | In PECL status of this package is: %{_status}. |
2d77d9a0 | 30 | |
7e5511e0 JR |
31 | %description -l pl.UTF-8 |
32 | Rozszerzenie w C, które jest interfejsem do biblioteki mono, | |
33 | pozwalającym na dostęp do wstawek w .NET. | |
2d77d9a0 | 34 | |
341fe324 | 35 | To rozszerzenie ma w PECL status: %{_status}. |
2d77d9a0 PG |
36 | |
37 | %prep | |
38 | %setup -q -c | |
39 | ||
40 | %build | |
41 | cd %{_modname}-%{version} | |
42 | phpize | |
43 | %configure \ | |
44 | --with-%{_modname} | |
45 | ||
46 | %{__make} \ | |
d1e40375 | 47 | CPPFLAGS="-DHAVE_CONFIG_H -I/usr/X11R6/include/X11/" \ |
2d77d9a0 PG |
48 | CFLAGS_CLEAN="%{rpmcflags}" |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
8427699b | 52 | install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}} |
2d77d9a0 | 53 | |
8427699b ER |
54 | install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir} |
55 | cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini | |
ed8fe255 ER |
56 | ; Enable %{_modname} extension module |
57 | extension=%{_modname}.so | |
58 | EOF | |
2d77d9a0 PG |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post | |
8427699b | 64 | %php_webserver_restart |
2d77d9a0 | 65 | |
ed8fe255 ER |
66 | %postun |
67 | if [ "$1" = 0 ]; then | |
8427699b | 68 | %php_webserver_restart |
2d77d9a0 PG |
69 | fi |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc %{_modname}-%{version}/examples/{*.php,*.jpg,*.gif} | |
8427699b ER |
74 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini |
75 | %attr(755,root,root) %{php_extensiondir}/%{_modname}.so |