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

Changes of Revision 3

[-] Added php5-fileinfo.spec
x
 
1
@@ -0,0 +1,88 @@
2
+# norootforbuild
3
+%define pkg_name    fileinfo
4
+%define pkg_version 1.0.4
5
+%define php_version %(php-config --version 2>/dev/null)
6
+#
7
+Name: php5-fileinfo
8
+Version: 1.0.4
9
+Release: 0
10
+License: PHP 
11
+Group: Productivity/Networking/Web/Servers
12
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
13
+BuildRequires: php5-devel file-devel
14
+Requires: php5 = %{php_version}
15
+Patch0: php5-fileinfo-lib64.patch
16
+#
17
+URL: http://pecl.php.net/package/fileinfo 
18
+Source: http://pecl.php.net/get/%{pkg_name}-%{pkg_version}.tar.bz2
19
+#
20
+Summary: PHP libmagic bindings
21
+%description
22
+
23
+This extension allows retrieval of information regarding vast majority of file.
24
+This information may include dimensions, quality, length etc...
25
+
26
+Additionally it can also be used to retrieve the mime type for a particular
27
+file and for text files proper language encoding.
28
+
29
+
30
+Authors:
31
+---------
32
+
33
+   Ilia Alshanetsky <ilia@prohost.org>
34
+
35
+%debug_package
36
+%prep
37
+
38
+%setup -q -n %{pkg_name}-%{pkg_version}
39
+
40
+%patch0
41
+
42
+%{__mkdir} %{name}
43
+
44
+%build
45
+/usr/bin/phpize
46
+pushd %{name}
47
+
48
+CFLAGS="%{optflags} -fno-strict-aliasing"
49
+CXXFLAGS="%{optflags} -fno-strict-aliasing"
50
+
51
+%if 0%{?suse_version} > 1000
52
+CFLAGS="$CFLAGS -fstack-protector"
53
+CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
54
+%endif
55
+
56
+export CFLAGS
57
+export CXXFLAGS
58
+export LDFLAGS="-Wl,--as-needed"
59
+
60
+../configure --with-libdir=%{_lib} 
61
+
62
+%{__make} %{?jobs:-j%jobs}
63
+
64
+popd
65
+
66
+%install
67
+
68
+%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
69
+
70
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
71
+
72
+echo "extension= fileinfo.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/fileinfo.ini
73
+
74
+%clean
75
+
76
+%{__rm} -rf %{buildroot}
77
+
78
+%files
79
+%defattr(-,root,root,-)
80
+%{_libdir}/php5/extensions/%{pkg_name}.so
81
+%config(noreplace) %{_sysconfdir}/php5/conf.d/%{pkg_name}.ini
82
+
83
+%doc CREDITS 
84
+
85
+%changelog
86
+* Sat Dec 23 2006 - judas_iscariote@shorewall.net
87
+- add lib64 fix.
88
+* Sun Oct 10 2006 - soporte@onfocus.cl
89
+- First Build
90