forked from pool/kinit
This commit is contained in:
parent
e152404f60
commit
13ef00102d
27
kinit.spec
27
kinit.spec
@ -16,21 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without lang
|
||||||
%define _tar_path 5.9
|
%define _tar_path 5.9
|
||||||
Name: kinit
|
Name: kinit
|
||||||
Version: %{_tar_path}.0
|
Version: 5.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define kf5_version %{version}
|
%define kf5_version %{version}
|
||||||
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: kcrash-devel >= %{kf5_version}
|
BuildRequires: kcrash-devel >= %{_tar_path}
|
||||||
BuildRequires: kdoctools-devel >= %{kf5_version}
|
BuildRequires: kdoctools-devel >= %{_tar_path}
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
BuildRequires: ki18n-devel >= %{kf5_version}
|
BuildRequires: ki18n-devel >= %{_tar_path}
|
||||||
BuildRequires: kio-devel >= %{kf5_version}
|
BuildRequires: kio-devel >= %{_tar_path}
|
||||||
BuildRequires: kservice-devel >= %{kf5_version}
|
BuildRequires: kservice-devel >= %{_tar_path}
|
||||||
BuildRequires: kwindowsystem-devel >= %{kf5_version}
|
BuildRequires: kwindowsystem-devel >= %{_tar_path}
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: libcap-progs
|
BuildRequires: libcap-progs
|
||||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||||
@ -38,7 +39,9 @@ BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
|||||||
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
|
%if %{with lang}
|
||||||
Recommends: %{name}-lang = %{version}
|
Recommends: %{name}-lang = %{version}
|
||||||
|
%endif
|
||||||
Summary: Helper library to speed up start of applications on KDE workspaces
|
Summary: Helper library to speed up start of applications on KDE workspaces
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: System/GUI/KDE
|
Group: System/GUI/KDE
|
||||||
@ -78,7 +81,7 @@ booting UNIX. 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
|
%find_lang %{name}5
|
||||||
echo "%doc %lang(de) %{_kf5_mandir}/de" >>%{name}5.lang
|
echo "%doc %lang(de) %{_kf5_mandir}/de" >>%{name}5.lang
|
||||||
echo "%doc %lang(it) %{_kf5_mandir}/it" >>%{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(pt_BR) %{_kf5_mandir}/pt_BR" >>%{name}5.lang
|
||||||
echo "%doc %lang(sv) %{_kf5_mandir}/sv" >>%{name}5.lang
|
echo "%doc %lang(sv) %{_kf5_mandir}/sv" >>%{name}5.lang
|
||||||
echo "%doc %lang(uk) %{_kf5_mandir}/uk" >>%{name}5.lang
|
echo "%doc %lang(uk) %{_kf5_mandir}/uk" >>%{name}5.lang
|
||||||
else
|
%endif
|
||||||
touch %{name}5.lang
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%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…
Reference in New Issue
Block a user