]> git.pld-linux.org Git - packages/php-pecl-bcompiler.git/blame - php-pecl-bcompiler.spec
- fix obsoletes version
[packages/php-pecl-bcompiler.git] / php-pecl-bcompiler.spec
CommitLineData
9970b416
ER
1%define php_name php%{?php_suffix}
2%define modname bcompiler
3%define status stable
4Summary: %{modname} - a bytecode compiler for classes
5Summary(pl.UTF-8): %{modname} - kompilator kodu bajtowego dla klas
6Name: %{php_name}-pecl-%{modname}
773c1040 7Version: 1.0.2
7bad2f66 8Release: 6
17ca508d 9License: PHP
55fe3227 10Group: Development/Languages/PHP
9970b416 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
773c1040 12# Source0-md5: 99f76a5ef536d43180b41036a6a13e43
75e83565 13URL: http://pecl.php.net/package/bcompiler/
7f7f8fde 14BuildRequires: %{php_name}-devel >= 3:5.0.4
eb42a463 15BuildRequires: bzip2-devel
9970b416 16BuildRequires: rpmbuild(macros) >= 1.650
c21b82b9 17%{?requires_php_extension}
9970b416 18Requires: %{php_name}-tokenizer
8a9dce01 19Suggests: php-bz2
f70c0372 20Provides: php(%{modname}) = %{version}
7bad2f66 21Obsoletes: php-pecl-bcompiler < 1.0.2-5
55fe3227 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
55fe3227 24%description
25bcompiler enables you to encode your scripts in phpbytecode, enabling
26you to protect the source. bcompiler could be used in the following
27situations:
28- to create a exe file of a PHP-GTK application (in conjunction with
29 other software)
30- to create closed source libraries
31- to provide clients with time expired software (prior to payment)
32- to deliver close source applications
33- for use on embedded systems, where disk space is a priority.
34
9970b416 35In PECL status of this package is: %{status}.
17ca508d 36
d4046066
JR
37%description -l pl.UTF-8
38bcompiler pozwala na zakodowanie skryptów do kodu bajtowego PHP,
39pozwalając na chronienie swojego kodu. bcompiler może być używany w
40następujących sytuacjach:
41- tworzenie plików exe dla aplikacji PHP-GTK (w połączeniu z innym
55fe3227 42 oprogramowaniem),
d4046066
JR
43- tworzenie bibliotek z zamkniętym kodem,
44- tworzenie oprogramowania z ograniczonym czasem działania (zależnym
45 od opłat),
46- dostarczanie aplikacji o zamkniętym kodzie,
47- użycie na systemach embedded, gdzie wielkość jest priorytetem.
55fe3227 48
9970b416 49To rozszerzenie ma w PECL status: %{status}.
17ca508d 50
55fe3227 51%prep
9970b416
ER
52%setup -qc
53mv %{modname}-%{version}/* .
55fe3227 54
55%build
55fe3227 56phpize
57%configure
58
59%{__make}
60
61%install
62rm -rf $RPM_BUILD_ROOT
f9dd92fc 63install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
9970b416
ER
64install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
65cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
66; Enable %{modname} extension module
67extension=%{modname}.so
0d8b3334 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)
9970b416
ER
83%doc examples/*
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.121059 seconds and 4 git commands to generate.