]> git.pld-linux.org Git - packages/php-pecl-fann.git/blame - php-pecl-fann.spec
support building for multiple php versions
[packages/php-pecl-fann.git] / php-pecl-fann.spec
CommitLineData
119bff41
ER
1%define php_name php%{?php_suffix}
2%define modname fann
3%define status devel
4Summary: %{modname} - artificial neural networks
5Summary(pl.UTF-8): %{modname} - sztuczne sieci neuronowe
6Name: %{php_name}-pecl-%{modname}
28fd9b73 7Version: 0.1.1
bc9edc41 8Release: 2
28fd9b73
AG
9License: PHP
10Group: Development/Languages/PHP
119bff41 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
28fd9b73
AG
12# Source0-md5: 5eb404da7dd1a9cec74a0ed8b5b82d47
13URL: http://pecl.php.net/package/fann/
119bff41 14BuildRequires: %{php_name}-devel >= 3:5.0.0
28fd9b73 15BuildRequires: fann-devel
119bff41 16BuildRequires: rpmbuild(macros) >= 1.650
d865c72a 17%{?requires_php_extension}
119bff41
ER
18Requires: php(core) >= 5.0.4
19Obsoletes: php-pear-%{modname}
28fd9b73
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
28fd9b73
AG
22%description
23Fann (fast artificial neural network library) implements multilayer
24feedforward networks with support for both fully connected and sparse
25connected networks.
26
119bff41 27In PECL status of this extension is: %{status}.
28fd9b73 28
7ce701fa 29%description -l pl.UTF-8
28fd9b73 30Fann (biblioteka szybkich sztucznych sieci neuronowych - ang. fast
c024ba78 31artificial neural network library) implementuje wielowarstwowe
7ce701fa
JR
32dwustronne sieci ze wsparciem zarówno dla w pełni połączonych jak i
33rzadko połączonych sieci.
28fd9b73 34
119bff41 35To rozszerzenie ma w PECL status: %{status}.
28fd9b73
AG
36
37%prep
119bff41
ER
38%setup -qc
39mv %{modname}-%{version}/* .
28fd9b73
AG
40
41%build
28fd9b73
AG
42phpize
43%configure
44%{__make}
45
46%install
47rm -rf $RPM_BUILD_ROOT
9620b84e 48install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
119bff41
ER
49install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
50cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
51; Enable %{modname} extension module
52extension=%{modname}.so
d865c72a 53EOF
28fd9b73
AG
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%post
9620b84e 59%php_webserver_restart
28fd9b73 60
d865c72a
ER
61%postun
62if [ "$1" = 0 ]; then
9620b84e 63 %php_webserver_restart
28fd9b73
AG
64fi
65
66%files
67%defattr(644,root,root,755)
119bff41
ER
68%doc CREDITS EXPERIMENTAL
69%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
70%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.067877 seconds and 4 git commands to generate.