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

Changes of Revision 4

[-] Added php5-mailparse.spec
x
 
1
@@ -0,0 +1,69 @@
2
+# norootforbuild
3
+%define pkg_name    mailparse
4
+%define php_version %(php-config --version 2>/dev/null)
5
+
6
+Name: php5-mailparse
7
+Version: 2.1.3
8
+Release: 0
9
+License: PHP 
10
+Group: Productivity/Networking/Web/Servers
11
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
12
+BuildRequires: php5-devel
13
+Requires: php5 = %{php_version} php5-mbstring
14
+#
15
+URL: http://pecl.php.net/package/mailparse 
16
+Source: http://pecl.php.net/get/%{pkg_name}-%{version}.tgz
17
+#
18
+Summary: Email message manipulation
19
+Patch0:    mailparse-2.1.2-64bit.patch
20
+ 
21
+%description
22
+
23
+Mailparse is an extension for parsing and working with email messages.
24
+It can deal with rfc822 and rfc2045 (MIME) compliant messages.
25
+
26
+Authors:
27
+---------
28
+
29
+   Wez Furlong <wez@php.net>
30
+
31
+%prep
32
+%setup -q -n %{pkg_name}-%{version}
33
+%patch0
34
+%{__mkdir} %{name}
35
+
36
+%build
37
+/usr/bin/phpize
38
+pushd %{name}
39
+
40
+CFLAGS="%{optflags} -fno-strict-aliasing"
41
+%if 0%{?suse_version} > 1000
42
+CFLAGS="$CFLAGS -fstack-protector"
43
+%endif
44
+
45
+export CFLAGS
46
+
47
+../configure 
48
+%{__make}
49
+popd
50
+
51
+%install
52
+%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
53
+%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d
54
+echo "extension= %{pkg_name}.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/%{pkg_name}.ini
55
+
56
+%clean
57
+%{__rm} -rf %{buildroot}
58
+
59
+%files
60
+%defattr(-,root,root,-)
61
+%{_libdir}/php5/extensions/%{pkg_name}.so
62
+%config(noreplace) %{_sysconfdir}/php5/conf.d/%{pkg_name}.ini
63
+
64
+%doc CREDITS README 
65
+
66
+%changelog
67
+* Tue Dec 19 2006 - judas_iscariote@shorewall.net
68
+- update patch
69
+* Sun Oct 10 2006 - soporte@onfocus.cl
70
+- First Build
71