2011-07-26 12:16:57 +02:00
|
|
|
#
|
2011-07-26 12:17:08 +02:00
|
|
|
# spec file for package kate
|
2011-07-26 12:16:57 +02:00
|
|
|
#
|
2014-01-27 11:14:25 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-07-26 12:16:57 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2012-01-27 15:18:04 +01:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
Name: kate
|
2014-11-19 20:25:00 +01:00
|
|
|
Version: 4.14.3
|
2011-12-08 11:49:13 +01:00
|
|
|
Release: 0
|
2011-07-26 12:16:57 +02:00
|
|
|
Summary: Advanced Text Editor
|
2011-12-08 11:49:13 +01:00
|
|
|
License: GPL-2.0+
|
2011-07-26 12:16:57 +02:00
|
|
|
Group: Productivity/Editors/Other
|
2011-12-08 11:49:13 +01:00
|
|
|
Url: http://www.kde.org/
|
2012-04-12 09:28:38 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2012-12-21 09:15:28 +01:00
|
|
|
BuildRequires: libkactivities-devel
|
2012-09-11 07:55:16 +02:00
|
|
|
BuildRequires: libkde4-devel >= %version
|
2012-12-07 14:17:06 +01:00
|
|
|
BuildRequires: libqjson-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-kde4-devel
|
|
|
|
BuildRequires: python-qt4-devel
|
|
|
|
BuildRequires: python-sip-devel
|
2012-04-12 09:28:38 +02:00
|
|
|
BuildRequires: xz
|
2011-07-26 12:16:57 +02:00
|
|
|
Requires: libktexteditor = %{version}
|
2014-08-25 11:02:02 +02:00
|
|
|
Recommends: %{name}-python-plugins = %{version}
|
2011-07-26 12:16:57 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%kde4_runtime_requires
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%description
|
|
|
|
Kate is an advanced text editor for KDE.
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%prep
|
2011-08-24 15:13:31 +02:00
|
|
|
%setup -q
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%build
|
|
|
|
%ifarch ppc64
|
|
|
|
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
|
|
|
%endif
|
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make_jobs
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%install
|
|
|
|
cd build
|
2012-12-07 14:17:06 +01:00
|
|
|
%kde4_makeinstall
|
2014-07-16 16:16:54 +02:00
|
|
|
%create_subdir_filelist -d addons/kate -f kate -v devel
|
|
|
|
%create_subdir_filelist -d addons/plasma -f kate -v devel
|
|
|
|
%create_subdir_filelist -d addons/ktexteditor -f ktexteditor -v devel
|
|
|
|
%create_subdir_filelist -d kate -v devel
|
|
|
|
%create_subdir_filelist -d kwrite -v devel
|
|
|
|
%create_subdir_filelist -d part -f ktexteditor -v devel
|
|
|
|
%create_subdir_filelist -d doc/kate -f kate -v devel
|
|
|
|
%create_subdir_filelist -d doc/kwrite -f kwrite-doc -v devel
|
|
|
|
cd ..
|
2011-08-24 15:13:31 +02:00
|
|
|
%suse_update_desktop_file kate TextEditor
|
|
|
|
%suse_update_desktop_file kwrite TextEditor
|
2011-07-26 12:16:57 +02:00
|
|
|
%kde_post_install
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf filelists
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Advanced Text Editor Development Headers
|
2011-08-08 15:11:14 +02:00
|
|
|
Group: Development/Libraries/KDE
|
2011-07-26 12:16:57 +02:00
|
|
|
Requires: kate = %{version}
|
|
|
|
Requires: libkde4-devel
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%description devel
|
|
|
|
Files needed for development of Kate plugins.
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2014-07-16 16:16:54 +02:00
|
|
|
%files devel -f filelists/devel
|
2011-07-26 12:16:57 +02:00
|
|
|
%defattr(-,root,root)
|
2014-07-16 16:16:54 +02:00
|
|
|
%dir %{_kde4_includedir}/kate/
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%package -n libktexteditor
|
|
|
|
Summary: Advanced Text Editor library
|
|
|
|
Group: Productivity/Editors/Other
|
2013-03-24 21:56:29 +01:00
|
|
|
# With the sr#160617, go-kate package is no longer shipped,
|
|
|
|
# so adding specific version, if the package will return
|
|
|
|
Provides: go-kate = 1.0.3
|
|
|
|
Obsoletes: go-kate <= 1.0.3
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%description -n libktexteditor
|
|
|
|
The libraries shared by kwrite and kate editors.
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2014-08-25 11:02:02 +02:00
|
|
|
%package python-plugins
|
|
|
|
Summary: Additional python plugins for %{name}
|
|
|
|
Group: Productivity/Editors/Other
|
2014-09-08 21:28:39 +02:00
|
|
|
Supplements: packageand(IPython:kate)
|
2014-08-25 11:02:02 +02:00
|
|
|
Recommends: python-jedi
|
|
|
|
Recommends: python-Jinja2
|
|
|
|
Recommends: python-ply
|
|
|
|
Recommends: python-pyplete
|
|
|
|
Recommends: python-simplejson
|
|
|
|
|
|
|
|
%description python-plugins
|
|
|
|
This package pulls in optional dependencies that provide
|
|
|
|
additional functionality for kate python plugins.
|
|
|
|
|
|
|
|
You can still use python plugins with kate without these
|
|
|
|
dependencies, but some plugins will not work or will
|
|
|
|
have limited functionality.
|
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%post -n libktexteditor -p /sbin/ldconfig
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%postun -n libktexteditor -p /sbin/ldconfig
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2014-07-16 16:16:54 +02:00
|
|
|
%files -n libktexteditor -f filelists/ktexteditor
|
2011-07-26 12:16:57 +02:00
|
|
|
%defattr(-,root,root)
|
2014-07-16 16:16:54 +02:00
|
|
|
%dir %{_kde4_appsdir}/katepart/
|
|
|
|
%dir %{_kde4_appsdir}/katepart/*
|
|
|
|
%dir %{_kde4_appsdir}/katepart/*/*
|
|
|
|
%dir %{_kde4_appsdir}/katepart/*/*/*
|
|
|
|
%dir %{_kde4_appsdir}/katepart/*/*/*/*
|
|
|
|
%dir %{_kde4_appsdir}/ktexteditor_*
|
|
|
|
|
|
|
|
%files -f filelists/kate
|
2011-07-26 12:16:57 +02:00
|
|
|
%defattr(-,root,root)
|
2014-07-16 16:16:54 +02:00
|
|
|
%dir %{_kde4_appsdir}/kate/
|
|
|
|
%dir %{_kde4_appsdir}/kate/*
|
|
|
|
%dir %{_kde4_appsdir}/kate/*/*
|
|
|
|
%dir %{_kde4_appsdir}/kate/*/*/*
|
|
|
|
%dir %{_kde4_appsdir}/kate/*/*/*/*
|
|
|
|
%dir %{_kde4_appsdir}/katexmltools/
|
2014-08-25 11:02:02 +02:00
|
|
|
%exclude %{_kde4_libdir}/python*/site-packages/PyKate4
|
|
|
|
%exclude %{_kde4_appsdir}/kate/plugins/pate
|
|
|
|
%exclude %{_kde4_appsdir}/kate/pate
|
|
|
|
%exclude %{_kde4_appsdir}/kate/plugins/katepateplugin
|
|
|
|
%exclude %{_kde4_modulesdir}/katepateplugin.so
|
|
|
|
%exclude %{_kde4_servicetypesdir}/katepythonplugin.desktop
|
|
|
|
%exclude %{_kde4_servicesdir}/pate.desktop
|
|
|
|
%exclude %{_kde4_servicesdir}/katepate_*.desktop
|
|
|
|
|
|
|
|
%files python-plugins
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc addons/kate/pate/README.txt
|
|
|
|
%{_kde4_libdir}/python*/site-packages/PyKate4/
|
|
|
|
%{_kde4_appsdir}/kate/plugins/pate/
|
|
|
|
%{_kde4_appsdir}/kate/pate/
|
|
|
|
%{_kde4_appsdir}/kate/plugins/katepateplugin/
|
|
|
|
%{_kde4_modulesdir}/katepateplugin.so
|
|
|
|
%{_kde4_servicetypesdir}/katepythonplugin.desktop
|
|
|
|
%{_kde4_servicesdir}/pate.desktop
|
|
|
|
%{_kde4_servicesdir}/katepate_*.desktop
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%package -n kwrite
|
|
|
|
Summary: KDE Text Editor
|
|
|
|
Group: Productivity/Editors/Other
|
|
|
|
Requires: libktexteditor = %{version}
|
|
|
|
Provides: kde4-kwrite = 4.3.0
|
2012-03-12 20:13:48 +01:00
|
|
|
Provides: kdebase3:/opt/kde3/bin/kwrite
|
2011-07-26 12:16:57 +02:00
|
|
|
Obsoletes: kde4-kwrite < 4.3.0
|
|
|
|
%kde4_runtime_requires
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%description -n kwrite
|
|
|
|
KWrite is the default text editor of the K desktop environment.
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2011-08-24 15:13:31 +02:00
|
|
|
%package -n kwrite-doc
|
|
|
|
Summary: KDE Text Editor: Documentation
|
|
|
|
Group: Productivity/Editors/Other
|
|
|
|
Requires: kwrite = %{version}
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-08-24 15:13:31 +02:00
|
|
|
%description -n kwrite-doc
|
|
|
|
KWrite is the default text editor of the K desktop environment.
|
2011-07-26 12:16:57 +02:00
|
|
|
|
2011-08-24 15:13:31 +02:00
|
|
|
This package contains the documentation for KWrite
|
2012-12-07 14:17:06 +01:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%post -n kwrite -p /sbin/ldconfig
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%postun -n kwrite -p /sbin/ldconfig
|
|
|
|
|
2014-07-16 16:16:54 +02:00
|
|
|
%files -n kwrite -f filelists/kwrite
|
2011-07-26 12:16:57 +02:00
|
|
|
%defattr(-,root,root)
|
2014-07-16 16:16:54 +02:00
|
|
|
%exclude %{_kde4_htmldir}/en/kwrite/
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2014-07-16 16:16:54 +02:00
|
|
|
%files -n kwrite-doc -f filelists/kwrite-doc
|
2011-08-24 15:13:31 +02:00
|
|
|
%defattr(-,root,root,-)
|
2014-07-16 16:16:54 +02:00
|
|
|
%dir %{_kde4_htmldir}/en/kwrite/
|
2011-08-24 15:13:44 +02:00
|
|
|
|
2011-07-26 12:16:57 +02:00
|
|
|
%changelog
|