SHA256
1
0
forked from pool/kbookmarks
Hrvoje Senjan 2015-04-10 16:28:45 +00:00 committed by Git OBS Bridge
parent 61e72a0f0a
commit 98fd762d32

View File

@ -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)