SHA256
1
0
forked from pool/kinit
Hrvoje Senjan 2015-04-10 16:28:03 +00:00 committed by Git OBS Bridge
parent e152404f60
commit 13ef00102d

View File

@ -16,21 +16,22 @@
#
%bcond_without lang
%define _tar_path 5.9
Name: kinit
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: kcrash-devel >= %{kf5_version}
BuildRequires: kdoctools-devel >= %{kf5_version}
BuildRequires: kcrash-devel >= %{_tar_path}
BuildRequires: kdoctools-devel >= %{_tar_path}
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel >= %{kf5_version}
BuildRequires: kio-devel >= %{kf5_version}
BuildRequires: kservice-devel >= %{kf5_version}
BuildRequires: kwindowsystem-devel >= %{kf5_version}
BuildRequires: ki18n-devel >= %{_tar_path}
BuildRequires: kio-devel >= %{_tar_path}
BuildRequires: kservice-devel >= %{_tar_path}
BuildRequires: kwindowsystem-devel >= %{_tar_path}
BuildRequires: libcap-devel
BuildRequires: libcap-progs
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
@ -38,7 +39,9 @@ BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires: pkgconfig(x11)
%if %{with lang}
Recommends: %{name}-lang = %{version}
%endif
Summary: Helper library to speed up start of applications on KDE workspaces
License: LGPL-2.1+
Group: System/GUI/KDE
@ -78,7 +81,7 @@ booting UNIX. Development files.
%kf5_makeinstall -C build
%fdupes -s %{buildroot}
if [ -e po ]; then
%if %{with lang}
%find_lang %{name}5
echo "%doc %lang(de) %{_kf5_mandir}/de" >>%{name}5.lang
echo "%doc %lang(it) %{_kf5_mandir}/it" >>%{name}5.lang
@ -86,15 +89,15 @@ 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 -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%if %{with lang}
%files lang -f %{name}5.lang
%endif
%files
%defattr(-,root,root)