]> git.pld-linux.org Git - packages/php-pecl-bcompiler.git/blame - php-pecl-bcompiler.spec
- obsolete
[packages/php-pecl-bcompiler.git] / php-pecl-bcompiler.spec
CommitLineData
55fe3227 1%define _modname bcompiler
773c1040 2%define _status stable
37baf579 3Summary: %{_modname} - a bytecode compiler for classes
6575f81f 4Summary(pl.UTF-8): %{_modname} - kompilator kodu bajtowego dla klas
55fe3227 5Name: php-pecl-%{_modname}
773c1040
AG
6Version: 1.0.2
7Release: 1
17ca508d 8License: PHP
55fe3227 9Group: Development/Languages/PHP
75e83565 10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
773c1040 11# Source0-md5: 99f76a5ef536d43180b41036a6a13e43
75e83565 12URL: http://pecl.php.net/package/bcompiler/
eb42a463 13BuildRequires: bzip2-devel
0d8b3334 14BuildRequires: php-devel >= 3:5.0.0
f9dd92fc 15BuildRequires: rpmbuild(macros) >= 1.344
c21b82b9 16%{?requires_php_extension}
f9dd92fc 17Requires: php-common >= 4:5.0.4
55fe3227 18Obsoletes: php-pear-%{_modname}
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
55fe3227 21%description
22bcompiler enables you to encode your scripts in phpbytecode, enabling
23you to protect the source. bcompiler could be used in the following
24situations:
25- to create a exe file of a PHP-GTK application (in conjunction with
26 other software)
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.
31
41609da2 32In PECL status of this package is: %{_status}.
17ca508d 33
d4046066
JR
34%description -l pl.UTF-8
35bcompiler pozwala na zakodowanie skryptów do kodu bajtowego PHP,
36pozwalając na chronienie swojego kodu. bcompiler może być używany w
37następujących sytuacjach:
38- tworzenie plików exe dla aplikacji PHP-GTK (w połączeniu z innym
55fe3227 39 oprogramowaniem),
d4046066
JR
40- tworzenie bibliotek z zamkniętym kodem,
41- tworzenie oprogramowania z ograniczonym czasem działania (zależnym
42 od opłat),
43- dostarczanie aplikacji o zamkniętym kodzie,
44- użycie na systemach embedded, gdzie wielkość jest priorytetem.
55fe3227 45
41609da2 46To rozszerzenie ma w PECL status: %{_status}.
17ca508d 47
55fe3227 48%prep
49%setup -q -c
50
51%build
52cd %{_modname}-%{version}
55fe3227 53phpize
54%configure
55
56%{__make}
57
58%install
59rm -rf $RPM_BUILD_ROOT
f9dd92fc 60install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
55fe3227 61
f9dd92fc
ER
62install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
63cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
0d8b3334
ER
64; Enable %{_modname} extension module
65extension=%{_modname}.so
66EOF
55fe3227 67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%post
f9dd92fc 72%php_webserver_restart
55fe3227 73
0d8b3334
ER
74%postun
75if [ "$1" = 0 ]; then
f9dd92fc 76 %php_webserver_restart
55fe3227 77fi
78
79%files
80%defattr(644,root,root,755)
81%doc %{_modname}-%{version}/examples/*
f9dd92fc
ER
82%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
83%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.04247 seconds and 4 git commands to generate.