File kdesdk3.spec of Package kdesdk3

#
# spec file for package kdesdk3
#
# Copyright (c) 2012 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/

Name:           kdesdk3
%define _mandir /opt/kde3/share/man
BuildRequires:  db-devel
BuildRequires:  flex
BuildRequires:  kdebase3-devel
BuildRequires:  libtool
%ifarch %ix86 ppc x86_64 ppc64
BuildRequires:  valgrind-devel
%endif
BuildRequires:  fdupes
Summary:        The KDE Software Development Kit
License:        GPL-2.0+
Group:          System/GUI/KDE
Version:        3.5.10
Release:        0
Url:            http://www.kde.org/
Requires:       cvs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        kdesdk-%{version}.tar.bz2
Patch0:         3_5_BRANCH.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

%package kdecvs
# usesubdirs kbugbuster
Summary:        KBugBuster
Group:          Development/Tools/Version Control

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

%package profile
# usesubdirs kcachegrind
Summary:        Profiling Tools
Group:          Development/Tools/Other
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.

%package translate
# usesubdirs kbabel poxml
Summary:        Tools to Handle Translations
Group:          System/GUI/KDE
Requires:       gettext-tools

%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.

%package devel
Requires:       kdesdk3 kdelibs3-devel
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++

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

%prep
%setup -q -n kdesdk-%{version}
%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

%build
. /etc/opt/kde3/common_options
./configure $configkde --mandir=%_mandir
do_make %{?jobs:-j %jobs}

%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

%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

%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/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