34 Distribution: OpenPKG Community |
34 Distribution: OpenPKG Community |
35 Class: BASE |
35 Class: BASE |
36 Group: Algorithm |
36 Group: Algorithm |
37 License: GPL |
37 License: GPL |
38 Version: %{V_glib2_major}.%{V_glib2_minor} |
38 Version: %{V_glib2_major}.%{V_glib2_minor} |
39 Release: 20100807 |
39 Release: 20101020 |
40 |
40 |
41 # package options |
41 # package options |
42 %option with_threads yes |
42 %option with_threads yes |
43 |
43 |
44 # list of sources |
44 # list of sources |
45 Source0: ftp://ftp.gnome.org/pub/gnome/sources/glib/%{V_glib2_major}/glib-%{version}.tar.gz |
45 Source0: ftp://ftp.gnome.org/pub/gnome/sources/glib/%{V_glib2_major}/glib-%{version}.tar.gz |
46 Patch0: glib2.patch |
46 Patch0: glib2.patch |
47 |
47 |
48 # build information |
48 # build information |
|
49 Prefix: %{l_prefix} |
|
50 BuildRoot: %{l_buildroot} |
49 BuildPreReq: OpenPKG, openpkg >= 20100101, perl, make, pkgconfig |
51 BuildPreReq: OpenPKG, openpkg >= 20100101, perl, make, pkgconfig |
50 PreReq: OpenPKG, openpkg >= 20100101, perl |
52 PreReq: OpenPKG, openpkg >= 20100101, perl |
51 BuildPreReq: gettext, libiconv, pcre, pcre::with_utf8 = yes |
53 BuildPreReq: gettext, libiconv, pcre, pcre::with_utf8 = yes |
52 PreReq: gettext, libiconv, pcre, pcre::with_utf8 = yes |
54 PreReq: gettext, libiconv, pcre, pcre::with_utf8 = yes |
53 |
55 |
136 |
138 |
137 # build package |
139 # build package |
138 %{l_make} %{l_mflags} |
140 %{l_make} %{l_mflags} |
139 |
141 |
140 %install |
142 %install |
|
143 rm -rf $RPM_BUILD_ROOT |
|
144 |
141 # install package |
145 # install package |
142 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
146 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
143 |
147 |
144 # strip down installation |
148 # strip down installation |
145 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
149 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
146 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias |
150 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias |
147 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale |
151 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale |