This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository x2goserver. from f6b52a6 x2goserver.spec: pull in shared-mime-info as a build requirement only on *SuSE and add comment regarding why desktop-file-utils is always needed. new ead30c1 x2goserver.spec: also add a trans(action)-requirement on shared-mime-info for older RHEL-based distros. new 23cf5d1 x2goserver.spec: RPM spec does not allow %elif or %elseif, which lead to all weird kinds of errors. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 4 ++++ x2goserver.spec | 22 +++++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) -- Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goserver. commit ead30c1ed1311704b383b9354979a6cf7ea56e37 Author: Mihai Moldovan <ionic@ionic.de> Date: Tue Mar 7 06:16:08 2017 +0100 x2goserver.spec: also add a trans(action)-requirement on shared-mime-info for older RHEL-based distros. Cherry-picked from release/4.0.1.x branch. --- debian/changelog | 2 ++ x2goserver.spec | 3 +++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index baf7073..a955bf0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -285,6 +285,8 @@ x2goserver (4.0.1.21-0x2go1) UNRELEASED; urgency=medium - More platform-specific condition fixup. - Pull in shared-mime-info as a build requirement only on *SuSE and add comment regarding why desktop-file-utils is always needed. + - Also add a trans(action)-requirement on shared-mime-info for older + RHEL-based distros. * debian/po: - Tiny fixup on author name. * debian/control: diff --git a/x2goserver.spec b/x2goserver.spec index 26788db..b96f96e 100644 --- a/x2goserver.spec +++ b/x2goserver.spec @@ -467,6 +467,9 @@ Requires: xdg-utils %if 0%{?suse_version} || ( 0%{?fedora} && 0%{?fedora} < 25 ) || ( 0%{?rhel} && 0%{?rhel} < 8 ) Requires(post): desktop-file-utils Requires(postun): desktop-file-utils +%if ( 0%{?fedora} && 0%{?fedora} < 24 ) || ( 0%{?rhel} && 0%{?rhel} < 8 ) +Requires(trans): shared-mime-info +%endif %endif %if 0%{?fedora} || 0%{?rhel} Group: Applications/Communications -- Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goserver. commit 23cf5d129a951947528c594ee72332e778444a57 Author: Mihai Moldovan <ionic@ionic.de> Date: Tue Mar 7 06:57:48 2017 +0100 x2goserver.spec: RPM spec does not allow %elif or %elseif, which lead to all weird kinds of errors. Split these up into nested conditions. Cherry-picked from release/4.0.1.x branch. --- debian/changelog | 2 ++ x2goserver.spec | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index a955bf0..48fe8d5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -287,6 +287,8 @@ x2goserver (4.0.1.21-0x2go1) UNRELEASED; urgency=medium comment regarding why desktop-file-utils is always needed. - Also add a trans(action)-requirement on shared-mime-info for older RHEL-based distros. + - RPM spec does not allow %elif or %elseif, which lead to all weird kinds + of errors. Split these up into nested conditions. * debian/po: - Tiny fixup on author name. * debian/control: diff --git a/x2goserver.spec b/x2goserver.spec index b96f96e..662652c 100644 --- a/x2goserver.spec +++ b/x2goserver.spec @@ -676,15 +676,17 @@ mkdir -p "/var/cache/gio-2.0" # is always triggered - even on operating systems for which it should not be triggered. # For example, this branch would be taken on Fedora >= 24 if using a plain "0%{?rhel} < 8" # condition, since this ("0 < 8") would be true on a Fedora system. -%elif 0%{?suse_version} || ( 0%{?fedora} && 0%{?fedora} < 24 ) || ( 0%{?rhel} && 0%{?rhel} < 8 ) +%else +%if 0%{?suse_version} || ( 0%{?fedora} && 0%{?fedora} < 24 ) || ( 0%{?rhel} && 0%{?rhel} < 8 ) /usr/bin/update-mime-database %{_datadir}/mime &1>/dev/null 2>/dev/null || : /usr/bin/update-desktop-database &1>/dev/null 2>/dev/null || : -%elif 0{?fedora} && 0%{?fedora} < 25 +%else +%if 0%{?fedora} && 0%{?fedora} < 25 /usr/bin/update-desktop-database &1>/dev/null 2>/dev/null || : # FC 24 and higher have deprecated the mime database update scriptlet and handle changes transparently. # FC 25 and higher have deprecated the desktop database update scriptlet and handle changes transparently. -%else -DELIBERATE_SYNTAX_ERROR_FOR_SUSE_TESTING +%endif +%endif %endif %postun fmbindings @@ -694,16 +696,19 @@ if [ $1 -eq 0 ] ; then %mime_database_postun %desktop_database_postun -%elif 0%{?suse_version} || ( 0%{?fedora} && 0%{?fedora} < 24 ) || ( 0%{?rhel} && 0%{?rhel} < 8 ) +%else +%if 0%{?suse_version} || ( 0%{?fedora} && 0%{?fedora} < 24 ) || ( 0%{?rhel} && 0%{?rhel} < 8 ) /usr/bin/update-mime-database %{_datadir}/mime &1>/dev/null 2>/dev/null || : /usr/bin/update-desktop-database &1>/dev/null 2>/dev/null || : -%elif 0{?fedora} && 0%{?fedora} < 25 +%else +%if 0%{?fedora} && 0%{?fedora} < 25 /usr/bin/update-desktop-database &1>/dev/null 2>/dev/null || : # Check the post scriptlet for more information. %else # Need to have at least one command, do nothing. : - DELIBERATE_SYNTAX_ERROR_FOR_SUSE_TESTING_2 +%endif +%endif %endif fi -- Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git