glib/glib.spec

changeset 455
eb5f1f7ac5ff
parent 454
e99334bd789c
child 474
26ab32c5da43
     1.1 --- a/glib/glib.spec	Fri Aug 03 15:16:43 2012 +0200
     1.2 +++ b/glib/glib.spec	Fri Aug 03 15:21:22 2012 +0200
     1.3 @@ -36,7 +36,7 @@
     1.4  Group:        Algorithm
     1.5  License:      GPL
     1.6  Version:      %{V_major}.%{V_minor}
     1.7 -Release:      20120713
     1.8 +Release:      20120800
     1.9  
    1.10  #   package options
    1.11  %option       with_threads  yes
    1.12 @@ -105,10 +105,21 @@
    1.13          -e 's;/gio-2\.0;/gio;g' \
    1.14          -e 's;-l\(g[a-z]*\)-2\.0;-l\1;g' \
    1.15          *-2.0.pc.in
    1.16 +    %{l_shtool} subst \
    1.17 +        -e 's;\(#define _XOPEN_SOURCE\) 600;\1 601;' \
    1.18 +        glib/tests/strfuncs.c
    1.19 +    case "%{l_platform -t}" in
    1.20 +        *-sunos* ) 
    1.21 +            %{l_shtool} subst \
    1.22 +                -e 's;^\(LIBELF_LIBS =\);\1 -lelf;' \
    1.23 +                gio/Makefile.in
    1.24 +            ;;
    1.25 +    esac
    1.26      libs=""
    1.27  %if "%{with_threads}" == "yes"
    1.28      case "%{l_platform -t}" in
    1.29          *-netbsd*  ) libs="-lpthread" ;;
    1.30 +        *-sunos*   ) libs="-lnsl -lsocket" ;;
    1.31      esac
    1.32  %endif
    1.33      CC="%{l_cc}" \
    1.34 @@ -138,7 +149,7 @@
    1.35          --disable-shared
    1.36  
    1.37      #   build package
    1.38 -    %{l_make} %{l_mflags}
    1.39 +    %{l_make} %{l_mflags -O}
    1.40  
    1.41  %install
    1.42      #   install package

mercurial