Group :: Editors
RPM: kde5-kate
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define rname kate
%define sover 5
%define libkateprivate libkateprivate%sover
Name: kde5-%rname
Version: 23.04.3
Release: alt1
%K5init altplace no_appdata
Group: Editors
Summary: Advanced text editor
Url: http://www.kde.org
License: GPL-3.0-or-later
Requires: %name-common
#Requires: %name-core
Requires: kf5-syntax-highlighting
Source: %rname-%version.tar
Patch1: alt-soname.patch
# Automatically added by buildreq on Fri Aug 21 2015 (-bi)
# optimized out: cmake cmake-modules desktop-file-utils docbook-dtds docbook-style-xsl elfutils kf5-attica-devel kf5-kdoctools-devel libEGL-devel libGL-devel libdbusmenu-qt52 libgpg-error libjson-c libqt5-core libqt5-dbus libqt5-gui libqt5-network libqt5-printsupport libqt5-qml libqt5-quick libqt5-script libqt5-sql libqt5-svg libqt5-widgets libqt5-x11extras libqt5-xml libstdc++-devel libxcbutil-keysyms pkg-config python-base python3 python3-base qt5-base-devel ruby ruby-stdlibs xml-common xml-utils
#BuildRequires: extra-cmake-modules gcc-c++ kf5-kactivities-devel kf5-kauth-devel kf5-kbookmarks-devel kf5-kcodecs-devel kf5-kcompletion-devel kf5-kconfig-devel kf5-kconfigwidgets-devel kf5-kcoreaddons-devel kf5-kcrash-devel kf5-kdbusaddons-devel kf5-kdelibs4support kf5-kdoctools kf5-kdoctools-devel kf5-kguiaddons-devel kf5-ki18n-devel kf5-kiconthemes-devel kf5-kinit-devel kf5-kio-devel kf5-kitemmodels-devel kf5-kitemviews-devel kf5-kjobwidgets-devel kf5-knewstuff-devel kf5-knotifications-devel kf5-kpackage-devel kf5-kparts-devel kf5-kservice-devel kf5-ktexteditor-devel kf5-ktextwidgets-devel kf5-kwallet-devel kf5-kwidgetsaddons-devel kf5-kwindowsystem-devel kf5-kxmlgui-devel kf5-plasma-framework-devel kf5-solid-devel kf5-sonnet-devel kf5-threadweaver-devel libgit2-devel python-module-google qt5-script-devel rpm-build-python3 rpm-build-ruby
BuildRequires(pre): rpm-build-kf5 rpm-build-ubt
BuildRequires: extra-cmake-modules qt5-base-devel qt5-script-devel qt5-x11extras-devel
BuildRequires: libgit2-devel
BuildRequires: kf5-kactivities-devel kf5-kauth-devel kf5-kbookmarks-devel kf5-kcodecs-devel kf5-kcompletion-devel
BuildRequires: kf5-kconfig-devel kf5-kconfigwidgets-devel kf5-kcoreaddons-devel kf5-kcrash-devel kf5-kdbusaddons-devel
BuildRequires: kf5-kdelibs4support kf5-kdoctools kf5-kdoctools-devel
BuildRequires: kf5-kguiaddons-devel kf5-ki18n-devel kf5-kiconthemes-devel kf5-kinit-devel kf5-kio-devel kf5-kitemmodels-devel
BuildRequires: kf5-kitemviews-devel kf5-kjobwidgets-devel kf5-knewstuff-devel kf5-knotifications-devel kf5-kpackage-devel
BuildRequires: kf5-kparts-devel kf5-kservice-devel kf5-ktexteditor-devel kf5-ktextwidgets-devel kf5-kwallet-devel
BuildRequires: kf5-kwidgetsaddons-devel kf5-kwindowsystem-devel kf5-kxmlgui-devel kf5-plasma-framework-devel
BuildRequires: kf5-solid-devel kf5-sonnet-devel kf5-threadweaver-devel kf5-syntax-highlighting-devel
%description
A fast and advanced text editor with nice plugins
%package common
Summary: %name common package
Group: System/Configuration/Other
BuildArch: noarch
Requires: kf5-filesystem
%description common
%name common package
%package core
Summary: Core files needed for %rname
Group: Graphical desktop/KDE
Requires: %name-common
%description core
Core files needed for %rname
%package devel
Group: Development/KDE and QT
Summary: Development files for %name
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package -n kde5-kwrite
Group: Editors
Summary: Text editor for KDE
Requires: %name-common
#Requires: %name-core
%description -n kde5-kwrite
Text editor for KDE
%package -n %libkateprivate
Group: System/Libraries
Summary: %name library
Requires: %name-common
%description -n %libkateprivate
%name library
%prep
%setup -n %rname-%version
%patch1 -p1
%build
%K5build
%install
%K5install
%K5install_move data kateproject katexmltools kconf_update
%find_lang %name --with-kde --all-name
kde5_add_text_mimes() {
desktop-file-install --mode=0755 --dir %buildroot/%_K5xdgapp \
--add-mime-type=text/css \
--add-mime-type=text/csv \
--add-mime-type=text/english \
--add-mime-type=text/plain \
--add-mime-type=text/x-adasrc \
--add-mime-type=text/x-bibtex \
--add-mime-type=text/x-c++ \
--add-mime-type=text/x-chdr \
--add-mime-type=text/x-c++hdr \
--add-mime-type=text/x-csharp \
--add-mime-type=text/x-csrc \
--add-mime-type=text/x-c++src \
--add-mime-type=text/x-dsrc \
--add-mime-type=text/x-fortran \
--add-mime-type=text/x-gle \
--add-mime-type=text/x-java \
--add-mime-type=text/x-javascript \
--add-mime-type=text/x-log \
--add-mime-type=text/x-makefile \
--add-mime-type=text/x-objcsrc \
--add-mime-type=text/x-pascal \
--add-mime-type=text/x-patch \
--add-mime-type=text/x-perl \
--add-mime-type=text/x-php \
--add-mime-type=text/x-python \
--add-mime-type=text/x-sh \
--add-mime-type=text/x-sql \
--add-mime-type=text/x-tcl \
--add-mime-type=text/x-tex \
--add-mime-type=text/x-rpm-spec \
$1
}
kde5_add_text_mimes %buildroot/%_K5xdgapp/org.kde.kate.desktop
kde5_add_text_mimes %buildroot/%_K5xdgapp/org.kde.kwrite.desktop
%files common -f %name.lang
%doc LICENSES/*
%_K5icon/hicolor/*/apps/kate.*
#%files core
%files
%_K5bin/kate
%_K5plug/ktexteditor/
%_K5xdgapp/org.kde.kate.desktop
%_K5data/kateproject/
%_K5data/katexmltools/
%_K5conf_up/*kate*
%files -n kde5-kwrite
%_K5bin/kwrite
%_K5xdgapp/org.kde.kwrite.desktop
%_K5icon/hicolor/*/apps/kwrite.*
%files -n %libkateprivate
%_K5lib/libkateprivate.so.%sover
%_K5lib/libkateprivate.so.*
#%files devel
#%_K5inc/kate/
#%_K5inc/kate_*.h
#%_K5link/lib*.so
%changelog
…
Full changelog you can see here
%define sover 5
%define libkateprivate libkateprivate%sover
Name: kde5-%rname
Version: 23.04.3
Release: alt1
%K5init altplace no_appdata
Group: Editors
Summary: Advanced text editor
Url: http://www.kde.org
License: GPL-3.0-or-later
Requires: %name-common
#Requires: %name-core
Requires: kf5-syntax-highlighting
Source: %rname-%version.tar
Patch1: alt-soname.patch
# Automatically added by buildreq on Fri Aug 21 2015 (-bi)
# optimized out: cmake cmake-modules desktop-file-utils docbook-dtds docbook-style-xsl elfutils kf5-attica-devel kf5-kdoctools-devel libEGL-devel libGL-devel libdbusmenu-qt52 libgpg-error libjson-c libqt5-core libqt5-dbus libqt5-gui libqt5-network libqt5-printsupport libqt5-qml libqt5-quick libqt5-script libqt5-sql libqt5-svg libqt5-widgets libqt5-x11extras libqt5-xml libstdc++-devel libxcbutil-keysyms pkg-config python-base python3 python3-base qt5-base-devel ruby ruby-stdlibs xml-common xml-utils
#BuildRequires: extra-cmake-modules gcc-c++ kf5-kactivities-devel kf5-kauth-devel kf5-kbookmarks-devel kf5-kcodecs-devel kf5-kcompletion-devel kf5-kconfig-devel kf5-kconfigwidgets-devel kf5-kcoreaddons-devel kf5-kcrash-devel kf5-kdbusaddons-devel kf5-kdelibs4support kf5-kdoctools kf5-kdoctools-devel kf5-kguiaddons-devel kf5-ki18n-devel kf5-kiconthemes-devel kf5-kinit-devel kf5-kio-devel kf5-kitemmodels-devel kf5-kitemviews-devel kf5-kjobwidgets-devel kf5-knewstuff-devel kf5-knotifications-devel kf5-kpackage-devel kf5-kparts-devel kf5-kservice-devel kf5-ktexteditor-devel kf5-ktextwidgets-devel kf5-kwallet-devel kf5-kwidgetsaddons-devel kf5-kwindowsystem-devel kf5-kxmlgui-devel kf5-plasma-framework-devel kf5-solid-devel kf5-sonnet-devel kf5-threadweaver-devel libgit2-devel python-module-google qt5-script-devel rpm-build-python3 rpm-build-ruby
BuildRequires(pre): rpm-build-kf5 rpm-build-ubt
BuildRequires: extra-cmake-modules qt5-base-devel qt5-script-devel qt5-x11extras-devel
BuildRequires: libgit2-devel
BuildRequires: kf5-kactivities-devel kf5-kauth-devel kf5-kbookmarks-devel kf5-kcodecs-devel kf5-kcompletion-devel
BuildRequires: kf5-kconfig-devel kf5-kconfigwidgets-devel kf5-kcoreaddons-devel kf5-kcrash-devel kf5-kdbusaddons-devel
BuildRequires: kf5-kdelibs4support kf5-kdoctools kf5-kdoctools-devel
BuildRequires: kf5-kguiaddons-devel kf5-ki18n-devel kf5-kiconthemes-devel kf5-kinit-devel kf5-kio-devel kf5-kitemmodels-devel
BuildRequires: kf5-kitemviews-devel kf5-kjobwidgets-devel kf5-knewstuff-devel kf5-knotifications-devel kf5-kpackage-devel
BuildRequires: kf5-kparts-devel kf5-kservice-devel kf5-ktexteditor-devel kf5-ktextwidgets-devel kf5-kwallet-devel
BuildRequires: kf5-kwidgetsaddons-devel kf5-kwindowsystem-devel kf5-kxmlgui-devel kf5-plasma-framework-devel
BuildRequires: kf5-solid-devel kf5-sonnet-devel kf5-threadweaver-devel kf5-syntax-highlighting-devel
%description
A fast and advanced text editor with nice plugins
%package common
Summary: %name common package
Group: System/Configuration/Other
BuildArch: noarch
Requires: kf5-filesystem
%description common
%name common package
%package core
Summary: Core files needed for %rname
Group: Graphical desktop/KDE
Requires: %name-common
%description core
Core files needed for %rname
%package devel
Group: Development/KDE and QT
Summary: Development files for %name
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package -n kde5-kwrite
Group: Editors
Summary: Text editor for KDE
Requires: %name-common
#Requires: %name-core
%description -n kde5-kwrite
Text editor for KDE
%package -n %libkateprivate
Group: System/Libraries
Summary: %name library
Requires: %name-common
%description -n %libkateprivate
%name library
%prep
%setup -n %rname-%version
%patch1 -p1
%build
%K5build
%install
%K5install
%K5install_move data kateproject katexmltools kconf_update
%find_lang %name --with-kde --all-name
kde5_add_text_mimes() {
desktop-file-install --mode=0755 --dir %buildroot/%_K5xdgapp \
--add-mime-type=text/css \
--add-mime-type=text/csv \
--add-mime-type=text/english \
--add-mime-type=text/plain \
--add-mime-type=text/x-adasrc \
--add-mime-type=text/x-bibtex \
--add-mime-type=text/x-c++ \
--add-mime-type=text/x-chdr \
--add-mime-type=text/x-c++hdr \
--add-mime-type=text/x-csharp \
--add-mime-type=text/x-csrc \
--add-mime-type=text/x-c++src \
--add-mime-type=text/x-dsrc \
--add-mime-type=text/x-fortran \
--add-mime-type=text/x-gle \
--add-mime-type=text/x-java \
--add-mime-type=text/x-javascript \
--add-mime-type=text/x-log \
--add-mime-type=text/x-makefile \
--add-mime-type=text/x-objcsrc \
--add-mime-type=text/x-pascal \
--add-mime-type=text/x-patch \
--add-mime-type=text/x-perl \
--add-mime-type=text/x-php \
--add-mime-type=text/x-python \
--add-mime-type=text/x-sh \
--add-mime-type=text/x-sql \
--add-mime-type=text/x-tcl \
--add-mime-type=text/x-tex \
--add-mime-type=text/x-rpm-spec \
$1
}
kde5_add_text_mimes %buildroot/%_K5xdgapp/org.kde.kate.desktop
kde5_add_text_mimes %buildroot/%_K5xdgapp/org.kde.kwrite.desktop
%files common -f %name.lang
%doc LICENSES/*
%_K5icon/hicolor/*/apps/kate.*
#%files core
%files
%_K5bin/kate
%_K5plug/ktexteditor/
%_K5xdgapp/org.kde.kate.desktop
%_K5data/kateproject/
%_K5data/katexmltools/
%_K5conf_up/*kate*
%files -n kde5-kwrite
%_K5bin/kwrite
%_K5xdgapp/org.kde.kwrite.desktop
%_K5icon/hicolor/*/apps/kwrite.*
%files -n %libkateprivate
%_K5lib/libkateprivate.so.%sover
%_K5lib/libkateprivate.so.*
#%files devel
#%_K5inc/kate/
#%_K5inc/kate_*.h
#%_K5link/lib*.so
%changelog
…
Full changelog you can see here