diff --git a/kio.spec b/kio.spec index f6f6c4f..421c7f6 100644 --- a/kio.spec +++ b/kio.spec @@ -16,38 +16,39 @@ # +%bcond_without lang %define _tar_path 5.9 Name: kio -Version: %{_tar_path}.0 +Version: 5.9.0 Release: 0 %define kf5_version %{version} BuildRequires: cmake >= 2.8.12 -BuildRequires: extra-cmake-modules >= %{version} +BuildRequires: extra-cmake-modules >= %{_tar_path} BuildRequires: fdupes -BuildRequires: karchive-devel >= %{kf5_version} -BuildRequires: kbookmarks-devel >= %{kf5_version} -BuildRequires: kcompletion-devel >= %{kf5_version} -BuildRequires: kconfigwidgets-devel >= %{kf5_version} -BuildRequires: kcoreaddons-devel >= %{kf5_version} -BuildRequires: kdbusaddons-devel >= %{kf5_version} -BuildRequires: kdoctools-devel >= %{kf5_version} +BuildRequires: karchive-devel >= %{_tar_path} +BuildRequires: kbookmarks-devel >= %{_tar_path} +BuildRequires: kcompletion-devel >= %{_tar_path} +BuildRequires: kconfigwidgets-devel >= %{_tar_path} +BuildRequires: kcoreaddons-devel >= %{_tar_path} +BuildRequires: kdbusaddons-devel >= %{_tar_path} +BuildRequires: kdoctools-devel >= %{_tar_path} BuildRequires: kf5-filesystem -BuildRequires: kguiaddons-devel >= %{kf5_version} -BuildRequires: ki18n-devel >= %{kf5_version} -BuildRequires: kiconthemes-devel >= %{kf5_version} -BuildRequires: kitemviews-devel >= %{kf5_version} -BuildRequires: kjobwidgets-devel >= %{kf5_version} -BuildRequires: knotifications-devel >= %{kf5_version} +BuildRequires: kguiaddons-devel >= %{_tar_path} +BuildRequires: ki18n-devel >= %{_tar_path} +BuildRequires: kiconthemes-devel >= %{_tar_path} +BuildRequires: kitemviews-devel >= %{_tar_path} +BuildRequires: kjobwidgets-devel >= %{_tar_path} +BuildRequires: knotifications-devel >= %{_tar_path} BuildRequires: krb5-devel -BuildRequires: kservice-devel >= %{kf5_version} -BuildRequires: ktextwidgets-devel >= %{kf5_version} -BuildRequires: kwallet-devel >= %{kf5_version} -BuildRequires: kwidgetsaddons-devel >= %{kf5_version} -BuildRequires: kwindowsystem-devel >= %{kf5_version} -BuildRequires: kxmlgui-devel >= %{kf5_version} +BuildRequires: kservice-devel >= %{_tar_path} +BuildRequires: ktextwidgets-devel >= %{_tar_path} +BuildRequires: kwallet-devel >= %{_tar_path} +BuildRequires: kwidgetsaddons-devel >= %{_tar_path} +BuildRequires: kwindowsystem-devel >= %{_tar_path} +BuildRequires: kxmlgui-devel >= %{_tar_path} BuildRequires: libacl-devel BuildRequires: libattr-devel -BuildRequires: solid-devel >= %{kf5_version} +BuildRequires: solid-devel >= %{_tar_path} BuildRequires: pkgconfig(Qt5Concurrent) >= 5.2.0 BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0 @@ -60,7 +61,9 @@ BuildRequires: pkgconfig(Qt5Xml) >= 5.2.0 BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(x11) Requires: %{name}-core = %{version} +%if %{with lang} Recommends: %{name}-lang = %{version} +%endif Recommends: kio-extras5 # KIO/FileDialog uses klauncher directly, but we can't add Requires, as that would introduce dep cycle Recommends: kinit @@ -95,15 +98,15 @@ Group: Development/Libraries/KDE Requires: %{name} = %{version} Requires: %{name}-core = %{version} Requires: extra-cmake-modules -Requires: kbookmarks-devel >= %{kf5_version} -Requires: kcompletion-devel >= %{kf5_version} -Requires: kconfig-devel >= %{kf5_version} -Requires: kcoreaddons-devel >= %{kf5_version} -Requires: kitemviews-devel >= %{kf5_version} -Requires: kjobwidgets-devel >= %{kf5_version} -Requires: kservice-devel >= %{kf5_version} -Requires: kxmlgui-devel >= %{kf5_version} -Requires: solid-devel >= %{kf5_version} +Requires: kbookmarks-devel >= %{_tar_path} +Requires: kcompletion-devel >= %{_tar_path} +Requires: kconfig-devel >= %{_tar_path} +Requires: kcoreaddons-devel >= %{_tar_path} +Requires: kitemviews-devel >= %{_tar_path} +Requires: kjobwidgets-devel >= %{_tar_path} +Requires: kservice-devel >= %{_tar_path} +Requires: kxmlgui-devel >= %{_tar_path} +Requires: solid-devel >= %{_tar_path} Requires: pkgconfig(Qt5Network) >= 5.2.0 %description devel @@ -124,16 +127,14 @@ Development files. %kf5_makeinstall -C build %fdupes -s %{buildroot} -if [ -e po ]; then +%if %{with lang} %find_lang %{name}5 %{name}5.lang echo "%doc %lang(it) %{_kf5_mandir}/it" >>%{name}5.lang echo "%doc %lang(nl) %{_kf5_mandir}/nl" >>%{name}5.lang echo "%doc %lang(pt_BR) %{_kf5_mandir}/pt_BR" >>%{name}5.lang echo "%doc %lang(sv) %{_kf5_mandir}/sv" >>%{name}5.lang echo "%doc %lang(uk) %{_kf5_mandir}/uk" >>%{name}5.lang -else -touch %{name}5.lang -fi +%endif %post core -p /sbin/ldconfig @@ -143,7 +144,9 @@ fi %postun -p /sbin/ldconfig +%if %{with lang} %files lang -f %{name}5.lang +%endif %files core %doc COPYING* README*