Accepting request 509529 from home:zhangxiaofei:branches:X11:RemoteDesktop

- Drop _service and _servicedata: not needed for stable releases
- Add source verification
  + Add xrdp-0.9.2.tar.gz.asc
  + Add xrdp.keyring, from the signer Idan Freiberg (@speidy on
    github)

OBS-URL: https://build.opensuse.org/request/show/509529
OBS-URL: https://build.opensuse.org/package/show/X11:RemoteDesktop/xrdp?expand=0&rev=19
This commit is contained in:
2017-07-12 09:26:35 +00:00
committed by Git OBS Bridge
parent 33bace7b32
commit 09be0e0a18
6 changed files with 64 additions and 28 deletions

View File

@@ -24,11 +24,13 @@ Summary: Remote desktop protocol (RDP) server
License: Apache-2.0 and GPL-2.0+
Group: System/X11/Utilities
Url: https://github.com/neutrinolabs/xrdp
Source0: https://github.com/neutrinolabs/xrdp/releases/download/v0.9.2/xrdp-%{version}.tar.gz
Source1: xrdp.fw
Source2: sysconfig.xrdp
Source3: force_stop
Source4: openSUSE.bmp
Source0: https://github.com/neutrinolabs/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/neutrinolabs/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
Source2: xrdp.keyring
Source3: xrdp.fw
Source4: sysconfig.xrdp
Source5: force_stop
Source6: openSUSE.bmp
Source100: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE xrdp-pam.patch - hfiguiere@novell.com refreshed by ftake@geeko.jp
Patch1: xrdp-pam.patch
@@ -121,13 +123,13 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -name '*.a' -delete
find %{buildroot} -type f -name "*.la" -delete -print
mkdir -p %{buildroot}/%{_fwdefdir}
install -m 644 %{SOURCE1} %{buildroot}/%{_fwdefdir}/xrdp
install -m 644 %{SOURCE3} %{buildroot}/%{_fwdefdir}/xrdp
mkdir -p %{buildroot}/%{_localstatedir}/adm/fillup-templates
install -m 644 %{SOURCE2} %{buildroot}/%{_localstatedir}/adm/fillup-templates/sysconfig.xrdp
install -m 644 %{SOURCE4} %{buildroot}/%{_localstatedir}/adm/fillup-templates/sysconfig.xrdp
mkdir -p %{buildroot}/%{_prefix}/lib/initscripts/legacy-actions/xrdp
install -m 755 %{SOURCE3} %{buildroot}/%{_prefix}/lib/initscripts/legacy-actions/xrdp/force_stop
install -m 755 %{SOURCE5} %{buildroot}/%{_prefix}/lib/initscripts/legacy-actions/xrdp/force_stop
%if 0%{?is_opensuse}
install %{SOURCE4} %{buildroot}%{_datadir}/%{name}/
install %{SOURCE6} %{buildroot}%{_datadir}/%{name}/
%endif
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcxrdp