]> git.pld-linux.org Git - packages/php-pecl-bcompiler.git/blame - php-pecl-bcompiler.spec
- converted to UTF-8
[packages/php-pecl-bcompiler.git] / php-pecl-bcompiler.spec
CommitLineData
55fe3227 1%define _modname bcompiler
17ca508d 2%define _status beta
37baf579 3Summary: %{_modname} - a bytecode compiler for classes
d4046066 4Summary(pl.UTF-8): %{_modname} - kompilator kodu bajtowego dla klas
55fe3227 5Name: php-pecl-%{_modname}
652768da
ER
6Version: 0.8
7Release: 1
17ca508d 8License: PHP
55fe3227 9Group: Development/Languages/PHP
75e83565 10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
652768da 11# Source0-md5: bfc5646f8f7c1c2649d82f5a4e3c0760
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}
53cp -f config.m4.old config.m4
54cp -f Makefile.in.old Makefile.in
55phpize
56%configure
57
58%{__make}
59
60%install
61rm -rf $RPM_BUILD_ROOT
f9dd92fc 62install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
55fe3227 63
f9dd92fc
ER
64install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
65cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
0d8b3334
ER
66; Enable %{_modname} extension module
67extension=%{_modname}.so
68EOF
55fe3227 69
70%clean
71rm -rf $RPM_BUILD_ROOT
72
73%post
f9dd92fc 74%php_webserver_restart
55fe3227 75
0d8b3334
ER
76%postun
77if [ "$1" = 0 ]; then
f9dd92fc 78 %php_webserver_restart
55fe3227 79fi
80
81%files
82%defattr(644,root,root,755)
83%doc %{_modname}-%{version}/examples/*
f9dd92fc
ER
84%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
85%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.099365 seconds and 4 git commands to generate.