This commit is contained in:
parent
fc7711feb2
commit
ff44a311e5
@ -16,25 +16,26 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without lang
|
||||||
%define lname libKF5KCMUtils5
|
%define lname libKF5KCMUtils5
|
||||||
%define _tar_path 5.9
|
%define _tar_path 5.9
|
||||||
Name: kcmutils
|
Name: kcmutils
|
||||||
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: kconfigwidgets-devel >= %{kf5_version}
|
BuildRequires: kconfigwidgets-devel >= %{_tar_path}
|
||||||
BuildRequires: kcoreaddons-devel >= %{kf5_version}
|
BuildRequires: kcoreaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kdeclarative-devel >= %{kf5_version}
|
BuildRequires: kdeclarative-devel >= %{_tar_path}
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
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: kpackage-devel >= %{kf5_version}
|
BuildRequires: kpackage-devel >= %{_tar_path}
|
||||||
BuildRequires: kservice-devel >= %{kf5_version}
|
BuildRequires: kservice-devel >= %{_tar_path}
|
||||||
BuildRequires: kxmlgui-devel >= %{kf5_version}
|
BuildRequires: kxmlgui-devel >= %{_tar_path}
|
||||||
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(Qt5Quick) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Quick) >= 5.2.0
|
||||||
@ -55,7 +56,9 @@ created with the KConfigWidgets framework.
|
|||||||
Summary: Provides various classes to work with KCModules
|
Summary: Provides various classes to work with KCModules
|
||||||
Group: System/GUI/KDE
|
Group: System/GUI/KDE
|
||||||
Obsoletes: libKF5KCMUtils4
|
Obsoletes: libKF5KCMUtils4
|
||||||
|
%if %{with lang}
|
||||||
Recommends: %lname-lang = %{version}
|
Recommends: %lname-lang = %{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %lname
|
||||||
KCMUtils provides various classes to work with KCModules. KCModules can be
|
KCMUtils provides various classes to work with KCModules. KCModules can be
|
||||||
@ -66,8 +69,8 @@ Summary: Provides various classes to work with KCModules: Build Environme
|
|||||||
Group: Development/Libraries/KDE
|
Group: Development/Libraries/KDE
|
||||||
Requires: %lname = %{version}
|
Requires: %lname = %{version}
|
||||||
Requires: extra-cmake-modules
|
Requires: extra-cmake-modules
|
||||||
Requires: kconfigwidgets-devel >= %{kf5_version}
|
Requires: kconfigwidgets-devel >= %{_tar_path}
|
||||||
Requires: kservice-devel >= %{kf5_version}
|
Requires: kservice-devel >= %{_tar_path}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
KCMUtils provides various classes to work with KCModules. KCModules can be
|
KCMUtils provides various classes to work with KCModules. KCModules can be
|
||||||
@ -85,17 +88,17 @@ created with the KConfigWidgets framework. 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
|
||||||
else
|
%endif
|
||||||
touch %{name}5.lang
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if %{with lang}
|
||||||
%files -n %lname-lang -f %{name}5.lang
|
%files -n %lname-lang -f %{name}5.lang
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user