This commit is contained in:
parent
3bb9aeddc7
commit
95918c99fd
39
kxmlgui.spec
39
kxmlgui.spec
@ -16,26 +16,27 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without lang
|
||||
%define lname libKF5XmlGui5
|
||||
%define _tar_path 5.9
|
||||
Name: kxmlgui
|
||||
Version: %{_tar_path}.0
|
||||
Version: 5.9.0
|
||||
Release: 0
|
||||
%define kf5_version %{version}
|
||||
BuildRequires: attica-qt5-devel >= %{kf5_version}
|
||||
BuildRequires: attica-qt5-devel >= %{_tar_path}
|
||||
BuildRequires: cmake >= 2.8.12
|
||||
BuildRequires: extra-cmake-modules >= %{version}
|
||||
BuildRequires: extra-cmake-modules >= %{_tar_path}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: kconfig-devel >= %{kf5_version}
|
||||
BuildRequires: kconfigwidgets-devel >= %{kf5_version}
|
||||
BuildRequires: kconfig-devel >= %{_tar_path}
|
||||
BuildRequires: kconfigwidgets-devel >= %{_tar_path}
|
||||
BuildRequires: kf5-filesystem
|
||||
BuildRequires: kglobalaccel-devel >= %{kf5_version}
|
||||
BuildRequires: ki18n-devel >= %{kf5_version}
|
||||
BuildRequires: kiconthemes-devel >= %{kf5_version}
|
||||
BuildRequires: kitemviews-devel >= %{kf5_version}
|
||||
BuildRequires: ktextwidgets-devel >= %{kf5_version}
|
||||
BuildRequires: kwidgetsaddons-devel >= %{kf5_version}
|
||||
BuildRequires: kwindowsystem-devel >= %{kf5_version}
|
||||
BuildRequires: kglobalaccel-devel >= %{_tar_path}
|
||||
BuildRequires: ki18n-devel >= %{_tar_path}
|
||||
BuildRequires: kiconthemes-devel >= %{_tar_path}
|
||||
BuildRequires: kitemviews-devel >= %{_tar_path}
|
||||
BuildRequires: ktextwidgets-devel >= %{_tar_path}
|
||||
BuildRequires: kwidgetsaddons-devel >= %{_tar_path}
|
||||
BuildRequires: kwindowsystem-devel >= %{_tar_path}
|
||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
||||
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
|
||||
@ -62,7 +63,9 @@ description for example for integrating actions from plugins.
|
||||
Summary: Framework for managing menu and toolbar actions
|
||||
Group: System/GUI/KDE
|
||||
Obsoletes: libKF5XmlGui4
|
||||
%if %{with lang}
|
||||
Recommends: %lname-lang = %{version}
|
||||
%endif
|
||||
|
||||
%description -n %lname
|
||||
libkxmlgui provides a framework for managing menu and toolbar actions in an
|
||||
@ -75,8 +78,8 @@ Summary: Framework for managing menu and toolbar actions
|
||||
Group: Development/Libraries/KDE
|
||||
Requires: %lname = %{version}
|
||||
Requires: extra-cmake-modules
|
||||
Requires: kconfig-devel >= %{kf5_version}
|
||||
Requires: kconfigwidgets-devel >= %{kf5_version}
|
||||
Requires: kconfig-devel >= %{_tar_path}
|
||||
Requires: kconfigwidgets-devel >= %{_tar_path}
|
||||
Requires: pkgconfig(Qt5DBus) >= 5.2.0
|
||||
Requires: pkgconfig(Qt5Widgets) >= 5.2.0
|
||||
Requires: pkgconfig(Qt5Xml) >= 5.2.0
|
||||
@ -101,17 +104,17 @@ description for example for integrating actions from plugins. Development files.
|
||||
|
||||
mkdir -p %{buildroot}%{_kf5_sharedir}/kxmlgui5/
|
||||
|
||||
if [ -e po ]; then
|
||||
%if %{with lang}
|
||||
%find_lang %{name}5
|
||||
else
|
||||
touch %{name}5.lang
|
||||
fi
|
||||
%endif
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%if %{with lang}
|
||||
%files -n %lname-lang -f %{name}5.lang
|
||||
%endif
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user