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
|
|
|
#
|
2017-08-28 15:09:08 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2017-08-28 15:09:08 +02:00
|
|
|
|
2017-05-16 14:36:59 +02:00
|
|
|
%bcond_without lang
|
2013-07-22 17:20:19 +02:00
|
|
|
|
2013-07-08 07:27:43 +02:00
|
|
|
Name: okteta
|
2018-02-14 09:43:36 +01:00
|
|
|
Version: 17.12.2
|
2016-12-17 10:56:47 +01:00
|
|
|
Release: 0
|
|
|
|
%define kf5_version 5.26.0
|
2017-08-28 15:09:08 +02:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
2016-12-17 10:56:47 +01:00
|
|
|
%{!?_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
|
2017-08-28 15:09:08 +02:00
|
|
|
Url: http://www.kde.org/
|
2016-12-17 10:56:47 +01:00
|
|
|
Source0: okteta-%{version}.tar.xz
|
2015-05-11 19:21:58 +02:00
|
|
|
BuildRequires: attica-qt5-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: kcmutils-devel
|
2017-08-28 15:09:08 +02:00
|
|
|
BuildRequires: kcrash-devel
|
2016-12-17 10:56:47 +01:00
|
|
|
BuildRequires: kdbusaddons-devel
|
2015-05-11 19:21:58 +02:00
|
|
|
BuildRequires: kdoctools-devel
|
|
|
|
BuildRequires: kf5-filesystem
|
2016-12-17 10:56:47 +01:00
|
|
|
BuildRequires: kiconthemes-devel
|
2015-05-11 19:21:58 +02:00
|
|
|
BuildRequires: knewstuff-devel
|
|
|
|
BuildRequires: kparts-devel
|
2016-12-17 10:56:47 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-05-11 19:21:58 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2017-03-31 15:10:11 +02:00
|
|
|
BuildRequires: cmake(Qca-qt5)
|
2015-05-11 19:21:58 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Designer)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5ScriptTools)
|
2016-12-17 10:56:47 +01:00
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): shared-mime-info
|
2015-05-11 19:21:58 +02:00
|
|
|
Obsoletes: %{name}5 < %{version}
|
2017-08-28 15:09:08 +02:00
|
|
|
Obsoletes: okteta5 < %{version}
|
2015-05-11 19:21:58 +02:00
|
|
|
Provides: %{name}5 = %{version}
|
2017-08-28 15:09:08 +02:00
|
|
|
%if %{with lang}
|
2017-05-16 14:36:59 +02:00
|
|
|
Recommends: %{name}-lang
|
2017-08-28 15:09:08 +02:00
|
|
|
%endif
|
2013-07-08 07:27:43 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the Okteta Hex Editor
|
2013-07-22 17:20:19 +02:00
|
|
|
Group: Development/Tools/Other
|
2013-07-08 07:27:43 +02:00
|
|
|
Requires: %{name} = %{version}
|
2015-05-11 19:21:58 +02:00
|
|
|
Obsoletes: okteta5-devel
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Contains the development files for the Okteta Hex Editor
|
|
|
|
|
2017-05-16 14:36:59 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
|
|
|
|
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}
|
|
|
|
%find_lang %{name} --with-man --all-name
|
|
|
|
%kf5_find_htmldocs
|
|
|
|
%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
|
|
|
|
2015-05-11 19:21:58 +02:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2016-06-25 02:20:15 +02:00
|
|
|
%mime_database_post
|
2013-07-08 07:27:43 +02:00
|
|
|
|
2015-05-11 19:21:58 +02:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2016-06-25 02:20:15 +02:00
|
|
|
%mime_database_postun
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2017-08-28 15:09:08 +02:00
|
|
|
%doc COPYING*
|
2015-05-11 19:21:58 +02:00
|
|
|
%config %{_kf5_configdir}/okteta-structures.knsrc
|
2017-08-28 15:09:08 +02:00
|
|
|
%dir %{_kf5_htmldir}
|
|
|
|
%dir %{_kf5_htmldir}/en
|
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/okteta/
|
|
|
|
%{_kf5_applicationsdir}/org.kde.okteta.desktop
|
2016-08-31 00:09:08 +02:00
|
|
|
%{_kf5_appstreamdir}/
|
2017-08-28 15:09:08 +02:00
|
|
|
%{_kf5_bindir}/okteta
|
|
|
|
%{_kf5_bindir}/struct2osd
|
|
|
|
%{_kf5_configkcfgdir}/
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/*/*.*
|
|
|
|
%{_kf5_kxmlguidir}/
|
2015-05-11 19:21:58 +02:00
|
|
|
%{_kf5_libdir}/libkasten*.so.*
|
|
|
|
%{_kf5_libdir}/libokteta*.so.*
|
2017-08-28 15:09:08 +02:00
|
|
|
%{_kf5_plugindir}/
|
|
|
|
%{_kf5_sharedir}/mime/packages/okteta.xml
|
|
|
|
%{_kf5_sharedir}/okteta*/
|
2013-07-08 07:27:43 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2017-08-28 15:09:08 +02:00
|
|
|
%doc COPYING*
|
|
|
|
%{_kf5_cmakedir}/
|
2015-05-11 19:21:58 +02:00
|
|
|
%{_kf5_libdir}/libkasten*.so
|
|
|
|
%{_kf5_libdir}/libokteta*.so
|
2017-08-28 15:09:08 +02:00
|
|
|
%{_kf5_prefix}/include/*/
|
2015-05-11 19:21:58 +02:00
|
|
|
|
2017-05-16 14:36:59 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%doc COPYING*
|
|
|
|
%endif
|
|
|
|
|
2013-07-08 07:27:43 +02:00
|
|
|
%changelog
|