This commit is contained in:
parent
857c0d434f
commit
0d70f6bfcb
73
kio.spec
73
kio.spec
@ -16,38 +16,39 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without lang
|
||||||
%define _tar_path 5.9
|
%define _tar_path 5.9
|
||||||
Name: kio
|
Name: kio
|
||||||
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: karchive-devel >= %{kf5_version}
|
BuildRequires: karchive-devel >= %{_tar_path}
|
||||||
BuildRequires: kbookmarks-devel >= %{kf5_version}
|
BuildRequires: kbookmarks-devel >= %{_tar_path}
|
||||||
BuildRequires: kcompletion-devel >= %{kf5_version}
|
BuildRequires: kcompletion-devel >= %{_tar_path}
|
||||||
BuildRequires: kconfigwidgets-devel >= %{kf5_version}
|
BuildRequires: kconfigwidgets-devel >= %{_tar_path}
|
||||||
BuildRequires: kcoreaddons-devel >= %{kf5_version}
|
BuildRequires: kcoreaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kdbusaddons-devel >= %{kf5_version}
|
BuildRequires: kdbusaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kdoctools-devel >= %{kf5_version}
|
BuildRequires: kdoctools-devel >= %{_tar_path}
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
BuildRequires: kguiaddons-devel >= %{kf5_version}
|
BuildRequires: kguiaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: ki18n-devel >= %{kf5_version}
|
BuildRequires: ki18n-devel >= %{_tar_path}
|
||||||
BuildRequires: kiconthemes-devel >= %{kf5_version}
|
BuildRequires: kiconthemes-devel >= %{_tar_path}
|
||||||
BuildRequires: kitemviews-devel >= %{kf5_version}
|
BuildRequires: kitemviews-devel >= %{_tar_path}
|
||||||
BuildRequires: kjobwidgets-devel >= %{kf5_version}
|
BuildRequires: kjobwidgets-devel >= %{_tar_path}
|
||||||
BuildRequires: knotifications-devel >= %{kf5_version}
|
BuildRequires: knotifications-devel >= %{_tar_path}
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
BuildRequires: kservice-devel >= %{kf5_version}
|
BuildRequires: kservice-devel >= %{_tar_path}
|
||||||
BuildRequires: ktextwidgets-devel >= %{kf5_version}
|
BuildRequires: ktextwidgets-devel >= %{_tar_path}
|
||||||
BuildRequires: kwallet-devel >= %{kf5_version}
|
BuildRequires: kwallet-devel >= %{_tar_path}
|
||||||
BuildRequires: kwidgetsaddons-devel >= %{kf5_version}
|
BuildRequires: kwidgetsaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kwindowsystem-devel >= %{kf5_version}
|
BuildRequires: kwindowsystem-devel >= %{_tar_path}
|
||||||
BuildRequires: kxmlgui-devel >= %{kf5_version}
|
BuildRequires: kxmlgui-devel >= %{_tar_path}
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
BuildRequires: libattr-devel
|
BuildRequires: libattr-devel
|
||||||
BuildRequires: solid-devel >= %{kf5_version}
|
BuildRequires: solid-devel >= %{_tar_path}
|
||||||
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
||||||
@ -60,7 +61,9 @@ BuildRequires: pkgconfig(Qt5Xml) >= 5.2.0
|
|||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
Requires: %{name}-core = %{version}
|
Requires: %{name}-core = %{version}
|
||||||
|
%if %{with lang}
|
||||||
Recommends: %{name}-lang = %{version}
|
Recommends: %{name}-lang = %{version}
|
||||||
|
%endif
|
||||||
Recommends: kio-extras5
|
Recommends: kio-extras5
|
||||||
# KIO/FileDialog uses klauncher directly, but we can't add Requires, as that would introduce dep cycle
|
# KIO/FileDialog uses klauncher directly, but we can't add Requires, as that would introduce dep cycle
|
||||||
Recommends: kinit
|
Recommends: kinit
|
||||||
@ -95,15 +98,15 @@ Group: Development/Libraries/KDE
|
|||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: %{name}-core = %{version}
|
Requires: %{name}-core = %{version}
|
||||||
Requires: extra-cmake-modules
|
Requires: extra-cmake-modules
|
||||||
Requires: kbookmarks-devel >= %{kf5_version}
|
Requires: kbookmarks-devel >= %{_tar_path}
|
||||||
Requires: kcompletion-devel >= %{kf5_version}
|
Requires: kcompletion-devel >= %{_tar_path}
|
||||||
Requires: kconfig-devel >= %{kf5_version}
|
Requires: kconfig-devel >= %{_tar_path}
|
||||||
Requires: kcoreaddons-devel >= %{kf5_version}
|
Requires: kcoreaddons-devel >= %{_tar_path}
|
||||||
Requires: kitemviews-devel >= %{kf5_version}
|
Requires: kitemviews-devel >= %{_tar_path}
|
||||||
Requires: kjobwidgets-devel >= %{kf5_version}
|
Requires: kjobwidgets-devel >= %{_tar_path}
|
||||||
Requires: kservice-devel >= %{kf5_version}
|
Requires: kservice-devel >= %{_tar_path}
|
||||||
Requires: kxmlgui-devel >= %{kf5_version}
|
Requires: kxmlgui-devel >= %{_tar_path}
|
||||||
Requires: solid-devel >= %{kf5_version}
|
Requires: solid-devel >= %{_tar_path}
|
||||||
Requires: pkgconfig(Qt5Network) >= 5.2.0
|
Requires: pkgconfig(Qt5Network) >= 5.2.0
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -124,16 +127,14 @@ 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 %{name}5.lang
|
%find_lang %{name}5 %{name}5.lang
|
||||||
echo "%doc %lang(it) %{_kf5_mandir}/it" >>%{name}5.lang
|
echo "%doc %lang(it) %{_kf5_mandir}/it" >>%{name}5.lang
|
||||||
echo "%doc %lang(nl) %{_kf5_mandir}/nl" >>%{name}5.lang
|
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 core -p /sbin/ldconfig
|
%post core -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -143,7 +144,9 @@ fi
|
|||||||
|
|
||||||
%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 core
|
%files core
|
||||||
%doc COPYING* README*
|
%doc COPYING* README*
|
||||||
|
Loading…
Reference in New Issue
Block a user