Revision 45322cd1
Added by Benoît PECCATTE over 7 years ago
ncf-api-virtualenv/SPECS/ncf-api-virtualenv.spec | ||
---|---|---|
cd %{_sourcedir}
|
||
|
||
# Build Virtualenv
|
||
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
||
# Reference for suse_version : https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||
%if 0%{?suse_version} && 0%{?suse_version} < 1200
|
||
# SLES specific exception, see http://www.rudder-project.org/redmine/issues/6365
|
||
python virtualenv-1.10.1/virtualenv.py %{real_name}
|
||
|
ncf/SPECS/ncf.spec | ||
---|---|---|
%{bindir}/ncf
|
||
|
||
# on sles11, .pyc and .pyo files are not generated, which fails with rpmbuild
|
||
%if ! 0%{?sles_version} || 0%{?sles_version} != 11
|
||
# Reference for suse_version : https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||
%if ! 0%{?suse_version} || 0%{?suse_version} >= 1200
|
||
# Avoid having .pyo and .pyc files in our package
|
||
# as they will always be regenerated
|
||
%exclude %{installdir}/ncf/tree/10_ncf_internals/modules/templates/*.pyc
|
rsyslog-suse/SPECS/rsyslog.spec | ||
---|---|---|
|
||
%build
|
||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -W -Wall"
|
||
%if 0%{?suse_version} > 1000 && 0%{?suse_version} < 1030
|
||
export CFLAGS="$CFLAGS -fstack-protector"
|
||
%endif
|
||
autoreconf -fi
|
||
%configure \
|
||
%if ! 0%{install_all_modules_in_lib}
|
rudder-agent/SPECS/rudder-agent.spec | ||
---|---|---|
|
||
## 3 - SLES: Bundled for pre-sles11 oses
|
||
##
|
||
### SLES 11 OSes come with OpenSSL 0.9.8h,
|
||
### which is recent enough.
|
||
### SLES12 has no sles_version defined, but openssl is ok too
|
||
### SLES 11 OSes come with OpenSSL 0.9.8h which is recent enough.
|
||
##
|
||
%if 0%{?sles_version} && 0%{?sles_version} < 11
|
||
# Reference for suse_version : https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||
%if 0%{?suse_version} && 0%{?suse_version} < 1100
|
||
%define use_system_openssl false
|
||
%endif
|
||
|
rudder-inventory-ldap/SPECS/rudder-inventory-ldap.spec | ||
---|---|---|
|
||
#Specific requirements
|
||
|
||
%if 0%{?sles_version} && 0%{?sles_version} == 10
|
||
# Reference for suse_version : https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||
%if 0%{?suse_version} && 0%{?suse_version} < 1100
|
||
BuildRequires: openssl-devel
|
||
%endif
|
||
|
||
%if 0%{?sles_version} && 0%{?sles_version} == 11
|
||
BuildRequires: libopenssl-devel
|
||
%endif
|
||
|
||
## See at: https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||
## SLE 12 => %if 0%{?suse_version} == 1315 (but could also be Leap 42.1*)
|
||
%if 0%{?suse_version} && 0%{?suse_version} == 1315
|
||
%if 0%{?suse_version} && 0%{?suse_version} >= 1100
|
||
BuildRequires: libopenssl-devel
|
||
%endif
|
||
|
rudder-reports/SPECS/rudder-reports.spec | ||
---|---|---|
Requires: postgresql-server >= 8.4
|
||
Requires: rsyslog >= 4
|
||
|
||
%if 0%{?sles_version} && 0%{?sles_version} == 10
|
||
Requires: %{suse_rsyslog_pgsql} >= 4
|
||
%endif
|
||
|
||
%if 0%{?sles_version} && 0%{?sles_version} == 11
|
||
# Reference for suse_version : https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||
%if 0%{?suse_version} && 0%{?suse_version} < 1200
|
||
Requires: %{suse_rsyslog_pgsql} >= 4
|
||
%endif
|
||
|
rudder-server-relay/SPECS/rudder-server-relay.spec | ||
---|---|---|
cd %{_sourcedir}/relay-api
|
||
|
||
# Build Virtualenv
|
||
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
||
%if 0%{?suse_version} && 0%{?suse_version} < 1200
|
||
# SLES specific exception, see http://www.rudder-project.org/redmine/issues/6365
|
||
python virtualenv-1.10.1/virtualenv.py flask
|
||
|
||
... | ... | |
%{rudderdir}/share/relay-api/
|
||
|
||
# on sles11, .pyc and .pyo files are not generated, which fails with rpmbuild
|
||
%if ! 0%{?sles_version} || 0%{?sles_version} != 11
|
||
# Reference for suse_version : https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||
%if ! 0%{?suse_version} || 0%{?suse_version} >= 1200
|
||
# Avoid having .pyo and .pyc files in our package
|
||
# as they will always be regenerated
|
||
%exclude %(find %{rudderdir}/share/relay-api/ -type f -name '*.pyc')
|
rudder-webapp/SPECS/rudder-webapp.spec | ||
---|---|---|
%define syslogservicename syslog
|
||
%define apache_vhost_dir %{apache}/vhosts.d
|
||
%define ldap_clients openldap2-client
|
||
## suse_version 1315 is SLES12 (but could also be Leap 42.1*)
|
||
%if 0%{?suse_version} >= 1315
|
||
# Reference for suse_version : https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||
%if 0%{?suse_version} >= 1200
|
||
%define usermod_opt aG
|
||
%else
|
||
%define usermod_opt A
|
Also available in: Unified diff
Fixes #9919: use suse_version instead of sles_version during build