auto-import kdelibs-2.2-14c from kdelibs-2.2-14c.src.rpm

This commit is contained in:
cvsdist 2004-09-09 06:50:56 +00:00
parent 59cdca3f86
commit 11c1834043
1 changed files with 13 additions and 7 deletions

View File

@ -3,7 +3,7 @@
%define is_release 1
%define beta %{nil}
%define cups %{nil}
%define rel 12
%define rel 14c
%define debug 0
%define DATE 20010908
Version: 2.2
@ -31,6 +31,8 @@ Patch14: khtml-onChange.patch
# Japanese patches
Patch100: http://www.kde.gr.jp/patch/kdelibs-2.2beta1-keditcl1-20010706.diff
Patch101: http://www.kde.gr.jp/patch/kdelibs-2.2beta1-khtml-autoencode-ja-20010708.diff
# Simplified Chinese patch
Patch200: kdelibs-2.2-gbk.patch
Name: %{pkg}
Prefix: %{_prefix}
Requires: qt >= 2.3.0 openssl
@ -141,6 +143,8 @@ rm -rf kdoctools/libxslt
%patch100 -p1 -b .jp1
# # # patch101 -p1 -b .jp2
%patch200 -p1 -b .gbk
#%patch201 -p1
# Make the version number say what it should say
perl -pi -e 's,#define KDE_VERSION_STRING .*,#define KDE_VERSION_STRING "%{version}-%{release}",g' kdecore/kapp.h
@ -164,7 +168,8 @@ if test "x$CPUS" = "x" -o "x$CPUS" = "x0"; then
fi
%if %{debug}
export FLAGS="-O0 -DDEBUG=1"
export FLAGS="-g -gstabs -O2 -DDEBUG=1"
#export FLAGS="-O0 -DDEBUG=1"
%else
export FLAGS="-O3 -DNDEBUG -UDEBUG -DNODEBUG -UDEBUG_ASYNC_TRANSFER -UVPORT_DEBUG -UDEBUG_IO -UDEBUG_MESSAGES -UDEBUG_AUTH -UDEBUG_CONNECTION_DATA -DYYDEBUG=0 -UNETWMDEBUG -UCSS_DEBUG -UCSS_STYLESHEET_DEBUG -USPEED_DEBUG -UKJS_DEBUGGER -UFORMS_DEBUG -UDEBUG_LAYOUT -UDEBUG_DRAW_BORDER -UPARSER_DEBUG -UDECODE_DEBUG -UCACHE_DEBUG -UBUFFER_DEBUG -UJPEG_DEBUG -UDEBUG_LINEBREAKS -UBOX_DEBUG -UTABLE_DEBUG -UYYERROR_VERBOSE -UKJS_DEBUG_MEM -UMIDIOUTDEBUG -UGENERAL_DEBUG_MESSAGES"
%endif
@ -184,6 +189,8 @@ CXXFLAGS="$FLAGS" CFLAGS="$FLAGS" ./configure \
--disable-debug \
--without-debug \
--enable-final \
%else
--enable-debug \
%endif
--with-distribution="Red Hat Linux $VERSION"
@ -193,9 +200,6 @@ make %{?_smp_mflags}
unset QTDIR || : ; . /etc/profile.d/qt.sh
export DESTDIR=$RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-strip
cd doc/api
make DESTDIR=$RPM_BUILD_ROOT install-strip
cd ../..
export FLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions -fno-check-new"
CXXFLAGS="$FLAGS" CFLAGS="$FLAGS" ./configure \
@ -207,6 +211,8 @@ CXXFLAGS="$FLAGS" CFLAGS="$FLAGS" ./configure \
%if "%{debug}" == "0"
--disable-debug \
--without-debug \
%else
--enable-debug \
%endif
--disable-shared \
%ifnarch alpha
@ -416,8 +422,8 @@ rm -rf $RPM_BUILD_ROOT
%{prefix}/lib/libartsc.a
%changelog
* Wed Nov 21 2001 Jakub Jelinek <jakub@redhat.com> 2.2-12
- Fix libxslt patch, so that it links against xml libs too
* Fri Oct 26 2001 Leon Ho <llch@redhat.com>
- fixes gbk locale
* Sat Sep 8 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.2-11
- i18n fixes