# # spec file for package okteta # # Copyright (c) 2017 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: 17.08.3 Release: 0 %define kf5_version 5.26.0 # Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA) %{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} Summary: Hex Editor License: GPL-2.0 and GFDL-1.2 Group: Development/Tools/Other Url: http://www.kde.org/ Source0: okteta-%{version}.tar.xz BuildRequires: attica-qt5-devel BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: fdupes BuildRequires: kcmutils-devel BuildRequires: kcrash-devel BuildRequires: kdbusaddons-devel BuildRequires: kdoctools-devel BuildRequires: kf5-filesystem BuildRequires: kiconthemes-devel BuildRequires: knewstuff-devel BuildRequires: kparts-devel BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: cmake(Qca-qt5) BuildRequires: pkgconfig(Qt5Designer) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5ScriptTools) Requires(post): shared-mime-info Requires(postun): shared-mime-info Obsoletes: %{name}5 < %{version} Obsoletes: okteta5 < %{version} Provides: %{name}5 = %{version} %if %{with lang} Recommends: %{name}-lang %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %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: okteta5-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 %defattr(-,root,root) %doc COPYING* %config %{_kf5_configdir}/okteta-structures.knsrc %dir %{_kf5_htmldir} %dir %{_kf5_htmldir}/en %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_kxmlguidir}/ %{_kf5_libdir}/libkasten*.so.* %{_kf5_libdir}/libokteta*.so.* %{_kf5_plugindir}/ %{_kf5_sharedir}/mime/packages/okteta.xml %{_kf5_sharedir}/okteta*/ %files devel %defattr(-,root,root) %doc COPYING* %{_kf5_cmakedir}/ %{_kf5_libdir}/libkasten*.so %{_kf5_libdir}/libokteta*.so %{_kf5_prefix}/include/*/ %if %{with lang} %files lang -f %{name}.lang %doc COPYING* %endif %changelog