forked from pool/kdeclarative
This commit is contained in:
committed by
Git OBS Bridge
parent
ed1b53f3f6
commit
2096eceacf
@@ -16,26 +16,27 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without lang
|
||||
%define lname libKF5Declarative5
|
||||
%define _tar_path 5.9
|
||||
Name: kdeclarative
|
||||
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: kconfig-devel >= %{kf5_version}
|
||||
BuildRequires: kcoreaddons-devel >= %{kf5_version}
|
||||
BuildRequires: kconfig-devel >= %{_tar_path}
|
||||
BuildRequires: kcoreaddons-devel >= %{_tar_path}
|
||||
BuildRequires: kf5-filesystem
|
||||
BuildRequires: kglobalaccel-devel >= %{kf5_version}
|
||||
BuildRequires: kguiaddons-devel >= %{kf5_version}
|
||||
BuildRequires: ki18n-devel >= %{kf5_version}
|
||||
BuildRequires: kiconthemes-devel >= %{kf5_version}
|
||||
BuildRequires: kio-devel >= %{kf5_version}
|
||||
BuildRequires: kpackage-devel >= %{kf5_version}
|
||||
BuildRequires: kwidgetsaddons-devel >= %{kf5_version}
|
||||
BuildRequires: kwindowsystem-devel >= %{kf5_version}
|
||||
BuildRequires: kglobalaccel-devel >= %{_tar_path}
|
||||
BuildRequires: kguiaddons-devel >= %{_tar_path}
|
||||
BuildRequires: ki18n-devel >= %{_tar_path}
|
||||
BuildRequires: kiconthemes-devel >= %{_tar_path}
|
||||
BuildRequires: kio-devel >= %{_tar_path}
|
||||
BuildRequires: kpackage-devel >= %{_tar_path}
|
||||
BuildRequires: kwidgetsaddons-devel >= %{_tar_path}
|
||||
BuildRequires: kwindowsystem-devel >= %{_tar_path}
|
||||
BuildRequires: libepoxy-devel
|
||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
|
||||
@@ -56,7 +57,9 @@ KDeclarative provides integration of QML and KDE workspaces.
|
||||
%package -n %lname
|
||||
Summary: Integration of QML and KDE workspaces
|
||||
Group: System/GUI/KDE
|
||||
%if %{with lang}
|
||||
Recommends: %lname-lang = %{version}
|
||||
%endif
|
||||
|
||||
%description -n %lname
|
||||
KDeclarative provides integration of QML and KDE workspaces.
|
||||
@@ -88,9 +91,9 @@ Group: Development/Libraries/KDE
|
||||
Requires: %lname = %{version}
|
||||
Requires: %{name}-components = %{version}
|
||||
Requires: extra-cmake-modules
|
||||
Requires: kconfig-devel >= %{kf5_version}
|
||||
Requires: kcoreaddons-devel >= %{kf5_version}
|
||||
Requires: kpackage-devel >= %{kf5_version}
|
||||
Requires: kconfig-devel >= %{_tar_path}
|
||||
Requires: kcoreaddons-devel >= %{_tar_path}
|
||||
Requires: kpackage-devel >= %{_tar_path}
|
||||
Requires: libKF5QuickAddons5 = %{version}
|
||||
Requires: pkgconfig(Qt5Qml) >= 5.2.0
|
||||
|
||||
@@ -110,11 +113,9 @@ Development files.
|
||||
%kf5_makeinstall -C build
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
if [ -e po ]; then
|
||||
%if %{with lang}
|
||||
%find_lang %{name}5
|
||||
else
|
||||
touch %{name}5.lang
|
||||
fi
|
||||
%endif
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
@@ -124,7 +125,9 @@ fi
|
||||
|
||||
%postun -n libKF5QuickAddons5 -p /sbin/ldconfig
|
||||
|
||||
%if %{with lang}
|
||||
%files -n %lname-lang -f %{name}5.lang
|
||||
%endif
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user