2013-07-08 07:27:43 +02:00
|
|
|
#
|
2013-07-22 17:20:19 +02:00
|
|
|
# spec file for package okteta
|
2013-07-08 07:27:43 +02:00
|
|
|
#
|
2020-02-03 09:06:23 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-07-08 07:27:43 +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.
|
|
|
|
|
2019-03-13 11:27:27 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-08 07:27:43 +02:00
|
|
|
#
|
|
|
|
|
2017-08-28 15:09:08 +02:00
|
|
|
|
2020-02-03 09:06:23 +01:00
|
|
|
# for compatibility with Leap 15.1 which doesn't have this macro yet
|
|
|
|
%{!?_kf5_knsrcfilesdir: %global _kf5_knsrcfilesdir %{_kf5_configdir}}
|
2019-03-13 11:27:27 +01:00
|
|
|
%define Kasten_sover 4
|
|
|
|
%define Okteta_sover 3
|
2017-05-16 14:36:59 +02:00
|
|
|
%bcond_without lang
|
2013-07-08 07:27:43 +02:00
|
|
|
Name: okteta
|
2020-07-29 18:14:48 +02:00
|
|
|
Version: 0.26.4
|
2016-12-17 10:56:47 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Hex Editor
|
2018-06-19 11:59:49 +02:00
|
|
|
License: GPL-2.0-only AND GFDL-1.2-only
|
2016-12-17 10:56:47 +01:00
|
|
|
Group: Development/Tools/Other
|
2018-06-19 11:59:49 +02:00
|
|
|
URL: https://www.kde.org/applications/utilities/okteta
|
|
|
|
Source0: https://download.kde.org/stable/okteta/%{version}/src/okteta-%{version}.tar.xz
|
2015-05-11 19:21:58 +02:00
|
|
|
BuildRequires: cmake
|
2019-03-13 11:27:27 +01:00
|
|
|
BuildRequires: extra-cmake-modules >= 5.48.0
|
2015-05-11 19:21:58 +02:00
|
|
|
BuildRequires: kf5-filesystem
|
|
|
|
BuildRequires: update-desktop-files
|
2018-06-19 11:59:49 +02:00
|
|
|
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)
|
2017-03-31 15:10:11 +02:00
|
|
|
BuildRequires: cmake(Qca-qt5)
|
2018-06-19 11:59:49 +02:00
|
|
|
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)
|
|
|
|
Recommends: %{name}-lang
|
2015-05-11 19:21:58 +02:00
|
|
|
Obsoletes: %{name}5 < %{version}
|
|
|
|
Provides: %{name}5 = %{version}
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%description
|
2017-07-29 09:01:32 +02:00
|
|
|
Okteta is a hex editor for the raw data of files.
|
2013-07-08 07:27:43 +02:00
|
|
|
|
2019-03-13 11:27:27 +01:00
|
|
|
%package data
|
|
|
|
Summary: Hex Editor data files
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
# the files were in the main package before
|
|
|
|
Conflicts: %{name} < 0.26
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description data
|
|
|
|
Data files used by Okteta/libKasten, e.g. structures definitions.
|
|
|
|
|
|
|
|
%package part
|
|
|
|
Summary: Hex Editor KParts plugin
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Recommends: %{name}-part-lang
|
|
|
|
|
|
|
|
%description part
|
|
|
|
Hex editing component for KParts
|
|
|
|
|
|
|
|
%package -n libKasten%{Kasten_sover}
|
|
|
|
Summary: High-level hex editor/viewer framework libraries
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Requires: %{name}-data
|
|
|
|
Recommends: libkasten-lang
|
|
|
|
Provides: libkasten = %{version}
|
|
|
|
|
|
|
|
%description -n libKasten%{Kasten_sover}
|
|
|
|
Kasten is a WIP higher-level framework for composable document-centric
|
|
|
|
applications.
|
|
|
|
|
|
|
|
%package -n libOkteta%{Okteta_sover}
|
|
|
|
Summary: Hex editor/viewer QWidgets libraries
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Recommends: libokteta-lang
|
|
|
|
Provides: libokteta = %{version}
|
|
|
|
|
|
|
|
%description -n libOkteta%{Okteta_sover}
|
|
|
|
Okteta libraries for QWidget-based hex editing widgets.
|
|
|
|
|
2013-07-08 07:27:43 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for the Okteta Hex Editor
|
2013-07-22 17:20:19 +02:00
|
|
|
Group: Development/Tools/Other
|
2019-03-13 11:27:27 +01:00
|
|
|
Requires: libKasten%{Kasten_sover} = %{version}
|
|
|
|
Requires: libOkteta%{Okteta_sover} = %{version}
|
|
|
|
# designer plugin was in the main package before
|
|
|
|
Conflicts: %{name} < 0.26
|
2018-06-19 11:59:49 +02:00
|
|
|
Obsoletes: %{name}5-devel
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%description devel
|
2019-03-13 11:27:27 +01:00
|
|
|
Contains the development files for the Okteta Hex Editor.
|
2013-07-08 07:27:43 +02:00
|
|
|
|
2017-05-16 14:36:59 +02:00
|
|
|
%lang_package
|
2019-03-13 11:27:27 +01:00
|
|
|
%lang_package -n %{name}-part
|
|
|
|
%lang_package -n libkasten
|
|
|
|
%lang_package -n libokteta
|
2017-05-16 14:36:59 +02:00
|
|
|
|
2013-07-08 07:27:43 +02:00
|
|
|
%prep
|
2015-05-11 19:21:58 +02:00
|
|
|
%setup -q
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%build
|
2015-05-11 19:21:58 +02:00
|
|
|
%cmake_kf5 -d build
|
|
|
|
%make_jobs
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%install
|
2015-05-11 19:21:58 +02:00
|
|
|
%kf5_makeinstall -C build
|
2017-05-16 14:36:59 +02:00
|
|
|
%if %{with lang}
|
2019-03-13 11:27:27 +01:00
|
|
|
%find_lang okteta
|
|
|
|
%find_lang oktetapart
|
|
|
|
%find_lang liboktetacore libokteta.lang
|
|
|
|
%find_lang liboktetagui libokteta.lang
|
|
|
|
%find_lang libkasten libkasten.lang
|
|
|
|
%find_lang liboktetakasten libkasten.lang
|
2018-06-19 11:59:49 +02:00
|
|
|
%{kf5_find_htmldocs}
|
2017-05-16 14:36:59 +02:00
|
|
|
%endif
|
2015-05-11 19:21:58 +02:00
|
|
|
%suse_update_desktop_file org.kde.okteta Utility Editor
|
2013-07-08 07:27:43 +02:00
|
|
|
|
2019-03-13 11:27:27 +01:00
|
|
|
%post -n libKasten%{Kasten_sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libKasten%{Kasten_sover} -p /sbin/ldconfig
|
|
|
|
%post -n libOkteta%{Okteta_sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libOkteta%{Okteta_sover} -p /sbin/ldconfig
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%files
|
2018-06-19 11:59:49 +02:00
|
|
|
%license COPYING*
|
2017-08-28 15:09:08 +02:00
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/okteta/
|
|
|
|
%{_kf5_applicationsdir}/org.kde.okteta.desktop
|
2019-03-13 11:27:27 +01:00
|
|
|
%{_kf5_appstreamdir}/org.kde.okteta.appdata.xml
|
2017-08-28 15:09:08 +02:00
|
|
|
%{_kf5_bindir}/okteta
|
2019-03-13 11:27:27 +01:00
|
|
|
%{_kf5_iconsdir}/hicolor/*/*/*.*
|
|
|
|
|
|
|
|
%files data
|
|
|
|
%license COPYING*
|
2017-08-28 15:09:08 +02:00
|
|
|
%{_kf5_bindir}/struct2osd
|
|
|
|
%{_kf5_configkcfgdir}/
|
2020-02-03 09:06:23 +01:00
|
|
|
%{_kf5_knsrcfilesdir}/okteta-structures.knsrc
|
2017-08-28 15:09:08 +02:00
|
|
|
%{_kf5_sharedir}/mime/packages/okteta.xml
|
2019-03-13 11:27:27 +01:00
|
|
|
%{_kf5_sharedir}/okteta/
|
|
|
|
|
|
|
|
%files part
|
|
|
|
%license COPYING*
|
|
|
|
%{_kf5_plugindir}/kf5/
|
|
|
|
%{_kf5_servicesdir}/oktetapart.desktop
|
|
|
|
|
|
|
|
%files -n libKasten%{Kasten_sover}
|
|
|
|
%license COPYING*
|
|
|
|
%{_kf5_libdir}/libKasten%{Kasten_sover}*.so.*
|
|
|
|
|
|
|
|
%files -n libOkteta%{Okteta_sover}
|
|
|
|
%license COPYING*
|
|
|
|
%{_kf5_libdir}/libOkteta%{Okteta_sover}*.so.*
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%files devel
|
2018-06-19 11:59:49 +02:00
|
|
|
%license COPYING*
|
2017-08-28 15:09:08 +02:00
|
|
|
%{_kf5_cmakedir}/
|
2019-03-13 11:27:27 +01:00
|
|
|
%{_kf5_libdir}/libKasten%{Kasten_sover}*.so
|
|
|
|
%{_kf5_libdir}/libOkteta%{Okteta_sover}*.so
|
2017-08-28 15:09:08 +02:00
|
|
|
%{_kf5_prefix}/include/*/
|
2019-03-13 11:27:27 +01:00
|
|
|
%{_kf5_mkspecsdir}/qt_OktetaCore.pri
|
|
|
|
%{_kf5_mkspecsdir}/qt_OktetaGui.pri
|
|
|
|
%{_kf5_libdir}/pkgconfig/OktetaCore.pc
|
|
|
|
%{_kf5_libdir}/pkgconfig/OktetaGui.pc
|
|
|
|
%{_kf5_plugindir}/designer/
|
2015-05-11 19:21:58 +02:00
|
|
|
|
2017-05-16 14:36:59 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
2018-06-19 11:59:49 +02:00
|
|
|
%license COPYING*
|
2019-03-13 11:27:27 +01:00
|
|
|
|
|
|
|
%files part-lang -f oktetapart.lang
|
|
|
|
%license COPYING*
|
|
|
|
|
|
|
|
%files -n libkasten-lang -f libkasten.lang
|
|
|
|
%license COPYING*
|
|
|
|
|
|
|
|
%files -n libokteta-lang -f libokteta.lang
|
|
|
|
%license COPYING*
|
2017-05-16 14:36:59 +02:00
|
|
|
%endif
|
|
|
|
|
2013-07-08 07:27:43 +02:00
|
|
|
%changelog
|