0:a88c99a10ef1 | 1:88c9c8d24c80 |
---|---|
30 Distribution: OpenPKG Community | 30 Distribution: OpenPKG Community |
31 Class: BASE | 31 Class: BASE |
32 Group: Libraries | 32 Group: Libraries |
33 License: MIT/X11-style | 33 License: MIT/X11-style |
34 Version: 1.6.2 | 34 Version: 1.6.2 |
35 Release: 20080717 | 35 Release: 20120800 |
36 | 36 |
37 # package options | 37 # package options |
38 %option with_dce no | 38 %option with_dce no |
39 %option with_cxx no | 39 %option with_cxx no |
40 %option with_perl no | 40 %option with_perl no |
46 Patch0: uuid.patch | 46 Patch0: uuid.patch |
47 | 47 |
48 # build information | 48 # build information |
49 Prefix: %{l_prefix} | 49 Prefix: %{l_prefix} |
50 BuildRoot: %{l_buildroot} | 50 BuildRoot: %{l_buildroot} |
51 BuildPreReq: OpenPKG, openpkg >= 20050615 | 51 BuildPreReq: OpenPKG, openpkg >= 20100101 |
52 PreReq: OpenPKG, openpkg >= 20050615 | 52 PreReq: OpenPKG, openpkg >= 20100101 |
53 %if "%{with_cxx}" == "yes" | 53 %if "%{with_cxx}" == "yes" |
54 BuildPreReq: gcc | 54 BuildPreReq: gcc |
55 %endif | 55 %endif |
56 %if "%{with_perl}" == "yes" | 56 %if "%{with_perl}" == "yes" |
57 BuildPreReq: perl, perl-openpkg | 57 BuildPreReq: perl, perl-openpkg |
95 } | 95 } |
96 | 96 |
97 %prep | 97 %prep |
98 %setup -q | 98 %setup -q |
99 %patch -p0 | 99 %patch -p0 |
100 %{l_shtool} subst \ | |
101 -e 's;function_entry;zend_function_entry;' \ | |
102 php/uuid.c | |
103 %{l_shtool} subst \ | |
104 -e 's;\[\.\.\];[\`pwd\`/..];g' \ | |
105 php/config.m4 | |
100 | 106 |
101 %build | 107 %build |
102 CC="%{l_cc}" \ | 108 CC="%{l_cc}" \ |
103 CFLAGS="%{l_cflags -O}" \ | 109 CFLAGS="%{l_cflags -O}" \ |
104 GREP="grep" \ | |
105 ./configure \ | 110 ./configure \ |
106 --prefix=%{l_prefix} \ | 111 --prefix=%{l_prefix} \ |
107 --mandir=%{l_prefix}/man \ | 112 --mandir=%{l_prefix}/man \ |
108 %if "%{with_dce}" == "yes" | 113 %if "%{with_dce}" == "yes" |
109 --with-dce \ | 114 --with-dce \ |
123 %{l_prefix}/bin/perl-openpkg prepare | 128 %{l_prefix}/bin/perl-openpkg prepare |
124 %{l_prefix}/bin/perl-openpkg -d perl configure build | 129 %{l_prefix}/bin/perl-openpkg -d perl configure build |
125 %endif | 130 %endif |
126 | 131 |
127 %install | 132 %install |
128 rm -rf $RPM_BUILD_ROOT | |
129 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT | 133 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
130 %if "%{with_perl}" == "yes" | 134 %if "%{with_perl}" == "yes" |
131 %{l_prefix}/bin/perl-openpkg -d perl install | 135 %{l_prefix}/bin/perl-openpkg -d perl install |
132 %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup | 136 %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup |
133 %else | 137 %else |
137 %{l_files_std} `cat perl-openpkg-files` | 141 %{l_files_std} `cat perl-openpkg-files` |
138 | 142 |
139 %files -f files | 143 %files -f files |
140 | 144 |
141 %clean | 145 %clean |
142 rm -rf $RPM_BUILD_ROOT | |
143 | 146 |