okteta/okteta.spec
Luca Beltrame 151bd5217d Accepting request 662202 from home:wolfi323:branches:KDE:Extra
- Update to 0.25.5
  * Add option to disable build of KParts plugin, Kasten libs, or
    program
  * Translations improved (fi, id, ru, zh_CN)

OBS-URL: https://build.opensuse.org/request/show/662202
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/okteta?expand=0&rev=8
2019-01-01 10:05:50 +00:00

132 lines
3.6 KiB
RPMSpec

#
# 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.5
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