Merge
authorRichard W.M. Jones <rjones@redhat.com>
Sun, 21 Sep 2008 10:40:42 +0000 (11:40 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 21 Sep 2008 10:40:42 +0000 (11:40 +0100)
gcc/mingw-gcc.spec
gdb/mingw-gdb.spec

index 21c2a9d..b60cfa4 100644 (file)
@@ -1,6 +1,8 @@
+%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
+
 Name:           mingw-gcc
 Version:        4.3.2
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        MinGW Windows cross-compiler (GCC) for C
 
 License:        GPLv2+
@@ -162,10 +164,7 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Thu Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.1-5
-- Remove __os_install_post, I think it's just left over from earlier.
-
-* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.1-4
+* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.1-6
 - Use RPM macros from mingw-filesystem.
 
 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.1-3
index f84ecee..b5b547d 100644 (file)
@@ -1,6 +1,12 @@
+%define __strip %{_mingw_strip}
+%define __objdump %{_mingw_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw_findrequires}
+%define __find_provides %{_mingw_findprovides}
+
 Name:           mingw-gdb
 Version:        6.8
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        MinGW port of the GNU debugger (gdb)
 
 License:        GPLv2+
@@ -13,11 +19,6 @@ Patch0:         mingw-gdb-6.8-no-getcwd-error.patch
 
 BuildRequires:  mingw-filesystem >= 23
 BuildRequires:  flex
-BuildRequires:  chrpath
-
-Requires:       mingw-filesystem >= 23
-Requires:       mingw-binutils
-Requires:       mingw-runtime
 
 
 %description
@@ -33,17 +34,16 @@ executables.
 
 
 %build
-CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# Using echo normalizes spaces between the flags.
+PKG_CONFIG_PATH="%{_mingw_libdir}/pkgconfig" \
+CC="%{_mingw_cc}" \
+CFLAGS=`echo %{_mingw_cflags}` \
 ./configure \
-  --prefix=%{_prefix} \
-  --bindir=%{_bindir} \
-  --includedir=%{_includedir} \
-  --libdir=%{_libdir} \
-  --mandir=%{_mandir} \
-  --infodir=%{_infodir} \
-  --datadir=%{_datadir} \
-  --build=%_build --host=%_host \
-  --target=%{_mingw_target}
+  --build=%_build --host=%{_mingw_host} --target=%{_mingw_target} \
+  --prefix=%{_mingw_prefix} \
+  --infodir=%{_mingw_datadir}/info \
+  --mandir=%{_mingw_mandir}
+
 make
 
 
@@ -51,14 +51,6 @@ make
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 
-# Remove files that clash with other installed stuff.
-rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
-rm -rf $RPM_BUILD_ROOT%{_infodir}/*
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
-
-# Remove rpaths
-chrpath --delete $RPM_BUILD_ROOT%{_bindir}/*
-
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -66,11 +58,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%{_bindir}/i686-pc-mingw32-gdb
-%{_bindir}/i686-pc-mingw32-gdbtui
-%{_mandir}/man1/*.1*
+%{_mingw_bindir}/gdb.exe
+%{_mingw_bindir}/gdbserver.exe
+%{_mingw_libdir}/libbfd.a
+%{_mingw_libdir}/libbfd.la
+%{_mingw_libdir}/libiberty.a
+%{_mingw_libdir}/libopcodes.a
+%{_mingw_libdir}/libopcodes.la
+%{_mingw_includedir}/*
+%{_mingw_datadir}/info/*
+%{_mingw_mandir}/man1/*.1*
+%{_mingw_datadir}/locale/*/LC_MESSAGES/*
 
 
 %changelog
-* Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 6.8-1
+* Fri Sep 12 2008 Richard W.M. Jones <rjones@redhat.com> - 6.8-2
 - Initial RPM release.