File kdesdk4.spec of Package kdesdk4

#
# spec file for package kdesdk4
#
# 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/
#



Name:           kdesdk4
Version:        4.7.2
Release:        1
License:        GPLv2+
Summary:        KDE SDK Package
Url:            http://www.kde.org/
Group:          System/GUI/KDE
Source0:        kdesdk-%{version}.tar.bz2
Source100:      kdesdk4-rpmlintrc
Patch0:         desktop-files.diff
BuildRequires:  antlr
BuildRequires:  antlr-devel
# for libiberty (used by kmtrace for cp_demangle)
BuildRequires:  binutils-devel
BuildRequires:  db-devel
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  hunspell-devel
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libkonq-devel
BuildRequires:  libqca2-devel
BuildRequires:  oxygen-icon-theme
BuildRequires:  strigi
BuildRequires:  subversion-devel
BuildRequires:  libkde4-devel >= %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Requires(post):     shared-mime-info
Requires(postun):   shared-mime-info

%description
This package suggests the packages, built from the kdesdk module.

%prep
%setup -q -n kdesdk-%{version}
%patch0

%build
%ifarch ppc64
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %make_install
  %create_subdir_filelist -d cervisia
  %create_subdir_filelist -d kapptemplate
  %create_subdir_filelist -d kcachegrind
  %create_subdir_filelist -d kdeaccounts-plugin
  %create_subdir_filelist -d kioslave
  %create_subdir_filelist -d kmtrace
  %create_subdir_filelist -d kstartperf
  %create_subdir_filelist -d kuiviewer
  %create_subdir_filelist -d scripts
  %create_subdir_filelist -d umbrello
  %create_subdir_filelist -d kpartloader
  %create_subdir_filelist -d kompare -v kompare.devel
  %create_subdir_filelist -d poxml
  %create_subdir_filelist -d okteta -v okteta.devel
  %create_subdir_filelist -d lokalize
  cd ..
  sed -ri s,.*/usr/share/man/man1/cervisia.1.*,, filelists/cervisia
  %create_exclude_filelist
  %suse_update_desktop_file    kuiviewer      Development GUIDesigner
  %suse_update_desktop_file    umbrello       Development Design
  %suse_update_desktop_file -r kompare        Utility TextEditor
  %suse_update_desktop_file    cervisia       Development RevisionControl
  %suse_update_desktop_file    kcachegrind    Development Profiling
  %suse_update_desktop_file    kapptemplate
  %suse_update_desktop_file    okteta         Utility Editor
  %suse_update_desktop_file -r lokalize       Development Translation
  # fix conflict with kdesdk3
  rm %{buildroot}%{_mandir}/man1/cervisia.1
  %fdupes -s %{buildroot}
  %kde_post_install

%post
/sbin/ldconfig
%_kde4_bindir/update-mime-database %{_datadir}/mime &> /dev/null || :

%postun
/sbin/ldconfig
%_kde4_bindir/update-mime-database %{_datadir}/mime &> /dev/null || :

%clean
  rm -rf %{buildroot}
  rm -rf filelists

%package scripts
License:        GPLv2+
Summary:        Scripts for KDE Development
Group:          System/GUI/KDE
%kde4_runtime_requires

%description scripts
This package contains the scripts for KDE development which are
contained in the kdesdk module.

%files scripts -f filelists/scripts
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n kde4-l10n-devel
License:        GPLv2+
Summary:        KDE SDK Package
Group:          Development/Libraries/KDE
%kde4_runtime_requires

%description -n kde4-l10n-devel
This package suggests the packages, built from the kdesdk module.

%files -n kde4-l10n-devel -f filelists/poxml
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n lokalize
License:        GPLv2+
Summary:        KDE Translation Editor
Group:          System/GUI/KDE
# Requires strigila_po.so (bnc#410716)
Requires:       kdesdk4-strigi
Requires:       libqt4_sql_backend
Requires:       python-kde4
Provides:       kde4-lokalize = 4.3.0
Obsoletes:      kde4-lokalize < 4.3.0
%kde4_runtime_requires

%description -n lokalize
This package contains lokalize, an editor for translations.

%files -n lokalize -f filelists/lokalize
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n dolphin-plugins
License:        GPLv2+
Summary:        Version control plugins for dolphin
Group:          System/GUI/KDE
%kde4_runtime_requires

%description -n dolphin-plugins
Dolphin file manager specific version control plugins that:
- Show the version state of a file by an emblem + color;
- Provide a context menu with version control specific actions.

%files -n dolphin-plugins
%defattr(-,root,root)
%_kde4_servicesdir/fileviewgitplugin.desktop
%_kde4_configdir.kcfg/fileviewgitpluginsettings.kcfg
%_kde4_modulesdir/fileviewgitplugin.so
%_kde4_servicesdir/fileviewsvnplugin.desktop
%_kde4_configdir.kcfg/fileviewsvnpluginsettings.kcfg
%_kde4_modulesdir/fileviewsvnplugin.so

%package -n okteta
License:        GPLv2+
Summary:        Hex Editor
Group:          Development/Tools/Other
Provides:       kde4-okteta = 4.0.81
Obsoletes:      kde4-okteta < 4.0.81
Requires(post):     shared-mime-info
Requires(postun):   shared-mime-info
%kde4_runtime_requires

%description -n okteta
Okteta is a hex editor for the KDE desktop.

%post -n okteta
/sbin/ldconfig
%_kde4_bindir/update-mime-database %{_datadir}/mime &> /dev/null || :

%postun -n okteta
/sbin/ldconfig
%_kde4_bindir/update-mime-database %{_datadir}/mime &> /dev/null || :

%files -n okteta -f filelists/okteta
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/oktetapart

%package -n okteta-devel
License:        GPLv2+
Summary:        Hex Editor
Group:          Development/Tools/Other
Requires:       okteta

%description -n okteta-devel
Okteta is a hex editor for the KDE desktop.

%files -n okteta-devel -f filelists/okteta.devel
%defattr(-,root,root)
%{_includedir}/KDE/Kasten
%{_includedir}/KDE/Okteta
%{_includedir}/kasten
%{_includedir}/okteta

%package -n cervisia
License:        GPLv2+
Summary:        CVS Frontend
Group:          Development/Tools/Version Control
Provides:       kde4-cervisia = 4.3.0
Obsoletes:      kde4-cervisia < 4.3.0
%kde4_runtime_requires

%description -n cervisia
Cervisia is a tool to work with and browse in CVS repositories.

%files -n cervisia -f filelists/cervisia
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/cervisiapart

%package -n kuiviewer
License:        GPLv2+
Summary:        UI Files Viewer
Group:          Development/Tools/Other
Provides:       kde4-kuiviewer = 4.3.0
Obsoletes:      kde4-kuiviewer < 4.3.0
%kde4_runtime_requires

%description -n kuiviewer
Displays Qt Designer UI files.

%files -n kuiviewer -f filelists/kuiviewer
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/kuiviewerpart

%package -n kcachegrind
License:        GPLv2+
Summary:        Frontend for Cachegrind
Group:          Development/Tools/Other
Provides:       kde4-kcachegrind = 4.3.0
Obsoletes:      kde4-kcachegrind < 4.3.0
%kde4_runtime_requires

%description -n kcachegrind
KCachegrind is a frontend for cachegrind.

%files -n kcachegrind -f filelists/kcachegrind
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n kde4-kapptemplate
License:        GPLv2+
Summary:        Template for KDE Application Development
Group:          System/GUI/KDE
%kde4_runtime_requires

%description -n kde4-kapptemplate
This package contains templates to start the development of a new KDE
application/part/plugin.

%files -n kde4-kapptemplate -f filelists/kapptemplate
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/kdevappwizard
%dir %_kde4_appsdir/kdevappwizard/templates
%dir %_kde4_appsdir/kdevappwizard/template_previews

%package -n kio_svn
License:        GPLv2+
Summary:        KDE KIO-Slave for SVN
Group:          System/GUI/KDE
Provides:       kde4-kio_svn = 4.3.0
Obsoletes:      kde4-kio_svn < 4.3.0
%kde4_runtime_requires

%description -n kio_svn
This KDE KIO-Slave allows to browse SVN repositories in file managers.

%files -n kio_svn -f filelists/kioslave
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/kio_perldoc

%package -n kmtrace
License:        GPLv2+
Summary:        Memory Allocation Debugging Tool
Group:          Development/Tools/Other
Provides:       kde4-kmtrace = 4.3.0
Obsoletes:      kde4-kmtrace < 4.3.0
Provides:       kmtrace-devel = 4.7
Obsoletes:      kmtrace-devel < 4.7
%kde4_runtime_requires

%description -n kmtrace
This is a KDE tool to assist with malloc debugging using glibc's
"mtrace" functionality.

%post   -n kmtrace -p /sbin/ldconfig

%postun -n kmtrace -p /sbin/ldconfig

%files -n kmtrace -f filelists/kmtrace
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n kstartperf
License:        GPLv2+
Summary:        KDE Benchmarking Tool
Group:          Development/Tools/Other
Provides:       kde4-kstartperf = 4.3.0
Obsoletes:      kde4-kstartperf < 4.3.0
%kde4_runtime_requires

%description -n kstartperf
Startup time measurement tool for KDE applications.

%files -n kstartperf -f filelists/kstartperf
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package kdeaccounts
License:        GPLv2+
Summary:        KAddressBook Plugins for Developer Database
Group:          System/GUI/KDE
Requires:       kdepim4-runtime
%kde4_runtime_requires
%kde4_pimlibs_requires

%description kdeaccounts
This package contains a plugin for KAddressBook to include KDE SVN
accounts.

%files kdeaccounts -f filelists/kdeaccounts-plugin
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n umbrello
License:        GPLv2+
Summary:        UML Modeller
Group:          Development/Tools/Other
Provides:       kde4-umbrello = 4.3.0
Obsoletes:      kde4-umbrello < 4.3.0
%kde4_runtime_requires

%description -n umbrello
Umbrello is a UML modelling application.

%files -n umbrello -f filelists/umbrello
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n kpartloader
License:        GPLv2 ; GPLv2+
Summary:        KDE SDK Package
Group:          System/GUI/KDE
Provides:       kde4-kpartloader = 4.3.0
Obsoletes:      kde4-kpartloader < 4.3.0
%kde4_runtime_requires

%description -n kpartloader
This package suggests the packages, built from the kdesdk module.

%files -n kpartloader -f filelists/kpartloader
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n kompare
License:        GPLv2+
Summary:        File Comparator
Group:          Development/Tools/Other
Provides:       kde4-kompare = 4.3.0
Obsoletes:      kde4-kompare < 4.3.0
%kde4_runtime_requires

%description -n kompare
Tool to visualize changes between two versions of a file.

%post   -n kompare -p /sbin/ldconfig

%postun -n kompare -p /sbin/ldconfig

%files -n kompare -f filelists/kompare
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n kompare-devel
License:        GPLv2+
Summary:        Hex Editor
Group:          Development/Tools/Other
Requires:       kompare = %{version}

%description -n kompare-devel
Tool to visualize changes between two versions of a file.

%files -n kompare-devel -f filelists/kompare.devel
%defattr(-,root,root)
%dir %{_includedir}/kompare

%package strigi
License:        GPLv2+
Summary:        Diff and translation indexing for strigi
Group:          Development/Tools/Other
Provides:       kdedsk4 = %{version}
Obsoletes:      kdedsk4 < %{version}
%kde4_runtime_requires

%description strigi
This package provides plugins for strigi that allow it to index
translation files and diff files.

%files strigi
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%_kde4_libdir/strigi/strigila_diff.so
%_kde4_libdir/strigi/strigila_po.so
%_kde4_libdir/strigi/strigita_ts.so
%{_datadir}/strigi/fieldproperties/strigi_translation.fieldproperties

%package -n kprofilemethod
License:        GPLv2+
Summary:        Macros for profiling KDE applications
Group:          Development/Tools/Other
BuildArch:      noarch

%description -n kprofilemethod
These macros help profiling using QTime.
They allow you to sum up the time taken by a given bit of code
in a method called several times.
This way one can find out which low-level method used by a high-level
method is taking most of its time. 

%files -n kprofilemethod
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%{_includedir}/kprofilemethod.h

%changelog
openSUSE Build Service is sponsored by