Hrvoje Senjan 2015-04-10 16:26:13 +00:00 committed by Git OBS Bridge
parent c083fc4c74
commit 0b7ec48ee4

View File

@ -16,20 +16,21 @@
#
%bcond_without lang
%define lname libKF5Su5
%define _tar_path 5.9
Name: kdesu
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: ki18n-devel >= %{kf5_version}
BuildRequires: kpty-devel >= %{kf5_version}
BuildRequires: kservice-devel >= %{kf5_version}
BuildRequires: ki18n-devel >= %{_tar_path}
BuildRequires: kpty-devel >= %{_tar_path}
BuildRequires: kservice-devel >= %{_tar_path}
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(x11)
Summary: User interface for running shell commands with root privileges
@ -52,7 +53,9 @@ Summary: User interface for running shell commands with root privileges
Group: System/GUI/KDE
PreReq: permissions
Obsoletes: libKF5Su4
%if %{with lang}
Recommends: %lname-lang = %{version}
%endif
%description -n %lname
libkdesu provides functionality for building GUI front ends for
@ -64,8 +67,8 @@ Summary: User interface for running shell commands with root privileges
Group: Development/Libraries/KDE
Requires: %lname = %{version}
Requires: extra-cmake-modules
Requires: kpty-devel >= %{kf5_version}
Requires: kservice-devel >= %{kf5_version}
Requires: kpty-devel >= %{_tar_path}
Requires: kservice-devel >= %{_tar_path}
%description devel
libkdesu provides functionality for building GUI front ends for
@ -91,11 +94,9 @@ Development files.
echo "setBadness('permissions-file-setuid-bit', 0)" > $RPM_SOURCE_DIR/%name-rpmlintrc
%endif
if [ -e po ]; then
%if %{with lang}
%find_lang kdesud5 %{name}.lang
else
touch %{name}.lang
fi
%endif
%post -n %lname
/sbin/ldconfig
@ -106,7 +107,9 @@ fi
%verifyscript -n %lname
%verify_permissions -e %{_kf5_libexecdir}/kdesud
%if %{with lang}
%files -n %lname-lang -f %{name}.lang
%endif
%files -n %lname
%defattr(-,root,root)