File kdevplatform.spec of Package kdevplatform.openSUSE_13.1_Update

#
# spec file for package kdevplatform
#
# Copyright (c) 2013 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:           kdevplatform
Version:        1.5.2
Release:        0
%define kdevelop_version 4.5.2
%define libkdev_major 7
Summary:        Base Package for Integrated Development Environments
License:        GPL-2.0+
Group:          Development/Tools/IDE
Url:            http://www.kdevelop.org
Source0:        http://download.kde.org/stable/kdevelop/%{kdevelop_version}/src/%{name}-%{version}.tar.xz
BuildRequires:  boost-devel
BuildRequires:  commoncpp2-devel
BuildRequires:  db-devel
BuildRequires:  fdupes
BuildRequires:  grantlee-devel
BuildRequires:  libkde4-devel >= 4.7
BuildRequires:  libqjson-devel
BuildRequires:  subversion-devel
BuildRequires:  xz
#BuildRequires:  kompare - currently disabled upstream, see toplevel CMakeLists.txt
Requires:       %{name}-lang = %{version}
Requires:       libkdevplatform%{libkdev_major} = %{version}
Provides:       kdevplatform4 = 4.0.71
Obsoletes:      kdevplatform4 < 4.0.71
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This package contains the common plugins for integrated developments
environment based on the KDevelop framework.

%lang_package
%prep
%setup -q
echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt
echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %make_install
  %kde_post_install
  %fdupes %{buildroot}%{_datadir}/locale
  cd ..
  %find_lang kdevappwizard %{name}.lang
  %find_lang kdevclassbrowser %{name}.lang
  %find_lang kdevcontextbrowser %{name}.lang
  %find_lang kdevcvs %{name}.lang
  %find_lang kdevdocumentswitcher %{name}.lang
  %find_lang kdevdocumentview %{name}.lang
  %find_lang kdevexecute %{name}.lang
  %find_lang kdevexecutescript %{name}.lang
  %find_lang kdevfilemanager %{name}.lang
  %find_lang kdevfiletemplates %{name}.lang
  %find_lang kdevgenericprojectmanager %{name}.lang
  %find_lang kdevgrepview %{name}.lang
  %find_lang kdevkonsole %{name}.lang
  %find_lang kdevpatchreview %{name}.lang
  %find_lang kdevplatform %{name}.lang
  %find_lang kdevproblemreporter %{name}.lang
  %find_lang kdevprojectdashboard %{name}.lang
  %find_lang kdevprojectmanagerview %{name}.lang
  %find_lang kdevquickopen %{name}.lang
  %find_lang kdevreviewboard %{name}.lang
  %find_lang kdevsnippet %{name}.lang
  %find_lang kdevstandardoutputview %{name}.lang
  %find_lang kdevsubversion %{name}.lang
  %find_lang kdevswitchtobuddy %{name}.lang
  %find_lang kdevtemplates_config %{name}.lang
  %find_lang kdevtestview %{name}.lang
  %find_lang kdevexternalscript %{name}.lang
  %find_lang kdevgit %{name}.lang
  %find_lang kdevcodeutils %{name}.lang
  %find_lang kdevopenwith %{name}.lang
  %find_lang kdevpastebin %{name}.lang
  %find_lang kdevvcsprojectintegration %{name}.lang

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf %{buildroot}

%files lang -f %{name}.lang

%package -n libkdevplatform-devel
Summary:        Base Package for Integrated Development Environments: Build Environment
Group:          Development/Tools/IDE
Requires:       kdevplatform = %{version}
Requires:       libkdevplatform%{libkdev_major} = %{version}

%description -n libkdevplatform-devel
This package contains the development files for building integrated
developments environments based on the KDevelop framework.

%files -n libkdevplatform-devel
%defattr(-,root,root)
%{_includedir}/kdevplatform
%{_kde4_libdir}/libkdevplatformdebugger.so
%{_kde4_libdir}/libkdevplatformdocumentation.so
%{_kde4_libdir}/libkdevplatformjsontests.so
%{_kde4_libdir}/libkdevplatforminterfaces.so
%{_kde4_libdir}/libkdevplatformlanguage.so
%{_kde4_libdir}/libkdevplatformoutputview.so
%{_kde4_libdir}/libkdevplatformproject.so
%{_kde4_libdir}/libkdevplatformshell.so
%{_kde4_libdir}/libkdevplatformtests.so
%{_kde4_libdir}/libkdevplatformutil.so
%{_kde4_libdir}/libkdevplatformvcs.so
%{_kde4_libdir}/libsublime.so
%{_kde4_libdir}/cmake

%package -n libkdevplatform%{libkdev_major}
Summary:        Libraries for Integrated Development Environments
Group:          Development/Tools/IDE
Requires:       kdevplatform = %{version}
Obsoletes:      libkdevplatform0

%description -n libkdevplatform%{libkdev_major}
This package contains the libraries for integrated development
environments based on the KDevelop framework.

%post -n libkdevplatform%{libkdev_major} -p /sbin/ldconfig

%postun -n libkdevplatform%{libkdev_major} -p /sbin/ldconfig

%files -n libkdevplatform%{libkdev_major}
%defattr(-,root,root)
%{_kde4_libdir}/libkdevplatformdebugger.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformdocumentation.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformjsontests.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatforminterfaces.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformlanguage.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformoutputview.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformproject.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformshell.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformtests.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformutil.so.%{libkdev_major}*
%{_kde4_libdir}/libkdevplatformvcs.so.%{libkdev_major}*
%{_kde4_libdir}/libsublime.so.%{libkdev_major}*

%files
%defattr(-,root,root)
%dir %{_kde4_appsdir}/kdevsession
%{_kde4_modules}/kcm_kdev_bgsettings.so
%{_kde4_modules}/kcm_kdev_ccsettings.so
%{_kde4_modules}/kcm_kdev_envsettings.so
%{_kde4_modules}/kcm_kdev_genericprojectmanagersettings.so
%{_kde4_modules}/kcm_kdev_pluginsettings.so
%{_kde4_modules}/kcm_kdev_projectsettings.so
%{_kde4_modules}/kcm_kdevsourceformattersettings.so
%{_kde4_modules}/kcm_kdev_uisettings.so
%{_kde4_modules}/kdevappwizard.so
%{_kde4_modules}/kdevclassbrowser.so
%{_kde4_modules}/kdevcodeutils.so
%{_kde4_modules}/kdevcontextbrowser.so
%{_kde4_modules}/kdevcvs.so
%{_kde4_modules}/kdevdocumentswitcher.so
%{_kde4_modules}/kdevdocumentview.so
%{_kde4_modules}/kdevexecute.so
%{_kde4_modules}/kdevexecutescript.so
%{_kde4_modules}/kdevexternalscript.so
%{_kde4_modules}/kdevfilemanager.so
%{_kde4_modules}/kdevfiletemplates.so
%{_kde4_modules}/kdevgenericmanager.so
%{_kde4_modules}/kdevgit.so
%{_kde4_modules}/kdevgrepview.so
%{_kde4_modules}/kdevkonsoleview.so
%{_kde4_modules}/kdevopenwith.so
%{_kde4_modules}/kdevpastebin.so
%{_kde4_modules}/kdevpatchreview.so
%{_kde4_modules}/kdevproblemreporter.so
%{_kde4_modules}/kdevprojectdashboard.so
%{_kde4_modules}/kdevprojectmanagerview.so
%{_kde4_modules}/kdevquickopen.so
%{_kde4_modules}/kdevreviewboard.so
%{_kde4_modules}/kdevsnippet.so
%{_kde4_modules}/kdevstandardoutputview.so
%{_kde4_modules}/kdevsubversion.so
%{_kde4_modules}/kdevvcschangesviewplugin.so
%{_kde4_modules}/kdevswitchtobuddy.so
%{_kde4_modules}/kdevtemplatemanager_config.so
%{_kde4_modules}/kdevtestview.so
%{_kde4_modules}/plasma_kdev_projectfileelement.so
%{_kde4_modulesdir}/imports/
%dir %{_kde4_modulesdir}/plugins/grantlee/
%dir %{_kde4_modulesdir}/plugins/grantlee/0.?/
%{_kde4_modulesdir}/plugins/grantlee/*/kdev_filters.so
%{_kde4_appsdir}/kdevappwizard
%{_kde4_appsdir}/kdevclassbrowser
%{_kde4_appsdir}/kdevcodegen
%{_kde4_appsdir}/kdevcodeutils
%{_kde4_appsdir}/kdevcontextbrowser
%{_kde4_appsdir}/kdevcvs
%{_kde4_appsdir}/kdevdebugger
%{_kde4_appsdir}/kdevdocumentswitcher
%{_kde4_appsdir}/kdevdocumentview
%{_kde4_appsdir}/kdevexternalscript
%{_kde4_appsdir}/kdevfilemanager
%{_kde4_appsdir}/kdevgrepview
%{_kde4_appsdir}/kdevpatchreview
%{_kde4_appsdir}/kdevproblemreporter
%{_kde4_appsdir}/kdevprojectmanagerview
%{_kde4_appsdir}/kdevquickopen
%{_kde4_appsdir}/kdevsnippet
%{_kde4_appsdir}/kdevsourceformatter
%{_kde4_appsdir}/kdevstandardoutputview
%{_kde4_appsdir}/kdevfiletemplates/
%{_kde4_appsdir}/kdevsession/
%{_kde4_appsdir}/kdevtestview/
%dir %{_kde4_appsdir}/plasma/plasmoids/
%{_kde4_appsdir}/plasma/plasmoids/org.kdevelop.branches/
%{_kde4_configdir}/kdevappwizard.knsrc
%{_kde4_configdir}/kdevfiletemplates.knsrc
%{_kde4_servicesdir}/kcm_kdev_bgsettings.desktop
%{_kde4_servicesdir}/kcm_kdev_ccsettings.desktop
%{_kde4_servicesdir}/kcm_kdev_envsettings.desktop
%{_kde4_servicesdir}/kcm_kdev_genericprojectmanagersettings.desktop
%{_kde4_servicesdir}/kcm_kdev_pluginsettings.desktop
%{_kde4_servicesdir}/kcm_kdev_projectsettings.desktop
%{_kde4_servicesdir}/kcm_kdevsourceformattersettings.desktop
%{_kde4_servicesdir}/kcm_kdev_uisettings.desktop
%{_kde4_servicesdir}/kdevappwizard.desktop
%{_kde4_servicesdir}/kdevclassbrowser.desktop
%{_kde4_servicesdir}/kdevcodeutils.desktop
%{_kde4_servicesdir}/kdevcontextbrowser.desktop
%{_kde4_servicesdir}/kdevcvs.desktop
%{_kde4_servicesdir}/kdevdocumentswitcher.desktop
%{_kde4_servicesdir}/kdevdocumentview.desktop
%{_kde4_servicesdir}/kdevelop-dashboard-branches.desktop
%{_kde4_servicesdir}/kdevexecute.desktop
%{_kde4_servicesdir}/kdevexecutescript.desktop
%{_kde4_servicesdir}/kdevexternalscript.desktop
%{_kde4_servicesdir}/kdevfilemanager.desktop
%{_kde4_servicesdir}/kdevfiletemplates.desktop
%{_kde4_servicesdir}/kdevgenericmanager.desktop
%{_kde4_servicesdir}/kdevgit.desktop
%{_kde4_servicesdir}/kdevgrepview.desktop
%{_kde4_servicesdir}/kdevkonsoleview.desktop
%{_kde4_servicesdir}/kdevopenwith.desktop
%{_kde4_servicesdir}/kdevpastebin.desktop
%{_kde4_servicesdir}/kdevpatchreview.desktop
%{_kde4_servicesdir}/kdevproblemreporter.desktop
%{_kde4_servicesdir}/kdevprojectdashboard.desktop
%{_kde4_servicesdir}/kdevprojectmanagerview.desktop
%{_kde4_servicesdir}/kdevquickopen.desktop
%{_kde4_servicesdir}/kdevreviewboard.desktop
%{_kde4_servicesdir}/kdevsnippet.desktop
%{_kde4_servicesdir}/kdevstandardoutputview.desktop
%{_kde4_servicesdir}/kdevswitchtobuddy.desktop
%{_kde4_servicesdir}/kdevsubversion.desktop
%{_kde4_servicesdir}/kdevtemplatemanager_config.desktop
%{_kde4_servicesdir}/kdevtestview.desktop
%{_kde4_servicesdir}/kdevvcschangesview.desktop
%{_kde4_servicesdir}/kdev-dash-projectfileelement.desktop
%{_kde4_servicetypesdir}/kdevelopplugin.desktop
%{_kde4_iconsdir}/hicolor/*/*/*.png
# should be in libexec?
%{_kde4_bindir}/kdev_dbus_socket_transformer
%{_kde4_bindir}/kdev_format_source.sh
%{_kde4_bindir}/kdevplatform_shell_environment.sh

%changelog
openSUSE Build Service is sponsored by