forked from pool/kcoreaddons
This commit is contained in:
parent
c4ef7f15e5
commit
25628d81b5
@ -16,20 +16,25 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without lang
|
||||||
%define lname libKF5CoreAddons5
|
%define lname libKF5CoreAddons5
|
||||||
%define _tar_path 5.9
|
%define _tar_path 5.9
|
||||||
Name: kcoreaddons
|
Name: kcoreaddons
|
||||||
Version: %{_tar_path}.0
|
Version: 5.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
BuildRequires: cmake >= 2.8.12
|
BuildRequires: cmake >= 2.8.12
|
||||||
BuildRequires: extra-cmake-modules >= %{version}
|
BuildRequires: extra-cmake-modules >= %{_tar_path}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
|
%if %{with lang}
|
||||||
BuildRequires: libqt5-linguist-devel >= 5.2.0
|
BuildRequires: libqt5-linguist-devel >= 5.2.0
|
||||||
|
%endif
|
||||||
BuildRequires: shared-mime-info
|
BuildRequires: shared-mime-info
|
||||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||||
Requires: shared-mime-info
|
Requires: shared-mime-info
|
||||||
|
%if %{with lang}
|
||||||
Recommends: %{name}-lang = %{version}
|
Recommends: %{name}-lang = %{version}
|
||||||
|
%endif
|
||||||
Summary: Utilities for core application functionality and accessing the OS
|
Summary: Utilities for core application functionality and accessing the OS
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: System/GUI/KDE
|
Group: System/GUI/KDE
|
||||||
@ -82,11 +87,9 @@ replacement, accessing user information and many more. Development files.
|
|||||||
%kf5_makeinstall -C build
|
%kf5_makeinstall -C build
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
if [ -e po ]; then
|
%if %{with lang}
|
||||||
%find_lang %{name}5 --with-qt --without-mo
|
%find_lang %{name}5 --with-qt --without-mo
|
||||||
else
|
%endif
|
||||||
touch %{name}5.lang
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -98,7 +101,9 @@ fi
|
|||||||
%postun
|
%postun
|
||||||
%{_bindir}/update-mime-database %{_kf5_sharedir}/mime > /dev/null 2>&1 || :
|
%{_bindir}/update-mime-database %{_kf5_sharedir}/mime > /dev/null 2>&1 || :
|
||||||
|
|
||||||
|
%if %{with lang}
|
||||||
%files lang -f %{name}5.lang
|
%files lang -f %{name}5.lang
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user