File kdevelop4-plugins.spec of Package kdevelop4-plugins
#
# spec file for package kdevelop4-plugins
#
# 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: kdevelop4-plugins
Version: 1.2.3
Release: 2
License: GPLv2+
Summary: Additional plugins for Kdevelop4 Integrated Development Environment
Url: http://www.kdevelop.org
Group: Development/Tools/IDE
Source0: kdevelop-php-%{version}.tar.bz2
Source1: kdevelop-php-docs-%{version}.tar.bz2
Patch1: add-php-docs.diff
BuildRequires: kdebase4-workspace-devel
BuildRequires: kdevelop4-devel
BuildRequires: kdevelop4-pg-qt-devel
BuildRequires: libkde4-devel
BuildRequires: libkdevplatform-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
Additional plugins for Kdevelop4 Integrated Development Environment
* PHP Language support, documentation, debugging (xdebug)
%prep
%setup -q -n kdevelop-php-%{version} -a 1
%patch1 -p0
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
%kde_post_install
cd ..
%find_lang kdevphp kdevphp.lang
%find_lang kdevphpdocs kdevphpdocs.lang
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%package php
License: GPLv2+
Summary: PHP Plugin for Kdevelop4 Integrated Development Environment
Group: Development/Tools/IDE
Requires: kdevelop4
%kde4_runtime_requires
%description php
PHP Plugin for Kdevelop4 Integrated Development Environment
This plugin enables support for the following features for developing
web applications in PHP using Kdevelop4.
* PHP built-in functions, classes, constants, superglobals
* user-defined functions, classes, constants, superglobals, variables, etc.
* proper code completion for objects which respects access modifiers (private, public, protected) and differentiates between static/non-static members and methods
* code completion for overridable and implementable functions inside classes
* hints in the argument list of function- and method class
* sane code completion after keywords such as "extends, implements, catch(), new, throw" and some more I think
%package php-doc
License: GPLv2+
Summary: PHP Documentation for Kdevelop4 Integrated Development Environment
Group: Development/Tools/IDE
Requires: kdevelop4-plugins-php = %{version}
%kde4_runtime_requires
%description php-doc
PHP Plugin documentation for Kdevelop4 Integrated Development Environment
%if 0
%package upload
License: GPLv2+
Summary: Upload Plugin for Kdevelop4 Integrated Development Environment
Group: Development/Tools/IDE
Requires: kdevelop4
%kde4_runtime_requires
%description upload
Upload Plugin for Kdevelop4 Integrated Development Environment
%endif
%files php -f kdevphp.lang
%defattr(-,root,root)
%{_libdir}/kde4/kdevphplanguagesupport.so
%{_libdir}/libkdev4phpcompletion.so
%{_libdir}/libkdev4phpduchain.so
%{_libdir}/libkdev4phpparser.so
%_kde_share_dir/apps/kdevappwizard/templates/simple_phpapp.tar.bz2
%_kde_share_dir/services/kdevphpsupport.desktop
%_kde4_appsdir/kdevphpsupport/
%files php-doc -f kdevphpdocs.lang
%defattr(-,root,root)
%{_libdir}/kde4/kdevphpdocs.so
%{_libdir}/kde4/kdevphpdocs_config.so
%_kde_share_dir/config.kcfg/phpdocssettings.kcfg
%_kde_share_dir/services/kdevphpdocs.desktop
%_kde_share_dir/services/kdevphpdocs_config.desktop
%if 0
%files upload
%defattr(-,root,root)
%dir %_kde_share_dir/apps/kdevupload
%{_libdir}/kde4/kcm_kdev_upload.so
%{_libdir}/kde4/libkdevupload.so
%_kde_share_dir/apps/kdevupload/kdevupload.rc
%_kde_share_dir/services/kcm_kdev_upload.desktop
%_kde_share_dir/services/kdevupload.desktop
%endif
%changelog