glib/glib.spec

changeset 455
eb5f1f7ac5ff
parent 454
e99334bd789c
child 474
26ab32c5da43
equal deleted inserted replaced
1:1edbe0456a12 2:ebd63b0212e5
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_major}.%{V_minor} 38 Version: %{V_major}.%{V_minor}
39 Release: 20120713 39 Release: 20120800
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
103 -e 's;/gmodule-2\.0;/gmodule;g' \ 103 -e 's;/gmodule-2\.0;/gmodule;g' \
104 -e 's;/gio-unix-2\.0;/gio-unix;g' \ 104 -e 's;/gio-unix-2\.0;/gio-unix;g' \
105 -e 's;/gio-2\.0;/gio;g' \ 105 -e 's;/gio-2\.0;/gio;g' \
106 -e 's;-l\(g[a-z]*\)-2\.0;-l\1;g' \ 106 -e 's;-l\(g[a-z]*\)-2\.0;-l\1;g' \
107 *-2.0.pc.in 107 *-2.0.pc.in
108 %{l_shtool} subst \
109 -e 's;\(#define _XOPEN_SOURCE\) 600;\1 601;' \
110 glib/tests/strfuncs.c
111 case "%{l_platform -t}" in
112 *-sunos* )
113 %{l_shtool} subst \
114 -e 's;^\(LIBELF_LIBS =\);\1 -lelf;' \
115 gio/Makefile.in
116 ;;
117 esac
108 libs="" 118 libs=""
109 %if "%{with_threads}" == "yes" 119 %if "%{with_threads}" == "yes"
110 case "%{l_platform -t}" in 120 case "%{l_platform -t}" in
111 *-netbsd* ) libs="-lpthread" ;; 121 *-netbsd* ) libs="-lpthread" ;;
122 *-sunos* ) libs="-lnsl -lsocket" ;;
112 esac 123 esac
113 %endif 124 %endif
114 CC="%{l_cc}" \ 125 CC="%{l_cc}" \
115 CFLAGS="%{l_cflags -O}" \ 126 CFLAGS="%{l_cflags -O}" \
116 CPPFLAGS="%{l_cppflags}" \ 127 CPPFLAGS="%{l_cppflags}" \
136 --disable-fam \ 147 --disable-fam \
137 --disable-debug \ 148 --disable-debug \
138 --disable-shared 149 --disable-shared
139 150
140 # build package 151 # build package
141 %{l_make} %{l_mflags} 152 %{l_make} %{l_mflags -O}
142 153
143 %install 154 %install
144 # install package 155 # install package
145 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 156 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
146 157

mercurial