/[packages]/backports/8/php-imagick/current/SPECS/php-imagick.spec
ViewVC logotype

Annotation of /backports/8/php-imagick/current/SPECS/php-imagick.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 442661 - (hide annotations) (download)
Thu Jun 13 15:56:59 2013 UTC (10 years, 10 months ago) by oden
Original Path: cauldron/php-imagick/current/SPECS/php-imagick.spec
File size: 1861 byte(s)
- rebuilt for php-5.5.0RC3
1 ennael 35613 %define realname Imagick
2     %define modname imagick
3     %define dirname %{modname}
4     %define soname %{modname}.so
5     %define inifile 55_%{modname}.ini
6     %define mod_src %{modname}.c
7    
8     Summary: Provides a wrapper to the ImageMagick library for PHP
9     Name: php-%{modname}
10 spuhler 275875 Version: 3.1.0
11 oden 442661 Release: %mkrel 3.RC2.6
12 ennael 35613 Group: Development/PHP
13     License: PHP License
14     URL: http://pecl.php.net/package/imagick
15 spuhler 275876 Source0: http://pecl.php.net/get/%{modname}-%{version}RC2.tgz
16 fwang 429276 Patch0: imagick-3.1.0RC2-maigick-dir.patch
17 ennael 35613 BuildRequires: php-devel >= 3:5.2.0
18     BuildRequires: imagemagick-devel >= 6.3.8
19     Requires: imagemagick >= 6.3.8
20     Requires: freetype
21     Requires: freetype2
22 spuhler 275877 Epoch: 2
23 ennael 35613
24     %description
25     Imagick is a native php extension to create and modify images using the
26     ImageMagick API.
27    
28     imagick is a native php-extension. See the examples in the
29     %{_docdir}/%{name}/examples directory for some hints on
30     how to use it.
31    
32     %prep
33    
34 spuhler 275876 %setup -q -n imagick-%{version}RC2
35 fwang 429276 %patch0 -p1
36 ennael 35613 [ "../package.xml" != "/" ] && mv -f ../package.xml .
37    
38     # lib64 fixes
39     perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4
40    
41     %build
42     %serverbuild
43    
44     phpize
45     %configure2_5x --with-libdir=%{_lib} \
46     --with-%{modname}=shared,%{_prefix}
47    
48     %make
49     mv modules/*.so .
50    
51     %install
52     install -d %{buildroot}%{_libdir}/php/extensions
53     install -d %{buildroot}%{_sysconfdir}/php.d
54    
55     install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/
56    
57     cat > README.%{modname} <<EOF
58     The %{name} package contains a dynamic shared object (DSO) for PHP.
59     To activate it, make sure a file /etc/php.d/%{inifile} is present and
60     contains the line 'extension = %{soname}'.
61     EOF
62    
63     cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
64     extension = %{soname}
65    
66     [imagick]
67     imagick.locale_fix = 0
68     EOF
69    
70     %files
71     %doc examples CREDITS INSTALL README*
72     %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
73     %attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

  ViewVC Help
Powered by ViewVC 1.1.30