From 98fd762d32722229e5076aae5ea4b53dcdab424577fd2445e2daddca07d54a66 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 10 Apr 2015 16:28:45 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kbookmarks?expand=0&rev=50 --- kbookmarks.spec | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/kbookmarks.spec b/kbookmarks.spec index 5795aff..a090b96 100644 --- a/kbookmarks.spec +++ b/kbookmarks.spec @@ -16,24 +16,27 @@ # +%bcond_without lang %define lname libKF5Bookmarks5 %define _tar_path 5.9 Name: kbookmarks -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: kcodecs-devel >= %{kf5_version} -BuildRequires: kconfig-devel >= %{kf5_version} -BuildRequires: kconfigwidgets-devel >= %{kf5_version} -BuildRequires: kcoreaddons-devel >= %{kf5_version} +BuildRequires: kcodecs-devel >= %{_tar_path} +BuildRequires: kconfig-devel >= %{_tar_path} +BuildRequires: kconfigwidgets-devel >= %{_tar_path} +BuildRequires: kcoreaddons-devel >= %{_tar_path} BuildRequires: kf5-filesystem -BuildRequires: kiconthemes-devel >= %{kf5_version} -BuildRequires: kwidgetsaddons-devel >= %{kf5_version} -BuildRequires: kxmlgui-devel >= %{kf5_version} +BuildRequires: kiconthemes-devel >= %{_tar_path} +BuildRequires: kwidgetsaddons-devel >= %{_tar_path} +BuildRequires: kxmlgui-devel >= %{_tar_path} +%if %{with lang} BuildRequires: libqt5-linguist-devel >= 5.2.0 +%endif Requires: pkgconfig(Qt5DBus) >= 5.2.0 Requires: pkgconfig(Qt5Widgets) >= 5.2.0 Requires: pkgconfig(Qt5Xml) >= 5.2.0 @@ -51,7 +54,9 @@ Framework which lets you access and manipulate bookmarks stored using XBEL forma %package -n %lname Summary: Lets you access and manipulate bookmarks stored using XBEL format Group: System/GUI/KDE +%if %{with lang} Recommends: %lname-lang = %{version} +%endif %description -n %lname Framework which lets you access and manipulate bookmarks stored using XBEL format @@ -61,7 +66,7 @@ Summary: Lets you access and manipulate bookmarks stored using XBEL forma Group: Development/Libraries/KDE Requires: %lname = %{version} Requires: extra-cmake-modules -Requires: kwidgetsaddons-devel >= %{kf5_version} +Requires: kwidgetsaddons-devel >= %{_tar_path} Requires: pkgconfig(Qt5Widgets) >= 5.2.0 Requires: pkgconfig(Qt5Xml) >= 5.2.0 @@ -79,19 +84,19 @@ Development files %install %kf5_makeinstall -C build - %fdupes %{buildroot}%{_kf5_sharedir} + %fdupes -s %{buildroot} -if [ -e po ]; then +%if %{with lang} %find_lang %{name}5 --with-qt --without-mo -else -touch %{name}5.lang -fi +%endif %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig +%if %{with lang} %files -n %lname-lang -f %{name}5.lang +%endif %files -n %lname %defattr(-,root,root)