Name: okteta Summary: Binary/hex editor Version: 15.04.0 Release: 1%{?dist} License: GPLv2+ and GFDL URL: https://projects.kde.org/projects/kde/kdesdk/okteta %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: gettext BuildRequires: kf5-rpm-macros 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-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(Qt5Network) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Script) BuildRequires: pkgconfig(Qt5ScriptTools) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Xml) %if 0%{?fedora} > 19 BuildRequires: libappstream-glib %endif 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 Recommends: gccxml libxslt %else Requires: gccxml 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 %setup -q %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} # fix permissions chmod a+rx %{buildroot}%{_bindir}/struct2osd.sh %check appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/okteta.appdata.xml ||: desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.okteta.desktop %post touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: touch --no-create %{_kde4_datadir}/mime ||: %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: update-mime-database %{?fedora:-n} %{_kde4_datadir}/mime &> /dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: touch --no-create %{_datadir}/mime ||: update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : fi %files %doc COPYING* README %{_bindir}/okteta %{_bindir}/struct2osd %{_datadir}/mime/packages/okteta.xml %{_datadir}/applications/org.kde.okteta.desktop %{_datadir}/kxmlgui5/okteta/ %{_datadir}/icons/hicolor/*/apps/okteta.* %{_datadir}/appdata/okteta.appdata.xml %{_docdir}/HTML/en/okteta/ %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files libs %dir %{_datadir}/okteta/ %{_datadir}/okteta/structures/ %{_sysconfdir}/xdg/okteta-structures.knsrc %{_datadir}/config.kcfg/structviewpreferences.kcfg %{_libdir}/libkasten*.so.* %{_libdir}/libokteta*.so.* %{_qt5_plugindir}/designer/oktetadesignerplugin.so # part %{_datadir}/oktetapart/ %{_qt5_plugindir}/oktetapart.so %files devel %{_includedir}/Okteta/ %{_includedir}/okteta/ %{_libdir}/libokteta*.so %{_includedir}/Kasten/ %{_includedir}/kasten/ %{_libdir}/libkasten*.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 %changelog * Tue Apr 14 2015 Rex Dieter - 15.04.0-1 - 15.04.0 * Mon Apr 06 2015 Rex Dieter 14.12.3-1 - kf5 okteta * Wed Apr 01 2015 Rex Dieter - 4.14.3-8 - drop -part subpkg (include in -libs) - more prep for okteta4 compat pkg * Tue Mar 31 2015 Rex Dieter 4.14.3-7 - move struct2osd.sh to main pkg, use Recommends for its runtime deps * Tue Mar 31 2015 Rex Dieter - 4.14.3-6 - -part: move kbytearray here - -libs: move kasten resources/structures here, drop dep on main pkg * Tue Mar 31 2015 Rex Dieter 4.14.3-5 - -devel: Provides: okteta4-devel * Sat Mar 21 2015 Rex Dieter 4.14.3-4 - -part subpkg, Provides: okteta4-part * Sat Feb 28 2015 Rex Dieter 4.14.3-3 - lack of algorithms in checksum tool (#1197339) * Sat Jan 17 2015 Rex Dieter 4.14.3-2 - kde-applications fixes, cleanup * Sun Nov 09 2014 Rex Dieter - 4.14.3-1 - 4.14.3 * Sun Oct 12 2014 Rex Dieter - 4.14.2-1 - 4.14.2 * Tue Sep 16 2014 Rex Dieter - 4.14.1-1 - 4.14.1 * Sun Aug 17 2014 Fedora Release Engineering - 4.14.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Aug 15 2014 Rex Dieter - 4.14.0-1 - 4.14.0 * Tue Aug 05 2014 Rex Dieter - 4.13.97-1 - 4.13.97 * Tue Jul 15 2014 Rex Dieter - 4.13.3-1 - 4.13.3 * Thu Jul 03 2014 Rex Dieter 4.13.2-2 - optimize mimeinfo scriptlet * Mon Jun 09 2014 Rex Dieter - 4.13.2-1 - 4.13.2 * Sat Jun 07 2014 Fedora Release Engineering - 4.13.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun May 11 2014 Rex Dieter - 4.13.1-1 - 4.13.1 * Sat Apr 12 2014 Rex Dieter - 4.13.0-1 - 4.13.0 * Fri Apr 04 2014 Rex Dieter - 4.12.97-1 - 4.12.97 * Sun Mar 23 2014 Rex Dieter - 4.12.95-1 - 4.12.95 * Wed Mar 19 2014 Rex Dieter - 4.12.90-1 - 4.12.90 * Sun Mar 02 2014 Rex Dieter - 4.12.3-1 - 4.12.3 * Fri Jan 31 2014 Rex Dieter - 4.12.2-1 - 4.12.2 * Fri Jan 10 2014 Rex Dieter - 4.12.1-1 - 4.12.1 * Thu Dec 19 2013 Rex Dieter - 4.12.0-1 - 4.12.0 * Sun Dec 01 2013 Rex Dieter - 4.11.97-1 - 4.11.97 * Thu Nov 21 2013 Rex Dieter - 4.11.95-1 - 4.11.95 * Sat Nov 16 2013 Rex Dieter - 4.11.90-1 - 4.11.90 * Sat Nov 02 2013 Rex Dieter - 4.11.3-1 - 4.11.3 * Sat Sep 28 2013 Rex Dieter - 4.11.2-1 - 4.11.2 * Wed Sep 04 2013 Rex Dieter - 4.11.1-1 - 4.11.1 * Thu Aug 08 2013 Than Ngo - 4.11.0-1 - 4.11.0 * Wed Aug 07 2013 Jan Grulich - 4.10.97-2 - Remove epoch - Add obsoletion for kdesdk-okteta < 4.10.80 * Mon Aug 05 2013 Jan Grulich - 4.10.97-1 - Split off from kdesdk package