Define the source URL differently in the case of a release candidate.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=337
This commit is contained in:
Lars Müller
2013-09-03 17:42:52 +00:00
committed by Git OBS Bridge
parent 597cdb3a52
commit 0c35275074
4 changed files with 16 additions and 6 deletions

View File

@@ -107,6 +107,11 @@ BuildRequires: libxslt-tools
%endif
%define samba_ver 4.1.0
%define samba_ver_suffix rc2
%if "%{samba_ver_suffix}" == ""
%define samba_source_location http://ftp.samba.org/pub/samba/stable/samba-%{version}.tar.gz
%else
%define samba_source_location http://ftp.samba.org/pub/samba/rc/samba-%{version}%{samba_ver_suffix}.tar.gz
%endif
%define samba_ver_full %{samba_ver}%{samba_ver_suffix}
%if 0%{?suse_version} && 0%{?suse_version} < 1111
%define guards_symbols pre_1111
@@ -125,7 +130,7 @@ BuildRequires: libxslt-tools
%else
%define build_make_smp_mflags %{?jobs:-j%jobs}
%endif
%define SOURCE_TIMESTAMP 3074
%define SOURCE_TIMESTAMP 3075
%define BRANCH %{version}
%global with_mitkrb5 1
%global with_dc 0
@@ -146,7 +151,7 @@ Recommends: cron
Recommends: logrotate
%endif
Summary: A SMB/CIFS File, Print, and Authentication Server
Source: http://samba.org/samba/ftp/samba-%{version}%{samba_ver_suffix}.tar.gz
Source: %{samba_source_location}
Source1: vendor-files.tar.bz2
Source2: patches.tar.bz2
Source4: baselibs.conf