This commit is contained in:
parent
c083fc4c74
commit
0b7ec48ee4
27
kdesu.spec
27
kdesu.spec
@ -16,20 +16,21 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without lang
|
||||||
%define lname libKF5Su5
|
%define lname libKF5Su5
|
||||||
%define _tar_path 5.9
|
%define _tar_path 5.9
|
||||||
Name: kdesu
|
Name: kdesu
|
||||||
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: kcoreaddons-devel >= %{kf5_version}
|
BuildRequires: kcoreaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
BuildRequires: ki18n-devel >= %{kf5_version}
|
BuildRequires: ki18n-devel >= %{_tar_path}
|
||||||
BuildRequires: kpty-devel >= %{kf5_version}
|
BuildRequires: kpty-devel >= %{_tar_path}
|
||||||
BuildRequires: kservice-devel >= %{kf5_version}
|
BuildRequires: kservice-devel >= %{_tar_path}
|
||||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
Summary: User interface for running shell commands with root privileges
|
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
|
Group: System/GUI/KDE
|
||||||
PreReq: permissions
|
PreReq: permissions
|
||||||
Obsoletes: libKF5Su4
|
Obsoletes: libKF5Su4
|
||||||
|
%if %{with lang}
|
||||||
Recommends: %lname-lang = %{version}
|
Recommends: %lname-lang = %{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %lname
|
||||||
libkdesu provides functionality for building GUI front ends for
|
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
|
Group: Development/Libraries/KDE
|
||||||
Requires: %lname = %{version}
|
Requires: %lname = %{version}
|
||||||
Requires: extra-cmake-modules
|
Requires: extra-cmake-modules
|
||||||
Requires: kpty-devel >= %{kf5_version}
|
Requires: kpty-devel >= %{_tar_path}
|
||||||
Requires: kservice-devel >= %{kf5_version}
|
Requires: kservice-devel >= %{_tar_path}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
libkdesu provides functionality for building GUI front ends for
|
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
|
echo "setBadness('permissions-file-setuid-bit', 0)" > $RPM_SOURCE_DIR/%name-rpmlintrc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
if [ -e po ]; then
|
%if %{with lang}
|
||||||
%find_lang kdesud5 %{name}.lang
|
%find_lang kdesud5 %{name}.lang
|
||||||
else
|
%endif
|
||||||
touch %{name}.lang
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post -n %lname
|
%post -n %lname
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -106,7 +107,9 @@ fi
|
|||||||
%verifyscript -n %lname
|
%verifyscript -n %lname
|
||||||
%verify_permissions -e %{_kf5_libexecdir}/kdesud
|
%verify_permissions -e %{_kf5_libexecdir}/kdesud
|
||||||
|
|
||||||
|
%if %{with lang}
|
||||||
%files -n %lname-lang -f %{name}.lang
|
%files -n %lname-lang -f %{name}.lang
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user