File kdesdk3.spec of Package kdesdk3

#
# spec file for package kdesdk3
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           kdesdk3
BuildRequires:  db-devel flex kdebase3-devel
%ifarch %ix86 ppc x86_64 ppc64
BuildRequires:  valgrind-devel
%endif
BuildRequires:  fdupes
License:        GPL v2 or later
Group:          System/GUI/KDE
Summary:        The KDE Software Development Kit
Version:        3.5.10
Release:        16
Url:            http://www.kde.org/
AutoReqProv:    on
Requires:       kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`)
Requires:       cvs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        kdesdk-%{version}.tar.bz2
Source1:        gettext-0.10.35.tar.bz2
Patch0:         3_5_BRANCH.diff
Patch1:         gettext-0.10.35.diff

%description
This is a collection of applications and tools used by KDE developers.
Important applications are:

* cervisia: for browsing CVS repositories

* kompare: visualizing changes between two versions of a file

* umbrello: UML modeller



Authors:
--------
    The KDE Team <kde@kde.org>

%package kdecvs
License:        GPL v2 or later
# usesubdirs kbugbuster
Summary:        KBugBuster
Group:          Development/Tools/Version Control
AutoReqProv:    on

%description kdecvs
KBugBuster can be used by people with a KDE CVS account to handle bug
reports.



Authors:
--------
    The KDE Team <kde@kde.org>

%package profile
License:        GPL v2 or later
# usesubdirs kcachegrind
Summary:        Profiling Tools
Group:          Development/Tools/Other
AutoReqProv:    on
Requires:       valgrind >= 3.0.0

%description profile
This package contains KCachegrind and the needed Calltree skin for
Valgrind. You can profile your application with Valgrind using Calltree
skin and display the result in KCachegrind to easily find bottlenecks.



Authors:
--------
    The KDE Team <kde@kde.org>

%package translate
License:        GPL v2 or later
# usesubdirs kbabel poxml
Summary:        Tools to Handle Translations
Group:          System/GUI/KDE
AutoReqProv:    on
Requires:       gettext

%description translate
KBabel: for easy handling of PO files. PO files are used to store
translations for glibc-based applications.

poxml: translate DocBook files using translated PO files.



Authors:
--------
    The KDE Team <kde@kde.org>

%package devel
License:        GPL v2 or later
Requires:       kdesdk3 kdelibs3-devel
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++
AutoReqProv:    on

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n kdesdk-%{version} -b 1
%patch0
# kmtrace does not work with glibc 2.3 anymore and valgrind is way better
rm -rf kmtrace
. /etc/opt/kde3/common_options
update_admin
cd ../gettext-0.10.35
chmod 0644 src/*
%patch1
patch -p0 < ../kdesdk-%version/scripts/gettext.patch

%build
. /etc/opt/kde3/common_options
./configure $configkde
do_make %{?jobs:-j %jobs}
cd ../gettext-0.10.35
rm -f missing mkinstalldirs ltconfig install-sh ltmain.sh libtool
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure
make -C intl
make -C lib
make -C src xgettext

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/include/kapptemplate.common
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/do_make
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/config.sub
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/install-sh
chmod 0755 %{buildroot}/opt/kde3/share/apps/umbrello/headings/heading.py
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/am_edit
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/nmcheck
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/config.pl
chmod 0755 %{buildroot}/opt/kde3/share/apps/umbrello/headings/heading.rb
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/debianrules
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/ylwrap
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/compile
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/config.guess
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/bcheck.pl
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/mkinstalldirs
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/depcomp
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/missing
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/conf.change.pl
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/detect-autoconf.pl
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/cvs.sh
chmod 0755 %{buildroot}/opt/kde3/share/apps/kapptemplate/admin/doxygen.sh

install -m 755 ../gettext-0.10.35/src/xgettext $RPM_BUILD_ROOT/opt/kde3/bin/kde-xgettext
%suse_update_desktop_file    kuiviewer      Development GUIDesigner
%suse_update_desktop_file    umbrello       Development Design
%suse_update_desktop_file    kbugbuster     Development Debugger
%suse_update_desktop_file -u catalogmanager Development Translation
%suse_update_desktop_file    kbabel         Development Translation
%suse_update_desktop_file -u kbabeldict     Development Translation
%suse_update_desktop_file    cervisia       Development RevisionControl
%suse_update_desktop_file    kompare        Development RevisionControl
%suse_update_desktop_file    kcachegrind    Development Profiling
kde_post_install
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post translate -p /sbin/ldconfig

%postun translate -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir /opt/kde3/share/icons/hicolor/16x16/mimetypes
%dir /opt/kde3/share/icons/hicolor/32x32/mimetypes
%dir /opt/kde3/share/icons/hicolor/16x16
%dir /opt/kde3/share/icons/hicolor/16x16/apps
%dir /opt/kde3/share/icons/hicolor/32x32
%dir /opt/kde3/share/icons/hicolor/32x32/apps
%dir /opt/kde3/share/icons/hicolor/48x48
%dir /opt/kde3/share/icons/hicolor/48x48/apps
/opt/kde3/bin/adddebug
/opt/kde3/bin/build-progress.sh
/opt/kde3/bin/cervisia
/opt/kde3/bin/cheatmake
/opt/kde3/bin/create_*
/opt/kde3/bin/cvs*
/opt/kde3/bin/cxxmetric
/opt/kde3/bin/ext*
/opt/kde3/bin/fixkdeincludes
/opt/kde3/bin/findmissingcrystal
/opt/kde3/bin/includemocs
/opt/kde3/bin/kapptemplate
/opt/kde3/bin/kde-build
/opt/kde3/bin/kdedoc
/opt/kde3/bin/kdekillall
/opt/kde3/bin/kdelnk2desktop.py
/opt/kde3/bin/kompare
/opt/kde3/bin/licensecheck
/opt/kde3/bin/makeobj
/opt/kde3/bin/noncvslist
/opt/kde3/bin/pruneemptydirs
/opt/kde3/bin/qtdoc
/opt/kde3/bin/umbrello
/opt/kde3/bin/umbodoc
/opt/kde3/bin/zonetab2pot.py
/opt/kde3/bin/kuiviewer
/opt/kde3/bin/fixuifiles
/opt/kde3/bin/kdemangen.pl
/opt/kde3/bin/package_crystalsvg
/opt/kde3/bin/png2mng.pl
/opt/kde3/bin/svn*
/opt/kde3/%_lib/kde3/kabcformat_kdeaccounts.*
/opt/kde3/%_lib/kde3/kfile_cpp.*
/opt/kde3/%_lib/kde3/kfile_diff.*
/opt/kde3/%_lib/kde3/kfile_ts.*
/opt/kde3/%_lib/kde3/lib*
/opt/kde3/%_lib/kde3/plugins*/styles/scheck.*
/opt/kde3/%_lib/libc*
/opt/kde3/%_lib/kde3/cervisia.*
/opt/kde3/%_lib/kde3/cvsservice.*
/opt/kde3/%_lib/kde3/cvsaskpass.*
/opt/kde3/%_lib/libkdeinit_cervisia.*
/opt/kde3/%_lib/libkdeinit_cvs*
/opt/kde3/%_lib/libkompareinterface.*
/opt/kde3/%_lib/libkspy.*
/opt/kde3/%_lib/kde3/quithumbnail.*
/opt/kde3/share/applications/kde/cervisia.desktop
/opt/kde3/share/applications/kde/kompare.desktop
/opt/kde3/share/applications/kde/umbrello.desktop
/opt/kde3/share/applications/kde/kuiviewer.desktop
/opt/kde3/share/apps/cervisia*
/opt/kde3/share/apps/kabc/formats/kdeaccountsplugin.desktop
/opt/kde3/share/apps/kapptemplate
/opt/kde3/share/apps/kconf_update/*
/opt/kde3/share/apps/kompare*
/opt/kde3/share/apps/kstyle/themes/scheck.themerc
/opt/kde3/share/apps/umbrello
/opt/kde3/share/apps/kuiviewer*
/opt/kde3/share/config.kcfg/cervisiapart.kcfg
%doc %lang(en) /opt/kde3/share/doc/HTML/en/cervisia
%doc %lang(en) /opt/kde3/share/doc/HTML/en/umbrello
%doc %lang(en) /opt/kde3/share/doc/HTML/en/kompare
%doc %lang(en) /opt/kde3/share/doc/HTML/en/kdesvn-build
/opt/kde3/share/icons/*/*/*/vcs_*
/opt/kde3/share/icons/*/*/*/cervisia.png
/opt/kde3/share/icons/*/*/*/kompare.*
/opt/kde3/share/icons/*/*/*/umbrello*
/opt/kde3/share/icons/*/*/*/kuiviewer.png
/opt/kde3/share/mimelnk/application/x-umbrello.desktop
/opt/kde3/share/services/cvsservice.desktop
/opt/kde3/share/services/kfile_cpp.desktop
/opt/kde3/share/services/kfile_diff.desktop
/opt/kde3/share/services/kfile_h.desktop
/opt/kde3/share/services/kfile_ts.desktop
/opt/kde3/share/services/designerthumbnail.desktop
/opt/kde3/share/services/kuiviewer_part.desktop
/opt/kde3/share/services/kompare*
/opt/kde3/share/servicetypes/kompare*
/opt/kde3/bin/colorsvn
/opt/kde3/bin/kdesvn-build
/opt/kde3/bin/nonsvnlist
/opt/kde3/bin/kunittest*
/opt/kde3/include/kunittest/runnergui.h
/opt/kde3/%_lib/libkunittestgui.la
/opt/kde3/%_lib/libkunittestgui.so*
/opt/kde3/share/apps/katepart/syntax/kdesvn-buildrc.xml
%_mandir/*/*

%files kdecvs
%defattr(-,root,root)
/opt/kde3/bin/kbugbuster
/opt/kde3/share/applications/kde/kbugbuster.desktop
/opt/kde3/share/apps/kbugbuster
/opt/kde3/share/icons/*/*x*/*/kbugbuster.png
%doc %lang(en) /opt/kde3/share/doc/HTML/en/kbugbuster

%files profile
%defattr(-,root,root)
%dir /opt/kde3/share/icons/hicolor/48x48
%dir /opt/kde3/share/icons/hicolor/48x48/apps
/opt/kde3/bin/dprof2calltree
/opt/kde3/bin/hotshot2calltree
/opt/kde3/bin/memprof2calltree
/opt/kde3/bin/op2calltree
/opt/kde3/bin/pprof2calltree
/opt/kde3/bin/kcachegrind
/opt/kde3/share/applications/kde/kcachegrind.desktop
/opt/kde3/share/apps/kcachegrind
/opt/kde3/share/icons/*/*x*/*/kcachegrind.png
/opt/kde3/share/mimelnk/application/x-kcachegrind.desktop
%doc %lang(en) /opt/kde3/share/doc/HTML/en/kcachegrind

%files translate
%defattr(-,root,root)
/opt/kde3/bin/kde-xgettext
/opt/kde3/bin/catalogmanager
/opt/kde3/bin/kbabel*
/opt/kde3/bin/po2xml
/opt/kde3/bin/split2po
/opt/kde3/bin/swappo
/opt/kde3/bin/transxx
/opt/kde3/bin/xml2pot
/opt/kde3/%_lib/kde3/kbabel*
/opt/kde3/%_lib/kde3/kfile_po.*
/opt/kde3/%_lib/kde3/pothumbnail.*
/opt/kde3/%_lib/libkbabel*
/opt/kde3/share/applications/kde/catalogmanager.desktop
/opt/kde3/share/applications/kde/kbabel*
/opt/kde3/share/apps/catalogmanager
/opt/kde3/share/apps/kbabel
/opt/kde3/share/config.kcfg/kbabel.kcfg
/opt/kde3/share/config.kcfg/kbprojectsettings.kcfg
/opt/kde3/share/icons/*/*x*/*/catalogmanager.png
/opt/kde3/share/icons/*/*x*/*/kbabel.png
/opt/kde3/share/icons/*/*x*/*/kbabeldict.png
/opt/kde3/share/services/dbsearchengine.desktop
/opt/kde3/share/services/kbabel_*
/opt/kde3/share/services/kfile_po.desktop
/opt/kde3/share/services/po*
/opt/kde3/share/services/tmxcompendium.desktop
/opt/kde3/share/servicetypes/kbabel*
%doc %lang(en) /opt/kde3/share/doc/HTML/en/kbabel

%files devel
%defattr(-,root,root)
/opt/kde3/include/cvs*
/opt/kde3/include/kbabel
/opt/kde3/include/kprofilemethod.h
/opt/kde3/include/kspy.h
/opt/kde3/include/repository_stub.h

%changelog
openSUSE Build Service is sponsored by