# # spec file for package okteta # # Copyright (c) 2018 SUSE LINUX 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/ # %bcond_without lang Name: okteta Version: 0.25.4 Release: 0 Summary: Hex Editor License: GPL-2.0-only AND GFDL-1.2-only Group: Development/Tools/Other URL: https://www.kde.org/applications/utilities/okteta Source0: https://download.kde.org/stable/okteta/%{version}/src/okteta-%{version}.tar.xz BuildRequires: cmake BuildRequires: extra-cmake-modules >= 5.38.0 BuildRequires: kf5-filesystem BuildRequires: update-desktop-files BuildRequires: cmake(KF5Bookmarks) BuildRequires: cmake(KF5Codecs) BuildRequires: cmake(KF5Completion) BuildRequires: cmake(KF5ConfigWidgets) BuildRequires: cmake(KF5Crash) BuildRequires: cmake(KF5DBusAddons) BuildRequires: cmake(KF5DocTools) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5IconThemes) BuildRequires: cmake(KF5KCMUtils) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5NewStuff) BuildRequires: cmake(KF5Parts) BuildRequires: cmake(KF5Service) BuildRequires: cmake(KF5WidgetsAddons) BuildRequires: cmake(KF5XmlGui) BuildRequires: cmake(Qca-qt5) BuildRequires: cmake(Qt5Core) >= 5.9.0 BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5PrintSupport) BuildRequires: cmake(Qt5Qml) BuildRequires: cmake(Qt5Script) BuildRequires: cmake(Qt5ScriptTools) BuildRequires: cmake(Qt5UiPlugin) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5Xml) Requires(post): shared-mime-info Requires(postun): shared-mime-info Recommends: %{name}-lang Obsoletes: %{name}5 < %{version} Provides: %{name}5 = %{version} %description Okteta is a hex editor for the raw data of files. %package devel Summary: Development files for the Okteta Hex Editor Group: Development/Tools/Other Requires: %{name} = %{version} Obsoletes: %{name}5-devel %description devel Contains the development files for the Okteta Hex Editor %if %{with lang} %lang_package %endif %prep %setup -q %build %cmake_kf5 -d build %make_jobs %install %kf5_makeinstall -C build %if %{with lang} %find_lang %{name} --with-man --all-name %{kf5_find_htmldocs} %endif %suse_update_desktop_file org.kde.okteta Utility Editor %post /sbin/ldconfig %mime_database_post %postun /sbin/ldconfig %mime_database_postun %files %license COPYING* %config %{_kf5_configdir}/okteta-structures.knsrc %doc %lang(en) %{_kf5_htmldir}/en/okteta/ %{_kf5_applicationsdir}/org.kde.okteta.desktop %{_kf5_appstreamdir}/ %{_kf5_bindir}/okteta %{_kf5_bindir}/struct2osd %{_kf5_configkcfgdir}/ %{_kf5_iconsdir}/hicolor/*/*/*.* %{_kf5_libdir}/libkasten*.so.* %{_kf5_libdir}/libokteta*.so.* %{_kf5_plugindir}/ %{_kf5_sharedir}/mime/packages/okteta.xml %{_kf5_sharedir}/okteta*/ %files devel %license COPYING* %{_kf5_cmakedir}/ %{_kf5_libdir}/libkasten*.so %{_kf5_libdir}/libokteta*.so %{_kf5_prefix}/include/*/ %if %{with lang} %files lang -f %{name}.lang %license COPYING* %endif %changelog