Accepting request 244393 from KDE:Frameworks5
Update to 5.1.0 OBS-URL: https://build.opensuse.org/request/show/244393 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kdesu?expand=0&rev=6
This commit is contained in:
commit
5a3a3f7f2c
18
fpie.patch
Normal file
18
fpie.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff --git a/src/kdesud/CMakeLists.txt b/src/kdesud/CMakeLists.txt
|
||||||
|
index 1276a55..998f9e0 100644
|
||||||
|
--- a/src/kdesud/CMakeLists.txt
|
||||||
|
+++ b/src/kdesud/CMakeLists.txt
|
||||||
|
@@ -17,10 +17,9 @@ ecm_mark_nongui_executable(kdesud)
|
||||||
|
|
||||||
|
target_link_libraries(kdesud KF5::Su KF5::I18n ${X11_LIBRARIES})
|
||||||
|
|
||||||
|
-if(KDE4_ENABLE_FPIE)
|
||||||
|
- macro_add_compile_flags(kdesud ${KDE4_CXX_FPIE_FLAGS})
|
||||||
|
- macro_add_link_flags(kdesud ${KDE4_PIE_LDFLAGS})
|
||||||
|
-endif()
|
||||||
|
+set_property(TARGET kdesud APPEND_STRING PROPERTY COMPILE_FLAGS " -fPIE")
|
||||||
|
+
|
||||||
|
+set_property(TARGET kdesud APPEND_STRING PROPERTY LINK_FLAGS " -pie")
|
||||||
|
|
||||||
|
########### install files ###############
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5203321254e16dd2986e7fbedc92c2914384d5938d53ad364413c4681256be23
|
|
||||||
size 36748
|
|
3
kdesu-5.1.0.tar.xz
Normal file
3
kdesu-5.1.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ed1e2b5339c12c0ea0b327c8397b6a755da86ac6fb17078d7bc42b086865e4ea
|
||||||
|
size 36700
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 2 10:19:59 UTC 2014 - hrvoje.senjan@gmail.com
|
||||||
|
|
||||||
|
- Update to 5.1.0
|
||||||
|
* For more details please see:
|
||||||
|
http://www.kde.org/announcements/kde-frameworks-5.1.php
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 26 10:00:31 UTC 2014 - hrvoje.senjan@gmail.com
|
||||||
|
|
||||||
|
- Add fpie.patch, to make kdesud link with -fPIE flag
|
||||||
|
- Add %verifyscript and adjust permission for kdesud libexec, now
|
||||||
|
that permissions are whitelisted
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 11 09:48:41 UTC 2014 - hrvoje.senjan@gmail.com
|
Fri Jul 11 09:48:41 UTC 2014 - hrvoje.senjan@gmail.com
|
||||||
|
|
||||||
|
22
kdesu.spec
22
kdesu.spec
@ -18,11 +18,11 @@
|
|||||||
|
|
||||||
%define lname libKF5Su5
|
%define lname libKF5Su5
|
||||||
Name: kdesu
|
Name: kdesu
|
||||||
Version: 5.0.0
|
Version: 5.1.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 >= 1.0.0
|
BuildRequires: extra-cmake-modules >= 1.1.0
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: kcoreaddons-devel >= %{kf5_version}
|
BuildRequires: kcoreaddons-devel >= %{kf5_version}
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
@ -36,6 +36,8 @@ Group: System/GUI/KDE
|
|||||||
Url: http://www.kde.org
|
Url: http://www.kde.org
|
||||||
Source: http://download.kde.org/stable/frameworks/%{version}/%{name}-%{version}.tar.xz
|
Source: http://download.kde.org/stable/frameworks/%{version}/%{name}-%{version}.tar.xz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
|
# PATCH-FIX-OPENSUSE fpie.patch -- make kdesud compile/link with -(f)pie flags
|
||||||
|
Patch0: fpie.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -46,6 +48,7 @@ kdessh use it to interface with su and ssh respectively.
|
|||||||
%package -n %lname
|
%package -n %lname
|
||||||
Summary: User interface for running shell commands with root privileges
|
Summary: User interface for running shell commands with root privileges
|
||||||
Group: System/GUI/KDE
|
Group: System/GUI/KDE
|
||||||
|
PreReq: permissions
|
||||||
Obsoletes: libKF5Su4
|
Obsoletes: libKF5Su4
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %lname
|
||||||
@ -69,6 +72,7 @@ Development files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake_kf5 -d build
|
%cmake_kf5 -d build
|
||||||
@ -78,16 +82,26 @@ Development files.
|
|||||||
%kf5_makeinstall -C build
|
%kf5_makeinstall -C build
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%if 0%{?suse_version} <= 1310
|
||||||
|
# we need this for older oS releases; only Factory/13.2 has the whitelist
|
||||||
|
echo "setBadness('permissions-file-setuid-bit', 0)" > $RPM_SOURCE_DIR/%name-rpmlintrc
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post -n %lname
|
||||||
|
/sbin/ldconfig
|
||||||
|
%set_permissions %{_kf5_libexecdir}/kdesud
|
||||||
|
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%verifyscript -n %lname
|
||||||
|
%verify_permissions -e %{_kf5_libexecdir}/kdesud
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc COPYING* README*
|
%doc COPYING* README*
|
||||||
%{_kf5_libdir}/libKF5Su.so.*
|
%{_kf5_libdir}/libKF5Su.so.*
|
||||||
%{_kf5_libexecdir}/kdesu_stub
|
%{_kf5_libexecdir}/kdesu_stub
|
||||||
%{_kf5_libexecdir}/kdesud
|
%verify(not mode) %attr(2755,root,nogroup) %{_kf5_libexecdir}/kdesud
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user