]> git.pld-linux.org Git - packages/php.git/commitdiff
- magic.mime path distro dependant
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 28 Aug 2009 14:25:26 +0000 (14:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php.spec -> 1.805.2.8

php.spec

index c84e2c388961fb837659819a898e20a45a5fa286..c4d450995e7fdaf2034de53b5de4419a9463f325 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -86,6 +86,12 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %undefine      with_filter
 %endif
 
+%if "%{pld_release}" == "ac"
+%define                magic_mime      /usr/share/misc/magic.mime
+%else
+%define                magic_mime      /usr/share/file/magic.mime
+%endif
+
 Summary:       PHP: Hypertext Preprocessor
 Summary(fr.UTF-8):     Le langage de script embarque-HTML PHP
 Summary(pl.UTF-8):     Język skryptowy PHP
@@ -888,7 +894,7 @@ Summary:    mime_magic extension module for PHP
 Summary(pl.UTF-8):     Moduł mime_magic dla PHP
 Group:         Libraries
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      /usr/share/misc/magic.mime
+Requires:      %{magic_mime}
 Provides:      php(mime_magic)
 
 %description mime_magic
@@ -1869,7 +1875,7 @@ for sapi in $sapis; do
        %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
        --with-mcrypt=shared \
        %{?with_mhash:--with-mhash=shared} \
-       %{?with_mime_magic:--with-mime-magic=shared,/usr/share/misc/magic.mime}%{!?with_mime_magic:--disable-mime-magic} \
+       %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
        %{?with_ming:--with-ming=shared} \
        %{?with_mm:--with-mm} \
        %{?with_mssql:--with-mssql=shared} \
This page took 0.062078 seconds and 4 git commands to generate.