1 %define _modname bcompiler
3 Summary: %{_modname} - a bytecode compiler for classes
4 Summary(pl.UTF-8): %{_modname} - kompilator kodu bajtowego dla klas
5 Name: php-pecl-%{_modname}
9 Group: Development/Languages/PHP
10 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11 # Source0-md5: bfc5646f8f7c1c2649d82f5a4e3c0760
12 URL: http://pecl.php.net/package/bcompiler/
13 BuildRequires: bzip2-devel
14 BuildRequires: php-devel >= 3:5.0.0
15 BuildRequires: rpmbuild(macros) >= 1.344
16 %{?requires_php_extension}
17 Requires: php-common >= 4:5.0.4
18 Obsoletes: php-pear-%{_modname}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 bcompiler enables you to encode your scripts in phpbytecode, enabling
23 you to protect the source. bcompiler could be used in the following
25 - to create a exe file of a PHP-GTK application (in conjunction with
27 - to create closed source libraries
28 - to provide clients with time expired software (prior to payment)
29 - to deliver close source applications
30 - for use on embedded systems, where disk space is a priority.
32 In PECL status of this package is: %{_status}.
34 %description -l pl.UTF-8
35 bcompiler pozwala na zakodowanie skryptów do kodu bajtowego PHP,
36 pozwalając na chronienie swojego kodu. bcompiler może być używany w
37 następujących sytuacjach:
38 - tworzenie plików exe dla aplikacji PHP-GTK (w połączeniu z innym
40 - tworzenie bibliotek z zamkniętym kodem,
41 - tworzenie oprogramowania z ograniczonym czasem działania (zależnym
43 - dostarczanie aplikacji o zamkniętym kodzie,
44 - użycie na systemach embedded, gdzie wielkość jest priorytetem.
46 To rozszerzenie ma w PECL status: %{_status}.
52 cd %{_modname}-%{version}
53 cp -f config.m4.old config.m4
54 cp -f Makefile.in.old Makefile.in
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
64 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
65 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
66 ; Enable %{_modname} extension module
67 extension=%{_modname}.so
71 rm -rf $RPM_BUILD_ROOT
74 %php_webserver_restart
78 %php_webserver_restart
82 %defattr(644,root,root,755)
83 %doc %{_modname}-%{version}/examples/*
84 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
85 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so