Skip to content

Commit

Permalink
[api][webui] spec file: Cleanup distribution depending conditions
Browse files Browse the repository at this point in the history
This splits up nested conditions into smaller chunks, which hopefully
helps to increase readability.
  • Loading branch information
bgeuken committed Apr 6, 2016
1 parent 257d233 commit 06a975a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dist/obs-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,18 @@ Requires: bash
Requires: binutils
Requires: bsdtar
Summary: The Open Build Service -- Build Host Component
%if 0%{?suse_version}
%if 0%{?suse_version} < 1210
%if 0%{?suse_version} && 0%{?suse_version} < 1210
Group: Productivity/Networking/Web/Utilities
%endif
%if 0%{?suse_version}
PreReq: %insserv_prereq
%endif
%if 0%{?suse_version} <= 1030
Requires: lzma
%endif
Requires: util-linux >= 2.16
# the following may not even exist depending on the architecture
Recommends: powerpc32
Recommends: powerpc32

%description -n obs-worker
This is the obs build host, to be installed on each machine building
Expand All @@ -163,10 +163,10 @@ run a local playground test installation.

%package -n obs-common
Summary: The Open Build Service -- base configuration files
%if 0%{?suse_version}
%if 0%{?suse_version} < 1210
%if 0%{?suse_version} && 0%{?suse_version} < 1210
Group: Productivity/Networking/Web/Utilities
%endif
%if 0%{?suse_version}
PreReq: %fillup_prereq
%endif

Expand All @@ -175,16 +175,16 @@ This is a package providing basic configuration files.

%package -n obs-api
Summary: The Open Build Service -- The API and WEBUI
%if 0%{?suse_version}
%if 0%{?suse_version} < 1210
%if 0%{?suse_version} && 0%{?suse_version} < 1210
Group: Productivity/Networking/Web/Utilities
%endif
%if 0%{?suse_version}
PreReq: %insserv_prereq
Requires: obs-common
%endif

#For apache
Requires: apache2 apache2-mod_xforward rubygem-passenger-apache2
Requires: apache2 apache2-mod_xforward rubygem-passenger-apache2
# enforce passenger update to ruby 2.3 stack without requiring it
Conflicts: ruby2.1-rubygem-passenger
Conflicts: ruby2.2-rubygem-passenger
Expand Down

0 comments on commit 06a975a

Please sign in to comment.