Tue, 28 Aug 2012 18:28:35 +0200
Write a explicit dependency to pkgconfig file for getaddrinfo(3). The SVR4
dependencies libsocket and libnsl are needed by libgio and libglib at least,
and allow dependent software like gmime to build unmodified.
glib/glib.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/glib/glib.spec Tue Aug 28 18:28:30 2012 +0200 1.2 +++ b/glib/glib.spec Tue Aug 28 18:28:35 2012 +0200 1.3 @@ -113,6 +113,9 @@ 1.4 %{l_shtool} subst \ 1.5 -e 's;^\(LIBELF_LIBS =\);\1 -lelf;' \ 1.6 gio/Makefile.in 1.7 + %{l_shtool} subst \ 1.8 + -e 's;\(Libs.private:.*\) *$;\1 -lsocket -lnsl;' \ 1.9 + glib-2.0.pc.in 1.10 ;; 1.11 esac 1.12 case "%{l_platform -t}" in 1.13 @@ -158,7 +161,7 @@ 1.14 1.15 %install 1.16 # install package 1.17 - %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 1.18 + %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" 1.19 1.20 # strip down installation 1.21 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir