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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1105244 - (show annotations) (download)
Sun May 28 05:01:23 2017 UTC (6 years, 10 months ago) by shlomif
Original Path: cauldron/php-imagick/current/SPECS/php-imagick.spec
File size: 1760 byte(s)
- rebuild for new imagemagick lib-major
1 %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 Epoch: 2
11 Version: 3.4.1
12 Release: %mkrel 6
13 Group: Development/PHP
14 License: PHP License
15 URL: http://pecl.php.net/package/imagick
16 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
17 BuildRequires: php-devel >= 3:5.2.0
18 BuildRequires: imagemagick-devel >= 6.3.8
19 Requires: imagemagick >= 6.3.8
20
21 %description
22 Imagick is a native php extension to create and modify images using the
23 ImageMagick API.
24
25 imagick is a native php-extension. See the examples in the
26 %{_docdir}/%{name}/examples directory for some hints on
27 how to use it.
28
29 %prep
30
31 %setup -q -n imagick-%{version}
32 [ "../package.xml" != "/" ] && mv -f ../package.xml .
33
34 # lib64 fixes
35 perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4
36
37 %build
38 %serverbuild
39
40 phpize
41 %configure2_5x --with-libdir=%{_lib} \
42 --with-%{modname}=shared,%{_prefix}
43
44 %make_build
45 mv modules/*.so .
46
47 %install
48 install -d %{buildroot}%{_libdir}/php/extensions
49 install -d %{buildroot}%{_sysconfdir}/php.d
50
51 install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/
52
53 cat > README.%{modname} <<EOF
54 The %{name} package contains a dynamic shared object (DSO) for PHP.
55 To activate it, make sure a file /etc/php.d/%{inifile} is present and
56 contains the line 'extension = %{soname}'.
57 EOF
58
59 cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
60 extension = %{soname}
61
62 [imagick]
63 imagick.locale_fix = 0
64 EOF
65
66 %files
67 %doc examples ChangeLog CREDITS LICENSE
68 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
69 %attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

  ViewVC Help
Powered by ViewVC 1.1.30