Logoj0ke.net Open Build Service > Projects > internetx:php4:extensions > php4-imagick > Changes
Sign Up | Log In

Changes of Revision 2

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