OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael Schloh Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src openpkg-web Date: 10-Sep-2003 01:58:49 Branch: HEAD Handle: 2003091000584602 Modified files: openpkg-src/qt qt.spec openpkg-web news.txt Log: Merge pc file substitutions with install stage, remove unnecessary file moves, and remove installation to qtdyn directory to install section Summary: Revision Changes Path 1.85 +34 -25 openpkg-src/qt/qt.spec 1.6483 +1 -0 openpkg-web/news.txt ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/qt/qt.spec ============================================================================ $ cvs diff -u -r1.84 -r1.85 qt.spec --- openpkg-src/qt/qt.spec 8 Sep 2003 07:25:18 -0000 1.84 +++ openpkg-src/qt/qt.spec 9 Sep 2003 23:58:48 -0000 1.85 @@ -33,7 +33,7 @@ Group: XWindow License: GPL Version: 3.2.1 -Release: 20030908 +Release: 20030910 # package library options (each 'yes' builds more libraries) %option with_shared no @@ -194,10 +194,7 @@ %endif # already install our shared libs, and clear out the rest - %{l_shtool} mkdir -f -p -m 755 \ - $RPM_BUILD_ROOT%{l_prefix}/lib/qtdyn - %{l_tar} cf - lib/*.so* lib/*.prl lib/*.pc | %{l_tar} xf - \ - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qtdyn/ + cp -rf lib dyn rm -f lib/* %endif @@ -241,9 +238,6 @@ %endif %if "%{with_threads}" == "yes" - # generate the multithreaded library definitions also - mv lib/qt.pc . - # run configure a second time to get threaded libs as well CC="%{l_cc}" \ CXX="%{l_cxx}" \ @@ -282,29 +276,20 @@ sub-uic ) || exit $? %endif - - # patch the badly generated pkg-config (.pc) files - mv qt.pc lib - %{l_shtool} subst \ - -e "s;-l/.*\.pc ;;g" \ - -e "s;-L[^ \t]*[ \t];;g" \ - -e "s;Libs:;Libs: %{l_ldflags} -L${l_x11_libdir};g" \ - -e "s;\t; ;g" \ - -e "s; \+; ;g" \ - -e "s; *$;;g" \ - lib/qt.pc \ - lib/qt-mt.pc - %{l_shtool} subst \ - -e "s;\(Libs.*$\);\1 -pthread;g" \ - lib/qt-mt.pc %endif %install rm -rf $RPM_BUILD_ROOT + # calculate X11 lib directory in advance + l_x11_libdir=`%{l_prefix}/etc/rc --query x11_libdir` + # make directory structure %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/bin \ +%if "%{with_shared}" == "yes" + $RPM_BUILD_ROOT%{l_prefix}/lib/qtdyn \ +%endif %if "%{with_tools}" == "yes" $RPM_BUILD_ROOT%{l_prefix}/share/qt/templates \ $RPM_BUILD_ROOT%{l_prefix}/share/qt/phrasebooks \ @@ -340,9 +325,33 @@ %{l_shtool} install -c -m 644 \ include/private/*.h $RPM_BUILD_ROOT%{l_prefix}/include/qt/private/ %{l_shtool} install -c -m 644 \ - lib/*.pc $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/ - %{l_shtool} install -c -m 644 \ lib/*.a lib/*.prl $RPM_BUILD_ROOT%{l_prefix}/lib/ + %{l_shtool} install -c -m 644 \ + -e "s;\t; ;g" \ + -e "s;\ \+; ;g" \ + -e "s;\ *$;;g" \ + -e "s;-[lL]\ *\-;\-;g" \ + -e "s;-l\ *[^ ]*qt\.pc\ *;;g" \ + -e "s;-L\ *.[^ ]*\ *;;g" \ + -e "s;Libs:;Libs: %{l_ldflags} -L${l_x11_libdir};g" \ + -e "s;\(\-l\);\-lqt \1;" \ + lib/qt.pc $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/ +%if "%{with_threads}" == "yes" + %{l_shtool} install -c -m 644 \ + -e "s;\t; ;g" \ + -e "s;\ \+; ;g" \ + -e "s;\ *$;;g" \ + -e "s;-[lL]\ *\-;\-;g" \ + -e "s;-l\ *[^ ]*qt\-mt\.pc\ *;;g" \ + -e "s;-L\ *.[^ ]*\ *;;g" \ + -e "s;Libs:;Libs: %{l_ldflags} -L${l_x11_libdir};g" \ + -e "s;\(\-l\);\-lqt\-mt \1;" \ + lib/qt-mt.pc $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/ +%endif +%if "%{with_shared}" == "yes" + %{l_shtool} install -c -m 644 \ + dyn/lib*.so* dyn/*.prl dyn/*.pc $RPM_BUILD_ROOT%{l_prefix}/lib/qtdyn/ +%endif %if "%{with_tools}" == "yes" %{l_shtool} install -c -m 644 \ tools/designer/templates/*.ui $RPM_BUILD_ROOT%{l_prefix}/share/qt/templates/ @@ . patch -p0 <<'@@ .' Index: openpkg-web/news.txt ============================================================================ $ cvs diff -u -r1.6482 -r1.6483 news.txt --- openpkg-web/news.txt 9 Sep 2003 18:33:33 -0000 1.6482 +++ openpkg-web/news.txt 9 Sep 2003 23:58:46 -0000 1.6483 @@ -1,3 +1,4 @@ +10-Sep-2003: Upgraded package: P<qt-3.2.1-20030910> 09-Sep-2003: Upgraded package: P<tftp-0.34-20030909> 09-Sep-2003: Upgraded package: P<sasl-2.1.15-20030909> 09-Sep-2003: Upgraded package: P<radius-1.1-20030909> @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]