# norootforbuild Name: mono-debugger License: GNU General Public License (GPL), X11/MIT Group: Development/Languages/Other Summary: Mono Debugger URL: http://www.mono-project.com/Debugger Version: 0.60 Release: 0.novell BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %{name}-%{version}.tar.bz2 Patch0: mono-debugger_libedit_cast.patch Provides: mono-debugger = %{version}-%{release} ExclusiveArch: %ix86 x86_64 Requires: mono-core >= 1.1.16 BuildRequires: mono-devel mono-nunit # For older distros (but are harmless for new distros) BuildRequires: pkgconfig mono-web #### suse options ### %if 0%{?suse_version} # factory needed this... ? # All distro versions need it, but it was installed by default up until 10.3 %if %{suse_version} > 1020 BuildRequires: ncurses-devel %endif # For SLES9 %if %sles_version == 9 %define configure_options export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/%_lib/pkgconfig BuildRequires: pkgconfig %endif %endif # Fedora options (Bug in fedora images where 'abuild' user is the same id as 'nobody') %if 0%{?fedora_version} %define env_options export MONO_SHARED_DIR=/tmp # Note: this fails to build on fedora5 x86_64 because of this bug: # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=189324 %endif %description A debugger is an important tool for development. The Mono Debugger (MDB) can debug both managed and unmanaged applications. It provides a reusable library that can be used to add debugger functionality to different front-ends. The debugger package includes a console debugger named "mdb", and MonoDevelop (http://www.monodevelop.com) provides a GUI interface to the debugger. Authors: -------- Martin Baulig Chris Toshok Miguel de Icaza %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog README README.FreeBSD README.build TODO NEWS RELEASE-NOTES* /usr/bin/mdb %{_libdir}/*.so* %{_libdir}/*.a %{_libdir}/*.la %{_prefix}/lib/mono/1.0/* %{_prefix}/lib/mono/gac/Mono.Debugger %{_prefix}/lib/mono/gac/Mono.Debugger.Cecil %{_prefix}/lib/mono/gac/Mono.Debugger.Backend %{_prefix}/lib/mono/mono-debugger %{_libdir}/pkgconfig/mono-debugger.pc %debug_package %prep %setup -q -n mono-debugger-%{version} %patch0 %build %{?env_options} %{?configure_options} %configure make %install %{?env_options} make DESTDIR="$RPM_BUILD_ROOT" install %clean rm -rf ${RPM_BUILD_ROOT} %post /sbin/ldconfig %postun /sbin/ldconfig # auto dep/req generation for older distros (it will take a while for the .config scanning to get upstream) %if 0%{?suse_version} <= 1040 || 0%{?fedora_version} <= 7 %if 0%{?fedora_version} # Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros) %define _use_internal_dependency_generator 0 %endif %define __find_provides env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq' %define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq' %endif %changelog