Search
j0ke.net Open Build Service
>
Projects
>
vhcs
>
php-mcrypt
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 9
[-]
[+]
Changed
php-mcrypt.spec
@@ -24,6 +24,8 @@ Requires: libmcrypt BuildRequires: libmcrypt-devel php-devel gcc-c++ +BuildRoot: %{_tmppath}/%{name}-%{version}-build + %description PHP interface to the mcrypt library, which supports a wide variety of block algorithms. @@ -38,15 +40,15 @@ %install %if 0%{?centos_version} == 4 -%{__install} -D -m 755 modules/mcrypt.so %{buildroot}/%{_libdir}/php4/mcrypt.so +%{__install} -D -m 755 modules/mcrypt.so $RPM_BUILD_ROOT%{_libdir}/php4/mcrypt.so %endif %if 0%{?centos_version} == 5 -%{__install} -D -m 755 modules/mcrypt.so %{buildroot}/%{_libdir}/php/modules/mcrypt.so +%{__install} -D -m 755 modules/mcrypt.so $RPM_BUILD_ROOT%{_libdir}/php/modules/mcrypt.so %endif -%{__install} -D -d -m 755 %{buildroot}/%{_sysconfdir}/php.d -echo "# mcrypt extension" > %{buildroot}/%{_sysconfdir}/php.d/mcrypt.ini -echo "extension=mcrypt.so" >> %{buildroot}/%{_sysconfdir}/php.d/mcrypt.ini +%{__install} -D -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/php.d +echo "# mcrypt extension" > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/mcrypt.ini +echo "extension=mcrypt.so" >> $RPM_BUILD_ROOT%{_sysconfdir}/php.d/mcrypt.ini %files %{_sysconfdir}/php.d/mcrypt.ini @@ -56,8 +58,8 @@ %endif %if 0%{?centos_version} == 5 -%dir %{_lbidir}/php/modules -%{_lbidir}/php/modules/mcrypt.so +%dir %{_libdir}/php/modules +%{_libdir}/php/modules/mcrypt.so %endif %clean