init package
(cherry picked from commit 497f7569a35392ec83db0fbc64279e7888a3e3d1)
This commit is contained in:
parent
27bf31e0d7
commit
7985a104ec
BIN
okteta-0.26.4.tar.xz
Normal file
BIN
okteta-0.26.4.tar.xz
Normal file
Binary file not shown.
29
okteta-gcc11.patch
Normal file
29
okteta-gcc11.patch
Normal file
@ -0,0 +1,29 @@
|
||||
diff --git a/kasten/controllers/view/structures/allprimitivetypes.cpp b/kasten/controllers/view/structures/allprimitivetypes.cpp
|
||||
index c4f6185..60c3fd2 100644
|
||||
--- a/kasten/controllers/view/structures/allprimitivetypes.cpp
|
||||
+++ b/kasten/controllers/view/structures/allprimitivetypes.cpp
|
||||
@@ -6,6 +6,7 @@
|
||||
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
||||
*/
|
||||
|
||||
+#include <limits>
|
||||
#include "allprimitivetypes.hpp"
|
||||
#include "datatypes/primitive/primitivedatainformation.hpp"
|
||||
|
||||
diff --git a/kasten/controllers/view/structures/datatypes/primitive/enumdefinition.cpp b/kasten/controllers/view/structures/datatypes/primitive/enumdefinition.cpp
|
||||
index 384e0f7..cafedc1 100644
|
||||
--- a/kasten/controllers/view/structures/datatypes/primitive/enumdefinition.cpp
|
||||
+++ b/kasten/controllers/view/structures/datatypes/primitive/enumdefinition.cpp
|
||||
@@ -6,11 +6,11 @@
|
||||
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
||||
*/
|
||||
|
||||
+#include <limits>
|
||||
#include "enumdefinition.hpp"
|
||||
|
||||
#include <QScriptValue>
|
||||
#include <QScriptValueIterator>
|
||||
-#include <limits>
|
||||
|
||||
#include "../../script/scriptlogger.hpp"
|
||||
|
||||
160
okteta.spec
Normal file
160
okteta.spec
Normal file
@ -0,0 +1,160 @@
|
||||
%undefine __cmake_in_source_build
|
||||
|
||||
Name: okteta
|
||||
Summary: Binary/hex editor
|
||||
Version: 0.26.4
|
||||
Release: 1
|
||||
|
||||
License: GPLv2+ and GFDL-1.2-only
|
||||
URL: https://cgit.kde.org/%{name}.git
|
||||
|
||||
%global revision %(echo %{version} | cut -d. -f3)
|
||||
%if %{revision} >= 50
|
||||
%global stable unstable
|
||||
%else
|
||||
%global stable stable
|
||||
%endif
|
||||
Source0: http://download.kde.org/%{stable}/okteta/%{version}/src/%{name}-%{version}.tar.xz
|
||||
Patch0: okteta-gcc11.patch
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: gettext
|
||||
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: kf5-rpm-macros
|
||||
BuildRequires: kf5-kcrash-devel
|
||||
BuildRequires: kf5-kbookmarks-devel
|
||||
BuildRequires: kf5-kcodecs-devel
|
||||
BuildRequires: kf5-kcompletion-devel
|
||||
BuildRequires: kf5-kconfigwidgets-devel
|
||||
BuildRequires: kf5-kdbusaddons-devel
|
||||
BuildRequires: kf5-kdoctools-devel
|
||||
BuildRequires: kf5-ki18n-devel
|
||||
BuildRequires: kf5-kiconthemes-devel
|
||||
BuildRequires: kf5-kcmutils-devel
|
||||
BuildRequires: kf5-kio-devel
|
||||
BuildRequires: kf5-knewstuff-devel
|
||||
BuildRequires: kf5-kparts-devel
|
||||
BuildRequires: kf5-kservice-devel
|
||||
BuildRequires: kf5-kwidgetsaddons-devel
|
||||
BuildRequires: kf5-kxmlgui-devel
|
||||
|
||||
BuildRequires: pkgconfig(qca2-qt5)
|
||||
BuildRequires: pkgconfig(Qt5Designer)
|
||||
BuildRequires: pkgconfig(Qt5Qml)
|
||||
BuildRequires: pkgconfig(Qt5Network)
|
||||
BuildRequires: pkgconfig(Qt5PrintSupport)
|
||||
BuildRequires: pkgconfig(Qt5Script)
|
||||
BuildRequires: pkgconfig(Qt5ScriptTools)
|
||||
BuildRequires: pkgconfig(Qt5Test)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
BuildRequires: pkgconfig(Qt5Xml)
|
||||
|
||||
# translations moved here
|
||||
Conflicts: kde-l10n < 17.03
|
||||
|
||||
Conflicts: kdesdk-common < 4.10.80
|
||||
Obsoletes: kdesdk-okteta < 4.10.80
|
||||
Provides: kdesdk-okteta = %{version}-%{release}
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
# struct2osd.sh deps
|
||||
%if 0%{?fedora} > 20 || 0%{?rhel} > 7
|
||||
Recommends: castxml libxslt
|
||||
%else
|
||||
Requires: castxml libxslt
|
||||
%endif
|
||||
|
||||
%description
|
||||
Okteta is a binary/hex editor for KDE
|
||||
|
||||
%package libs
|
||||
Summary: Runtime libraries and kpart plugins for %{name}
|
||||
Obsoletes: kdesdk-okteta-libs < 4.10.80
|
||||
Provides: kdesdk-okteta-libs = %{version}-%{release}
|
||||
Provides: okteta5-part = %{version}-%{release}
|
||||
Provides: okteta5-part%{?_isa} = %{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Developer files for %{name}
|
||||
Obsoletes: kdesdk-okteta-devel < 4.10.80
|
||||
Provides: kdesdk-okteta-devel = %{version}-%{release}
|
||||
Provides: okteta5-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
|
||||
%build
|
||||
mkdir build
|
||||
pushd build
|
||||
%cmake_kf5 ..
|
||||
%make_build
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
pushd build
|
||||
%make_install
|
||||
popd
|
||||
|
||||
%find_lang %{name} --all-name --with-html
|
||||
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.okteta.appdata.xml ||:
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.okteta.desktop
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc README
|
||||
%license COPYING*
|
||||
%{_bindir}/okteta
|
||||
%{_bindir}/struct2osd
|
||||
%{_datadir}/mime/packages/okteta.xml
|
||||
%{_kf5_metainfodir}/org.kde.okteta.appdata.xml
|
||||
%{_kf5_datadir}/knsrcfiles/okteta-structures.knsrc
|
||||
%{_datadir}/applications/org.kde.okteta.desktop
|
||||
#{_datadir}/kxmlgui5/okteta/
|
||||
%{_datadir}/icons/hicolor/*/apps/okteta.*
|
||||
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%files libs
|
||||
%dir %{_datadir}/okteta/
|
||||
%{_datadir}/okteta/structures/
|
||||
%{_datadir}/config.kcfg/structureviewpreferences.kcfg
|
||||
%{_libdir}/libKasten4*.so.*
|
||||
%{_libdir}/libOkteta3*.so.*
|
||||
%{_qt5_plugindir}/designer/oktetawidgets.so
|
||||
# part
|
||||
%{_kf5_plugindir}/parts/oktetapart.so
|
||||
%{_kf5_datadir}/kservices5/oktetapart.desktop
|
||||
|
||||
%files devel
|
||||
%{_includedir}/Okteta*/
|
||||
%{_includedir}/Kasten*/
|
||||
%{_libdir}/libKasten4*.so
|
||||
%{_libdir}/libOkteta3*.so
|
||||
%{_libdir}/cmake/KastenControllers/
|
||||
%{_libdir}/cmake/KastenCore/
|
||||
%{_libdir}/cmake/KastenGui/
|
||||
%{_libdir}/cmake/OktetaCore/
|
||||
%{_libdir}/cmake/OktetaGui/
|
||||
%{_libdir}/cmake/OktetaKastenControllers/
|
||||
%{_libdir}/cmake/OktetaKastenCore/
|
||||
%{_libdir}/cmake/OktetaKastenGui/
|
||||
%{_libdir}/pkgconfig/Okteta*.pc
|
||||
%{_qt5_archdatadir}/mkspecs/modules/qt_Okteta*.pri
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Sep 06 2022 liweiganga <liweiganga@uniontech.com> - 0.26.4-1
|
||||
- init package
|
||||
4
okteta.yaml
Normal file
4
okteta.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/okteta
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user