File php5-imagick.spec of Package php5-imagick
1
# norootforbuild
2
%define php_version %(php-config --version 2>/dev/null)
3
4
Name: php5-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: php5-devel >= 5.1.3 ImageMagick-devel >= 6.2.4
13
Requires: php5 = %{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
##Patch0: imagick-fixes-%{version}.patch
19
20
%description
21
22
Provides a wrapper to the ImageMagick/GraphicsMagick library.
23
24
Authors:
25
---------
26
Christian Stocker <chregu@php.net>
27
Michael C. Montero <mmontero@mail.communityconnect.com>
28
Scott MacVicar <scottmac@php.net>
29
30
%prep
31
32
%setup -n imagick-%{version}
33
##patch0
34
35
%{__mkdir} %{name}
36
37
%build
38
39
/usr/bin/phpize
40
41
pushd %{name}
42
43
CFLAGS="%{optflags} -fno-strict-aliasing"
44
CXXFLAGS="%{optflags} -fno-strict-aliasing"
45
%if 0%{?suse_version} > 1000
46
CFLAGS="$CFLAGS -fstack-protector"
47
CXXFLAGS="$CXXFLAGS -fstack-protector"
48
%endif
49
50
export CFLAGS
51
export CXXFLAGS
52
53
../configure --with-imagick=%{_usr} --with-libdir=%{_lib}
54
55
%{__make} %{?jobs:-j%jobs}
56
57
popd
58
59
%install
60
%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
61
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
62
rm -rf %{buildroot}%{_includedir}
63
echo "; comment out next line to disable imagick extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/imagick.ini
64
echo 'extension = imagick.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/imagick.ini
65
66
67
%clean
68
69
%{__rm} -rf %{buildroot}
70
71
%files
72
%defattr(-,root,root,-)
73
%{_libdir}/php5/extensions/imagick.so
74
%config(noreplace) %{_sysconfdir}/php5/conf.d/imagick.ini
75
76
%doc CREDITS INSTALL
77
78
%changelog -n php5-imagick
79
* Sun Sep 29 2013 Carsten Schoene <cs@linux-administrator.com> - 3.1.2-1
80
- update to release 3.1.2
81
* Sat Nov 20 2010 Carsten Schoene <cs@linux-administrator.com> - 3.0.1-1
82
- update to release 3.0.1
83
* Thu Jul 22 2010 Carsten Schoene <cs@linux-administrator.com> - 3.0.0-1
84
- update to release 3.0.0
85
* Sat Feb 07 2009 Carsten Schoene <cs@linux-administrator.com>
86
- version bump to 2.2.2
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