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

  ViewVC Help
Powered by ViewVC 1.1.30