glib/glib.spec

changeset 769
a0926cc92e0c
parent 671
f82939c12e5f
child 775
21ce05ebf344
equal deleted inserted replaced
6:5d85e8d5a23a 7:fc0cf2ede317
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_major 2.32 25 %define V_major 2.37
26 %define V_minor 3 26 %define V_minor 3
27 27
28 # package information 28 # package information
29 Name: glib 29 Name: glib
30 Summary: The Gtk Utility Library 30 Summary: The Gtk Utility Library
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: 20120800 39 Release: 20130000
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
110 glib/tests/strfuncs.c 110 glib/tests/strfuncs.c
111 %{l_shtool} subst \ 111 %{l_shtool} subst \
112 -e 's;\(completiondir =\) \$(sysconfdir)/bash_completion.d;\1 $(pkgdatadir)/giobash;' \ 112 -e 's;\(completiondir =\) \$(sysconfdir)/bash_completion.d;\1 $(pkgdatadir)/giobash;' \
113 gio/Makefile.in 113 gio/Makefile.in
114 case "%{l_platform -t}" in 114 case "%{l_platform -t}" in
115 *-sunos* ) 115 *-sunos* )
116 %{l_shtool} subst \ 116 %{l_shtool} subst \
117 -e 's;^\(LIBELF_LIBS =\);\1 -lelf;' \ 117 -e 's;^\(LIBELF_LIBS =\);\1 -lelf;' \
118 gio/Makefile.in 118 gio/Makefile.in
119 %{l_shtool} subst \ 119 %{l_shtool} subst \
120 -e 's;\(Libs.private:.*\) *$;\1 -lsocket -lnsl;' \ 120 -e 's;\(Libs.private:.*\) *$;\1 -lsocket -lnsl;' \
125 *sun4[uv]-* ) l_cflags="$l_cflags -march=v9" ;; 125 *sun4[uv]-* ) l_cflags="$l_cflags -march=v9" ;;
126 *sun*-* ) l_cflags="$l_cflags -march=v8" ;; 126 *sun*-* ) l_cflags="$l_cflags -march=v8" ;;
127 *i?86-* | *amd64-* | *ia64-* ) l_cflags="$l_cflags -march=native" ;; 127 *i?86-* | *amd64-* | *ia64-* ) l_cflags="$l_cflags -march=native" ;;
128 esac 128 esac
129 libs="" 129 libs=""
130 case "%{l_platform -t}" in
131 *-sunos* ) libs="-lnsl -lsocket" ;;
132 esac
130 %if "%{with_threads}" == "yes" 133 %if "%{with_threads}" == "yes"
131 case "%{l_platform -t}" in 134 case "%{l_platform -t}" in
132 *-netbsd* ) libs="-lpthread" ;; 135 *-netbsd* ) libs="-lpthread" ;;
133 *-sunos* ) libs="-lnsl -lsocket" ;; 136 *-sunos* ) libs="-lnsl -lsocket" ;;
134 esac 137 esac

mercurial