From 3f9677eb1cce079278b488983d84a26c2275fac2 Mon Sep 17 00:00:00 2001 From: Christian Dersch Date: Jan 20 2017 20:10:17 +0000 Subject: initial import (review: RHBZ #1413020) --- diff --git a/.gitignore b/.gitignore index e69de29..13667a0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/konqueror-16.12.1.tar.xz diff --git a/konqueror.spec b/konqueror.spec new file mode 100644 index 0000000..7675671 --- /dev/null +++ b/konqueror.spec @@ -0,0 +1,155 @@ +Name: konqueror +Version: 16.12.1 +Release: 1%{?dist} +Summary: KDE File Manager and Browser + +License: GPLv2+ and LGPLv2+ and GFDL +URL: https://konqueror.org/ + +%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 + +## upstream patches + +## upstreamable patches + +## Fedora specific patches + + +# handled by qt5-srpm-macros, which defines %%qt5_qtwebengine_arches +%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}} + +BuildRequires: extra-cmake-modules +BuildRequires: cmake(KDED) +BuildRequires: cmake(KF5Activities) +BuildRequires: cmake(KF5Archive) +BuildRequires: cmake(KF5Crash) +BuildRequires: cmake(KF5DocTools) +BuildRequires: cmake(KF5KCMUtils) +BuildRequires: cmake(KF5KDELibs4Support) +BuildRequires: cmake(KF5KHtml) +BuildRequires: cmake(KF5Parts) +BuildRequires: cmake(KF5Su) +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5Script) +BuildRequires: cmake(Qt5WebEngine) +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(Qt5X11Extras) +BuildRequires: pkgconfig(zlib) +BuildRequires: desktop-file-utils +BuildRequires: libtidy-devel + +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: hicolor-icon-theme +Requires: kf5-filesystem + +%description +Konqueror allows you to manage your files and browse the web in a +unified interface. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package libs +Summary: Runtime libraries for %{name} +Requires: %{name} = %{version}-%{release} + +%description libs +%{summary}. + +%prep +%autosetup -p1 + + +%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} + + +%check +appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/org.kde.konqueror.appdata.xml ||: +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/kfmclient.desktop +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/kfmclient_html.desktop +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/kfmclient_war.desktop +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/konqbrowser.desktop + +%post +touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || : + +%posttrans +gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || : +update-desktop-database -q &> /dev/null ||: + +%postun +if [ $1 -eq 0 ] ; then +touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || : +gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || : +update-desktop-database -q &> /dev/null ||: +fi + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + + +%files +%license COPYING COPYING.DOC COPYING.LIB +%doc AUTHORS ChangeLog +%{_kf5_bindir}/* +%{_kf5_datadir}/akregator/pics/feed.png +%{_kf5_datadir}/appdata/org.kde.konqueror.appdata.xml +%{_kf5_datadir}/applications/*.desktop +%{_kf5_datadir}/config.kcfg/*.kcfg +%{_kf5_datadir}/dbus-1/interfaces/*.xml +%{_kf5_datadir}/dolphinpart/kpartplugins/* +%{_kf5_datadir}/domtreeviewer/domtreeviewerui.rc +%{_kf5_datadir}/fsview +%{_kf5_datadir}/icons/hicolor/*/*/* +%{_kf5_datadir}/icons/oxygen/scalable/actions/*.svgz +%{_kf5_datadir}/kcmcss/template.css +%{_kf5_datadir}/kcontrol/pics/*.png +%{_kf5_datadir}/kf5/kbookmark/directory_bookmarkbar.desktop +%{_kf5_datadir}/khtml/kpartplugins/* +%{_kf5_datadir}/konqueror +%{_kf5_datadir}/kwebkitpart/kpartplugins/* +%{_kf5_datadir}/kxmlgui5/*/*.rc +%{_kf5_sysconfdir}/xdg/autostart/konqy_preload.desktop +%{_kf5_sysconfdir}/xdg/translaterc +%lang(en) %{_kf5_datadir}/doc/HTML/en/kcontrol5/ +%lang(en) %{_kf5_datadir}/doc/HTML/en/konqueror/ + +%files devel +%{_kf5_includedir}/* +%{_kf5_libdir}/cmake/KF5Konq +%{_kf5_libdir}/libKF5Konq.so + +%files libs +%{_kf5_datadir}/kservices5/* +%{_kf5_datadir}/kservicetypes5/konqaboutpage.desktop +%{_kf5_libdir}/lib*.so.* +%{_kf5_libdir}/libkdeinit5*.so +%{_kf5_libdir}/libkwebenginepartlib.so +%{_kf5_qtplugindir}/* + + +%changelog +* Fri Jan 20 2017 Christian Dersch - 16.12.1-1 +- initial package (review: RHBZ #1413020) diff --git a/sources b/sources index e69de29..2e9cb80 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (konqueror-16.12.1.tar.xz) = dbf87113d38885352cff44d78102ba31900927ddbd7e3a0882535fc6c35de5370317d18efc171ae750dacf2be59d8457ca13bdfa57f9c36d4663e18503ea3eed