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

Changes of Revision 2

[+] Deleted php5-fam.spec
[-] Added php5-inotify.spec ^
x
 
1
@@ -0,0 +1,73 @@
2
+# norootforbuild
3
+%define pkg_name    inotify
4
+%define pkg_version 0.1.4
5
+%define php_version %(php-config --version 2>/dev/null)
6
+#
7
+Name:      php5-inotify
8
+Version:   %{pkg_version}
9
+Release:   0
10
+#
11
+License:   PHP
12
+Group:     Productivity/Networking/Web/Servers
13
+#
14
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
15
+BuildRequires: php5-devel inotify-devel gcc gcc-c++
16
+Requires:  php5 = %{php_version}
17
+#
18
+URL:       http://pecl.php.net/
19
+Source:        http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz
20
+Summary:   The inotify extension allows to use inotify functions in a PHP script
21
+
22
+%description
23
+The inotify extension allows to use inotify functions in a PHP script.
24
+Authors:
25
+---------
26
+
27
+       Arnaud Le Blanc
28
+
29
+%debug_package
30
+
31
+%prep
32
+%setup -n %{pkg_name}-%{version}
33
+
34
+%{__mkdir} %{name}
35
+
36
+%build
37
+/usr/bin/phpize
38
+pushd %{name}
39
+
40
+CFLAGS="%{optflags} -fno-strict-aliasing"
41
+CXXFLAGS="%{optflags} -fno-strict-aliasing"
42
+%if 0%{?suse_version} > 1000
43
+CFLAGS="$CFLAGS -fstack-protector"
44
+CXXFLAGS="$CXXFLAGS -fstack-protector"
45
+%endif
46
+
47
+export CFLAGS
48
+export CXXFLAGS
49
+
50
+../configure --with-inotify=%{_usr} --with-libdir=%{_lib}
51
+
52
+%{__make} %{?jobs:-j%jobs}
53
+popd
54
+
55
+%install
56
+%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
57
+%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d
58
+echo "; comment out next line to disable inotify extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/inotify.ini
59
+echo "extension = inotify.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/inotify.ini
60
+
61
+
62
+%clean
63
+%{__rm} -rf %{buildroot}
64
+
65
+%files
66
+%defattr(-,root,root,-)
67
+%{_libdir}/php5/extensions/inotify.so
68
+%config(noreplace) %{_sysconfdir}/php5/conf.d/inotify.ini
69
+
70
+%doc CREDITS
71
+
72
+%changelog
73
+* Wed Dec 30 2009 Carsten Schoene <cs@linux-administrator.com> - 0.1.4-1
74
+- initial build version 0.1.4
75
Deleted fam-5.0.1.tgz ^
Added inotify-0.1.4.tgz ^