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

Changes of Revision 2

[-] Changed php5-lzf.spec
x
 
1
@@ -1,27 +1,73 @@
2
-Name:           mydummy
3
-Version:        1.0
4
-Release:        1
5
-License:        GPL
6
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
7
-BuildRequires:  replace_me_with_required_packages
8
-Group:          Dummy
9
-Summary:        My Dummy Package
10
+# norootforbuild
11
+%define pkg_name    LZF
12
+#
13
+Name: php5-lzf
14
+Version: 1.4.0
15
+Release: 0
16
+#
17
+License: PHP
18
+Group: Productivity/Networking/Web/Servers
19
+#
20
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
21
+BuildRequires: liblzf-devel php5-devel
22
+#
23
+URL: http://pecl.php.net/lzf
24
+Source: http://pecl.php.net/package/lzf/%{pkg_name}-%{version}.tgz
25
+Summary: This package handles LZF de/compression.
26
 
27
 %description
28
-My Dummy Package for testing
29
+
30
+   This package handles LZF de/compression.
31
+   
32
+Authors:
33
+---------
34
+
35
+   Marcin Gibula
36
 
37
 %prep
38
 
39
+%setup -q -n %{pkg_name}-%{version}
40
+
41
+%{__mkdir} %{name}
42
+
43
 %build
44
+/usr/bin/phpize
45
+pushd %{name}
46
+
47
+CFLAGS="%{optflags} -fno-strict-aliasing"
48
+CXXFLAGS="%{optflags} -fno-strict-aliasing"
49
+%if 0%{?suse_version} > 1000
50
+CFLAGS="$CFLAGS -fstack-protector"
51
+CXXFLAGS="$CXXFLAGS -fstack-protector"
52
+%endif
53
+
54
+export CFLAGS
55
+export CXXFLAGS
56
+
57
+../configure
58
+
59
+%{__make} %{?jobs:-j%jobs}
60
+popd
61
 
62
 %install
63
-dummydir=$RPM_BUILD_ROOT/usr/lib/mydummy
64
-mkdir -p $dummydir
65
-echo "I was here!" >$dummydir/iwashere
66
+
67
+%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
68
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
69
+echo "; comment out next line to disable lzf extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/lzf.ini
70
+echo 'extension = lzf.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/lzf.ini
71
+
72
 
73
 %clean
74
-rm -rf "$RPM_BUILD_ROOT"
75
+
76
+%{__rm} -rf %{buildroot}
77
 
78
 %files
79
-%defattr(-,root,root)
80
-/usr/lib/mydummy/iwashere
81
+%defattr(644,root,root,755)
82
+%{_libdir}/php5/extensions/lzf.so
83
+%config(noreplace) %{_sysconfdir}/php5/conf.d/lzf.ini
84
+
85
+%doc CREDITS
86
+
87
+%changelog -n php5-lzf
88
+* Wed Feb 20 2008 - cs@linux-administrator.com
89
+- very first build
90
Added LZF-1.4.tgz ^