SHA256
1
0
forked from pool/kcoreaddons
Hrvoje Senjan 2015-04-10 16:27:12 +00:00 committed by Git OBS Bridge
parent c4ef7f15e5
commit 25628d81b5

View File

@ -16,20 +16,25 @@
#
%bcond_without lang
%define lname libKF5CoreAddons5
%define _tar_path 5.9
Name: kcoreaddons
Version: %{_tar_path}.0
Version: 5.9.0
Release: 0
BuildRequires: cmake >= 2.8.12
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: extra-cmake-modules >= %{_tar_path}
BuildRequires: fdupes
BuildRequires: kf5-filesystem
%if %{with lang}
BuildRequires: libqt5-linguist-devel >= 5.2.0
%endif
BuildRequires: shared-mime-info
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
Requires: shared-mime-info
%if %{with lang}
Recommends: %{name}-lang = %{version}
%endif
Summary: Utilities for core application functionality and accessing the OS
License: LGPL-2.1+
Group: System/GUI/KDE
@ -82,11 +87,9 @@ replacement, accessing user information and many more. Development files.
%kf5_makeinstall -C build
%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
@ -98,7 +101,9 @@ fi
%postun
%{_bindir}/update-mime-database %{_kf5_sharedir}/mime > /dev/null 2>&1 || :
%if %{with lang}
%files lang -f %{name}5.lang
%endif
%files
%defattr(-,root,root)