qt/qt.spec

changeset 343
1bee42cde1f7
parent 342
90f1326e8f73
child 349
886b6dad933a
equal deleted inserted replaced
27:14cb58ee66dd 28:4e9d4a577d11
1 ## 1 ##
2 ## qt.spec -- OpenPKG RPM Specification 2 ## qt.spec -- OpenPKG RPM Specification
3 ## Copyright (c) 2010 Michael Schloh von Bennewitz <michael@schloh.com> 3 ## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
54 Source0: ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-%{version}.tar.gz 54 Source0: ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-%{version}.tar.gz
55 55
56 # build information 56 # build information
57 Prefix: %{l_prefix} 57 Prefix: %{l_prefix}
58 BuildRoot: %{l_buildroot} 58 BuildRoot: %{l_buildroot}
59 BuildPreReq: OpenPKG, openpkg >= 20050726, make, gcc, pkgconfig 59 BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc
60 PreReq: OpenPKG, openpkg >= 20050726 60 PreReq: OpenPKG, openpkg >= 20060823
61 BuildPreReq: X11, png, mng, jpeg, tiff, mesa, xrender 61 BuildPreReq: X11, png, mng, jpeg, tiff, mesa, xrender
62 PreReq: X11, png, mng, jpeg, tiff, mesa, xrender 62 PreReq: X11, png, mng, jpeg, tiff, mesa, xrender
63 BuildPreReq: openssl, zlib, libiconv, sqlite, dbus 63 BuildPreReq: pkgconfig, openssl, zlib, libiconv, sqlite, dbus
64 PreReq: openssl, zlib, libiconv, sqlite, dbus 64 PreReq: pkgconfig, openssl, zlib, libiconv, sqlite, dbus
65 BuildPreReq: fontconfig, freetype 65 BuildPreReq: fontconfig, freetype
66 PreReq: fontconfig, freetype 66 PreReq: fontconfig, freetype
67 %if "%{with_glib}" == "yes" 67 %if "%{with_glib}" == "yes"
68 BuildPreReq: glib2 68 BuildPreReq: glib2
69 PreReq: glib2 69 PreReq: glib2
99 ( echo "This package has exceptional build requirements:" 99 ( echo "This package has exceptional build requirements:"
100 echo " qt-%{version}-root (5 Go)" 100 echo " qt-%{version}-root (5 Go)"
101 echo " qt-everywhere-opensource-src-%{version} (6 Go)" 101 echo " qt-everywhere-opensource-src-%{version} (6 Go)"
102 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (2 Go)" 102 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (2 Go)"
103 echo "Building with no options takes 3,0 hours on a dual core" 103 echo "Building with no options takes 3,0 hours on a dual core"
104 echo "2 GHz CPU, or 7,0 hours with all build options enabled." 104 echo "2 GHz CPU, or 5,0 hours with all build options enabled."
105 ) | %{l_rpmtool} msg -b -t notice 105 ) | %{l_rpmtool} msg -b -t notice
106 106
107 %setup -q -n qt-everywhere-opensource-src-%{version} 107 %setup -q -n qt-everywhere-opensource-src-%{version}
108 x11_incdir=`%{l_rc} --query x11_incdir` 108 x11_incdir=`%{l_rc} --query x11_incdir`
109 x11_libdir=`%{l_rc} --query x11_libdir` 109 x11_libdir=`%{l_rc} --query x11_libdir`
714 -e 's;\(QMAKE_PRL_BUILD_DIR[\t ]*=\).*\(qt-everywhere-opensource-src-%{version}.*\);\1 /.../\2;' \ 714 -e 's;\(QMAKE_PRL_BUILD_DIR[\t ]*=\).*\(qt-everywhere-opensource-src-%{version}.*\);\1 /.../\2;' \
715 -e 's;-L[\t ]*[^\t ]*qt-everywhere-opensource-src-%{version};-L%{l_prefix};' \ 715 -e 's;-L[\t ]*[^\t ]*qt-everywhere-opensource-src-%{version};-L%{l_prefix};' \
716 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/plugins/*/*.prl \ 716 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/plugins/*/*.prl \
717 $RPM_BUILD_ROOT%{l_prefix}/lib/*.prl \ 717 $RPM_BUILD_ROOT%{l_prefix}/lib/*.prl \
718 $RPM_BUILD_ROOT%{l_prefix}/lib/*.la 718 $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
719 # keep library paths clean by removing redundant paths 719 # clean install by removing redundant paths (static libs)
720 %{l_shtool} subst \ 720 %{l_shtool} subst \
721 -e 's;-L[\t ]*[^\t ]*qt-everywhere-opensource-src-%{version}[^\t ]*[\t ]*;;g' \ 721 -e 's;-L[\t ]*[^\t ]*qt-everywhere-opensource-src-%{version}[^\t ]*[\t ]*;;g' \
722 $RPM_BUILD_ROOT%{l_prefix}/lib/*.prl \ 722 $RPM_BUILD_ROOT%{l_prefix}/lib/*.prl \
723 $RPM_BUILD_ROOT%{l_prefix}/lib/*.la 723 $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
724 %if "%{with_shared}" == "yes" 724 %if "%{with_shared}" == "yes"
727 -e 's;/\./;/;g' \ 727 -e 's;/\./;/;g' \
728 -e 's;\(QMAKE_PRL_BUILD_DIR[\t ]*=\).*\(qt-everywhere-opensource-src-%{version}.*\);\1 /.../\2;' \ 728 -e 's;\(QMAKE_PRL_BUILD_DIR[\t ]*=\).*\(qt-everywhere-opensource-src-%{version}.*\);\1 /.../\2;' \
729 -e 's;-L[\t ]*[^\t ]*qt-everywhere-opensource-src-%{version}/lib;-L%{l_prefix}/lib/qt/dynamic;' \ 729 -e 's;-L[\t ]*[^\t ]*qt-everywhere-opensource-src-%{version}/lib;-L%{l_prefix}/lib/qt/dynamic;' \
730 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.prl \ 730 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.prl \
731 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.la 731 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.la
732 # keep library paths clean by removing redundant paths 732 # clean install by removing redundant paths (dynamic libs)
733 %{l_shtool} subst \ 733 %{l_shtool} subst \
734 -e 's;-L[\t ]*[^\t ]*qt-everywhere-opensource-src-%{version}[^\t ]*[\t ]*;;g' \ 734 -e 's;-L[\t ]*[^\t ]*qt-everywhere-opensource-src-%{version}[^\t ]*[\t ]*;;g' \
735 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.prl \ 735 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.prl \
736 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.la 736 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.la
737 %endif 737 %endif

mercurial