path: root/opensuse
diff options
authorRobert Xu <>2011-08-21 18:03:22 -0400
committerRobert Xu <>2011-08-21 18:03:22 -0400
commit425774d7d1d663e08bb06050924f2eeca9147bba (patch)
tree6977654fb48d513cc6674f8a469b8db68678fbdc /opensuse
parent28bd82e3a1881f42b1b8f9de924757ff0ae2ba21 (diff)
modded tdelibs-devel-doc
Diffstat (limited to 'opensuse')
2 files changed, 42 insertions, 45 deletions
diff --git a/opensuse/tdelibs/create-kdeapi b/opensuse/tdelibs/create-kdeapi
index 720922e8a..6a11907eb 100644
--- a/opensuse/tdelibs/create-kdeapi
+++ b/opensuse/tdelibs/create-kdeapi
@@ -7,12 +7,12 @@
# SuSEhelp will use this index.html page as start point
-while test ! -x usr/share/doc/KDE3-API/ && test "$r" != "/"; do
+while test ! -x usr/share/doc/TDE-API/ && test "$r" != "/"; do
r=`dirname $root`
cd ..
if test ! -w $r/${kdeapi} ; then
echo "The KDE API directory $kdeapi is not writeable. Exit..."
@@ -59,13 +59,13 @@ for page in $list; do
eval "path_$mainapi=/$kdeapi/$mainapi"
-list=`ls -1 $r/opt/kde3/share/doc/HTML/en/*-apidocs/*/html/index.html 2> /dev/null`
+list=`ls -1 $r/opt/tde/share/doc/HTML/en/*-apidocs/*/html/index.html 2> /dev/null`
for page in $list; do
- mainapi=`echo $page | sed -n -e "s@$r/opt/kde3/share/doc/HTML/en/.*-apidocs/\([^/]*\)/html/index.html@\1@p"`
+ mainapi=`echo $page | sed -n -e "s@$r/opt/tde/share/doc/HTML/en/.*-apidocs/\([^/]*\)/html/index.html@\1@p"`
mods="$mods $mainapi"
path=`echo $page | sed -e "s,$r/opt,/opt,"`
eval "page_$mainapi=$path"
- path=`echo $page | sed -n -e "s@$r\(/opt/kde3/share/doc/HTML/en/.*-apidocs/[^/]*\)/html/index.html@\1@p"`
+ path=`echo $page | sed -n -e "s@$r\(/opt/tde/share/doc/HTML/en/.*-apidocs/[^/]*\)/html/index.html@\1@p"`
eval "path_$mainapi=$path"
diff --git a/opensuse/tdelibs/tdelibs-devel-doc.spec b/opensuse/tdelibs/tdelibs-devel-doc.spec
index f0a18a342..cf74b334f 100644
--- a/opensuse/tdelibs/tdelibs-devel-doc.spec
+++ b/opensuse/tdelibs/tdelibs-devel-doc.spec
@@ -1,7 +1,7 @@
-# spec file for package kdelibs3-devel-doc
+# spec file for package tdelibs-devel-doc
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 the Trinity Project (opensuse).
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -11,40 +11,36 @@
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via
+# Please submit bugfixes or comments via
# norootforbuild
-Name: kdelibs3-devel-doc
-BuildRequires: OpenEXR-devel aspell-devel cups-devel db-devel doxygen graphviz kdelibs3-devel krb5-devel libjasper libsndfile openldap2-devel qt3-devel-doc utempter xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-scalable
-%if %suse_version > 1020
+Name: tdelibs-devel-doc
+BuildRequires: OpenEXR-devel aspell-devel cups-devel db-devel doxygen graphviz tdelibs-devel krb5-devel libjasper libsndfile openldap2-devel qt3-devel-doc libtqt4-devel tde-filesystem utempter xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-scalable
BuildRequires: avahi-compat-mDNSResponder-devel fdupes
-BuildRequires: mDNSResponder-devel
License: GPLv2+
Group: Documentation/HTML
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Additional Package Documentation
-Version: 3.5.10
-Release: 44
-%define kdelibs_patch_level b
+Release: 1
+%define tdelibs_patch_level b
BuildArch: noarch
-Requires: kdelibs3 qt3-devel-doc
+Requires: tdelibs qt3-devel-doc
Source0: kdelibs-%{version}.tar.bz2
Source1: create-kdeapi
Source4: api_docu_description
This package contains a generated API documentation for all library
-classes provided by kdelibs. The index page for all KDE API functions
+classes provided by tdelibs. The index page for all TDE API functions
@@ -55,24 +51,27 @@ Authors:
echo %suse_version
%setup -q -n kdelibs-%{version}
-. /etc/opt/kde3/common_options
-update_admin --no-unsermake
-. /etc/opt/kde3/common_options
+%if %is_plus
+ # supplementary package
+ # official build on released and maintained products
export QTDOCDIR=/usr/share/doc/packages/qt3/html
-./configure $configkde --with-distribution="$DISTRI" --enable-libsuffix=`/opt/kde3/bin/kde-config --libsuffix`
-do_make apidox
+%cmake_tde -d build -- -DKDE_DISTRIBUTION="$DISTRI"
+%make_tde -d build -- apidox
-. /etc/opt/kde3/common_options
list=`find . -name | xargs grep Doxy | sed -e "s,/*,," | sort -u `
- for i in $list; do do_make -C $i DESTDIR=$RPM_BUILD_ROOT install-apidox || true; done
+ for i in $list; do %makeinstall_tde -d build -- -C $i DESTDIR=$RPM_BUILD_ROOT install-apidox || true; done
# The modern way, with kdevelop-incompatible api documentation :/
- mkdir -p $RPM_BUILD_ROOT/usr/share/doc/KDE3-API/
- # *** everytime you edit the following line, you made a mistake. Update admin tarball
+ mkdir -p $RPM_BUILD_ROOT/usr/share/doc/TDE-API/
+ # *** everytime you edit the following line, you made a mistake. Update macros.tde
# *** version instead
- KDEDOCDIR=$kde_htmldir/en/kdelibs-apidocs
+ KDEDOCDIR=%{_tde_htmldir}/en/kdelibs-apidocs
# this is forgotten, but kdevelop needs it
if test -d apidocs/qt; then
@@ -92,27 +91,25 @@ do_make apidox
if test "$exitc" != 0; then
exit $exitc
- ln -s $KDEDOCDIR/index.html $RPM_BUILD_ROOT/usr/share/doc/KDE3-API/index.html
- rm -rf ${RPM_BUILD_ROOT}/opt/kde3/share/apps
- mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/apps/kdelibs
- install -m 0755 %SOURCE1 $RPM_BUILD_ROOT/opt/kde3/share/apps/kdelibs/
- %if %suse_version > 1020
+ ln -s $KDEDOCDIR/index.html $RPM_BUILD_ROOT/usr/share/doc/TDE-API/index.html
+ rm -rf ${RPM_BUILD_ROOT}/%{_tde_datadir}
+ mkdir -p $RPM_BUILD_ROOT/%{_tde_datadir}/tdelibs
+ install -m 0755 %SOURCE1 $RPM_BUILD_ROOT/%{_tde_datadir}/tdelibs/
%fdupes -s $RPM_BUILD_ROOT
- %endif
rm -rf ${RPM_BUILD_ROOT}
-%dir /opt/kde3/share
-%dir /opt/kde3/share/apps
-%dir /opt/kde3/share/apps/kdelibs
+%dir %{_tde_sharedir}
+%dir %{_tde_datadir}
+%dir %{_tde_datadir}/tdelibs