Change the CVS download path to include the module and tag/date.

This commit is contained in:
Chris Johns
2013-04-25 15:06:20 +10:00
parent 1a3c484619
commit c65b9eb7ec
3 changed files with 39 additions and 7 deletions

View File

@@ -6,6 +6,15 @@
%include %{_configdir}/checks.cfg
#
# Select Snapshot Macro Maps
#
%select gdb-snapshot
%select expat-snapshot
#
# The description.
#
Name: %{_target}-gdb-%{gdb_version}-%{release}
Summary: GDB v%{gdb_version} for target %{_target} on host %{_host}
Version: %{gdb_version}
@@ -33,8 +42,9 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
# Prepare the source code.
#
%prep
source_dir_0="gdb-%{gdb_version}"
%setup -q -c -n %{name}-%{version}
cd gdb-%{gdb_version}
cd ${source_dir_0}
%{?patch0:%patch0 %{?patch0_opts:%{patch0_opts}}%{!?patch0_opts:-p1}}
%{?patch1:%patch1 %{?patch1_opts:%{patch1_opts}}%{!?patch1_opts:-p1}}
%{?patch2:%patch2 %{?patch2_opts:%{patch2_opts}}%{!?patch2_opts:-p1}}
@@ -61,7 +71,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
LIBS_STATIC="-lexpat"
CFLAGS="$SB_OPT_FLAGS" \
LIBS="%{_forced_static}" \
../gdb-%{gdb_version}/configure \
../${source_dir_0}/configure \
--build=%{_build} --host=%{_host} \
--target=%{_target} \
--verbose --disable-nls \

View File

@@ -1,4 +1,4 @@
[gdb-snapshot]
GDB_Version: none, override, ' gdb-7.6-branch'
GDB_Version: none, override, '7.6-branch'
Source0: none, override, 'cvs://pserver:anoncvs@sourceware.org/cvs/src?module=gdb?src-prefix=src?tag=gdb_7_6-branch'
Patch0: none, undefine, ''