File php5-imagick.spec of Package php5-imagick
1
# norootforbuild
2
%define php_version %(php-config --version 2>/dev/null)
3
4
Name: php-imagick
5
Version: 3.1.2
6
Release: 0
7
#
8
License: PHP
9
Group: Productivity/Networking/Web/Servers
10
#
11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
12
BuildRequires: php-devel >= 5.1.3 ImageMagick-devel >= 6.2.4
13
Requires: php = %{php_version}
14
#
15
URL: http://pecl.php.net/package/imagick/
16
Source: http://pecl.php.net/package/imagick/imagick-%{version}.tgz
17
Summary: Provides a wrapper to the ImageMagick/GraphicsMagick library.
18
19
%description
20
21
Provides a wrapper to the ImageMagick/GraphicsMagick library.
22
23
Authors:
24
---------
25
Christian Stocker <chregu@php.net>
26
Michael C. Montero <mmontero@mail.communityconnect.com>
27
Scott MacVicar <scottmac@php.net>
28
29
%prep
30
31
%setup -n imagick-%{version}
32
33
%{__mkdir} %{name}
34
35
%build
36
37
/usr/bin/phpize
38
39
pushd %{name}
40
41
CFLAGS="%{optflags} -fno-strict-aliasing"
42
CXXFLAGS="%{optflags} -fno-strict-aliasing"
43
%if 0%{?suse_version} > 1000
44
CFLAGS="$CFLAGS -fstack-protector"
45
CXXFLAGS="$CXXFLAGS -fstack-protector"
46
%endif
47
48
export CFLAGS
49
export CXXFLAGS
50
51
../configure --with-imagick=%{_usr} --with-libdir=%{_lib}
52
53
%{__make} %{?jobs:-j%jobs}
54
55
popd
56
57
%install
58
%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
59
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
60
rm -rf %{buildroot}%{_includedir}
61
62
echo "; comment out next line to disable imagick extension in php" > %{buildroot}%{_sysconfdir}/php.d/imagick.ini
63
echo 'extension = imagick.so' >> %{buildroot}%{_sysconfdir}/php.d/imagick.ini
64
65
66
%clean
67
68
%{__rm} -rf %{buildroot}
69
70
%files
71
%defattr(-,root,root,-)
72
%{_libdir}/php/modules/imagick.so
73
%config(noreplace) %{_sysconfdir}/php.d/imagick.ini
74
75
%doc CREDITS INSTALL
76
77
%changelog -n php-imagick
78
* Wed Feb 19 2014 Carsten Schoene <cs@linux-administrator.com> - 3.1.2-1
79
- update to version 3.1.2
80
81
* Thu Apr 21 2011 Carsten Schoene <cs@linux-administrator.com> - 3.0.1-1
82
- update to version 3.0.1
83
84
* Sun Jul 25 2010 Carsten Schoene <cs@linux-administrator.com> - 3.0.0-1
85
- update to version 3.0.0
86
87
* Mon Oct 27 2008 Carsten Schoene <cs@linux-administrator.com>
88
- version bump to 2.2.1
89
* Sun Jul 13 2008 Carsten Schoene <cs@linux-administrator.com>
90
- version bump to 2.2.0
91
* Mon Mar 24 2008 Carsten Schoene <cs@linux-administrator.com>
92
- version bump to 2.1.1
93
* Fri Jul 01 2006 - soporte@onfocus.cl
94
- very first build
95