modded tdelibs-devel-doc

v3.5.13-sru
Robert Xu 13 years ago
parent 28bd82e3a1
commit 425774d7d1

@ -7,12 +7,12 @@
# SuSEhelp will use this index.html page as start point # SuSEhelp will use this index.html page as start point
r=`pwd` r=`pwd`
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` r=`dirname $root`
cd .. cd ..
done done
kdeapi=/usr/share/doc/KDE3-API/ kdeapi=/usr/share/doc/TDE-API/
if test ! -w $r/${kdeapi} ; then if test ! -w $r/${kdeapi} ; then
echo "The KDE API directory $kdeapi is not writeable. Exit..." echo "The KDE API directory $kdeapi is not writeable. Exit..."
@ -59,13 +59,13 @@ for page in $list; do
eval "path_$mainapi=/$kdeapi/$mainapi" eval "path_$mainapi=/$kdeapi/$mainapi"
done done
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 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" mods="$mods $mainapi"
path=`echo $page | sed -e "s,$r/opt,/opt,"` path=`echo $page | sed -e "s,$r/opt,/opt,"`
eval "page_$mainapi=$path" 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" eval "path_$mainapi=$path"
done done

@ -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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 # case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.trinitydesktop.org/
# #
# norootforbuild # norootforbuild
Name: kdelibs3-devel-doc Name: tdelibs-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 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
%if %suse_version > 1020
BuildRequires: avahi-compat-mDNSResponder-devel fdupes BuildRequires: avahi-compat-mDNSResponder-devel fdupes
%else URL: http://www.trinitydesktop.org
BuildRequires: mDNSResponder-devel
%endif
Url: http://www.kde.org
License: GPLv2+ License: GPLv2+
Group: Documentation/HTML Group: Documentation/HTML
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Additional Package Documentation Summary: Additional Package Documentation
Version: 3.5.10 Version: 3.5.12.99
Release: 44 Release: 1
%define kdelibs_patch_level b %define tdelibs_patch_level b
BuildArch: noarch BuildArch: noarch
Requires: kdelibs3 qt3-devel-doc Requires: tdelibs qt3-devel-doc
Source0: kdelibs-%{version}.tar.bz2 Source0: kdelibs-%{version}.tar.bz2
Source1: create-kdeapi Source1: create-kdeapi
Source4: api_docu_description Source4: api_docu_description
%description %description
This package contains a generated API documentation for all library 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
is: is:
file:/usr/share/doc/KDE3-API/index.html file:/usr/share/doc/TDE-API/index.html
@ -55,24 +51,27 @@ Authors:
%prep %prep
echo %suse_version echo %suse_version
%setup -q -n kdelibs-%{version} %setup -q -n kdelibs-%{version}
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%build %build
. /etc/opt/kde3/common_options %if %is_plus
# supplementary package
DISTRI="openSUSE $BUILD_DISTRIBUTION_VERSION UNSUPPORTED"
%else
# official build on released and maintained products
DISTRI="openSUSE $BUILD_DISTRIBUTION_VERSION"
%endif
export QTDOCDIR=/usr/share/doc/packages/qt3/html export QTDOCDIR=/usr/share/doc/packages/qt3/html
./configure $configkde --with-distribution="$DISTRI" --enable-libsuffix=`/opt/kde3/bin/kde-config --libsuffix` %cmake_tde -d build -- -DKDE_DISTRIBUTION="$DISTRI"
do_make apidox %make_tde -d build -- apidox
%install %install
. /etc/opt/kde3/common_options
list=`find . -name Makefile.am | xargs grep Doxy | sed -e "s,/Makefile.am.*,," | sort -u ` list=`find . -name Makefile.am | xargs grep Doxy | sed -e "s,/Makefile.am.*,," | 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 :/ # The modern way, with kdevelop-incompatible api documentation :/
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/KDE3-API/ mkdir -p $RPM_BUILD_ROOT/usr/share/doc/TDE-API/
# *** everytime you edit the following line, you made a mistake. Update admin tarball # *** everytime you edit the following line, you made a mistake. Update macros.tde
# *** version instead # *** version instead
KDEDOCDIR=$kde_htmldir/en/kdelibs-apidocs KDEDOCDIR=%{_tde_htmldir}/en/kdelibs-apidocs
# this is forgotten, but kdevelop needs it # this is forgotten, but kdevelop needs it
mkdir -p $RPM_BUILD_ROOT/$KDEDOCDIR mkdir -p $RPM_BUILD_ROOT/$KDEDOCDIR
if test -d apidocs/qt; then if test -d apidocs/qt; then
@ -92,27 +91,25 @@ do_make apidox
if test "$exitc" != 0; then if test "$exitc" != 0; then
exit $exitc exit $exitc
fi fi
ln -s $KDEDOCDIR/index.html $RPM_BUILD_ROOT/usr/share/doc/KDE3-API/index.html ln -s $KDEDOCDIR/index.html $RPM_BUILD_ROOT/usr/share/doc/TDE-API/index.html
rm -rf ${RPM_BUILD_ROOT}/opt/kde3/share/apps rm -rf ${RPM_BUILD_ROOT}/%{_tde_datadir}
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/apps/kdelibs mkdir -p $RPM_BUILD_ROOT/%{_tde_datadir}/tdelibs
install -m 0755 %SOURCE1 $RPM_BUILD_ROOT/opt/kde3/share/apps/kdelibs/ install -m 0755 %SOURCE1 $RPM_BUILD_ROOT/%{_tde_datadir}/tdelibs/
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT %fdupes -s $RPM_BUILD_ROOT
%endif
%post %post
/opt/kde3/share/apps/kdelibs/create-kdeapi %{_tde_datadir}/tdelibs/create-kdeapi
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir /opt/kde3/share %dir %{_tde_sharedir}
%dir /opt/kde3/share/apps %dir %{_tde_datadir}
%dir /opt/kde3/share/apps/kdelibs %dir %{_tde_datadir}/tdelibs
/usr/share/doc/KDE3-API /usr/share/doc/TDE-API
/opt/kde3/share/apps/kdelibs/create-kdeapi %{_tde_datadir}/tdelibs/create-kdeapi
/opt/kde3/share/doc %{_tde_docdir}
%changelog %changelog

Loading…
Cancel
Save