]> git.pld-linux.org Git - packages/php-ioncube.git/commitdiff
- initial
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 15 Jun 2007 07:05:58 +0000 (07:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-ioncube.spec -> 1.1

php-ioncube.spec [new file with mode: 0644]

diff --git a/php-ioncube.spec b/php-ioncube.spec
new file mode 100644 (file)
index 0000000..72977fe
--- /dev/null
@@ -0,0 +1,66 @@
+#
+%define                _name           ioncube
+Summary:       ionCube loader module for PHP
+Name:          php-%{_name}
+Version:       3.1
+Release:       1
+License:       redistributable
+Group:         Libraries
+Source0:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
+# Source0-md5: a6460e8cfabdd3c7c04c2d7181b4bf2d
+Source1:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2
+# Source1-md5: e6a3fe99bc850fe9c94a4074ec286139
+Source2:       http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_ppc.tar.bz2
+# Source2-md5: 233acef94ff789a799f0637648d1e10f
+Source10:      %{_name}.ini
+URL:           http://ioncube.com/
+BuildRequires: coreutils
+Requires:      php-common >= 4:5.0.4
+ExclusiveArch: %{ix86} %{x8664} ppc
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ionCube loader module for PHP.
+
+%prep
+%ifarch %{ix86}
+%setup -q -T -b 0 -n %{_name}
+%endif
+%ifarch %{x8664}
+%setup -q -T -b 1 -n %{_name}
+%endif
+%ifarch ppc
+%setup -q -T -b 2 -n %{_name}
+%endif
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d}
+
+install $(ls -1 *_ts.so  | sort | tail -n 1) $RPM_BUILD_ROOT%{php_extensiondir}/%{_name}.so
+install %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_name}.ini
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%php_webserver_restart
+
+%postun
+if [ "$1" = 0 ]; then
+       %php_webserver_restart
+fi
+
+%preun
+if [ "$1" = 0 ]; then
+       # remove last pieces of cache
+       rm -rf /var/cache/%{_name}/*
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt *.php
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_name}.ini
+%attr(755,root,root) %{php_extensiondir}/ioncube.so
This page took 0.11638 seconds and 4 git commands to generate.