Hrvoje Senjan 2015-04-10 16:28:32 +00:00 committed by Git OBS Bridge
parent 12364fdca3
commit 4681712a14

View File

@ -16,19 +16,22 @@
#
%bcond_without lang
%define lname libKF5Auth5
%define _tar_path 5.9
Name: kauth
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: kcoreaddons-devel >= %{kf5_version}
BuildRequires: kcoreaddons-devel >= %{_tar_path}
BuildRequires: kf5-filesystem
BuildRequires: libpolkit-qt5-1-devel
%if %{with lang}
BuildRequires: libqt5-linguist-devel >= 5.2.0
%endif
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
Summary: Framework which lets applications perform actions as a privileged user
@ -46,7 +49,9 @@ KAuth is a framework to let applications perform actions as a privileged user.
Summary: Framework which lets applications perform actions as a privileged user
Group: System/GUI/KDE
Obsoletes: libKF5Auth4
%if %{with lang}
Recommends: %lname-lang = %{version}
%endif
%description -n %lname
KAuth is a framework to let applications perform actions as a privileged user.
@ -56,7 +61,7 @@ Summary: Framework which lets applications perform actions as a privilege
Group: Development/Libraries/KDE
Requires: %lname = %{version}
Requires: extra-cmake-modules
Requires: kcoreaddons-devel >= %{kf5_version}
Requires: kcoreaddons-devel >= %{_tar_path}
%description devel
KAuth is a framework to let applications perform actions as a privileged user.
@ -72,13 +77,11 @@ Development files.
%install
%kf5_makeinstall -C build
%fdupes %{buildroot}%{_kf5_sharedir}
%fdupes -s %{buildroot}
if [ -e po ]; then
%if %{with lang}
%find_lang %{name}5 --with-qt --without-mo
else
touch %{name}5.lang
fi
%endif
%if 0%{?suse_version} <= 1310
# we need this for older oS releases; only Factory/13.2 has the whitelist
@ -89,7 +92,9 @@ echo "setBadness('suse-dbus-unauthorized-service', 0)" > $RPM_SOURCE_DIR/%name-r
%postun -n %lname -p /sbin/ldconfig
%if %{with lang}
%files -n %lname-lang -f %{name}5.lang
%endif
%files -n %lname
%defattr(-,root,root)