Group :: Development/Other
RPM: monodevelop
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# vim: set ft=spec: -*- rpm-spec -*-
# TODO:
# * mono-debugger mono-ikvm boo
%define svnver 20071121
%def_disable svnsource
%def_enable versioncontrol
%def_disable subversion
%def_enable monoextensions
%def_enable aspnet
%def_enable gtksourceview2
%if_enabled aspnet
%def_enable aspnetedit
%endif
Name: monodevelop
Version: 1.0
%if_enabled svnsource
Release: alt0.%svnver
%else
Release: alt2
%endif
Summary: MonoDevelop is a project to port SharpDevelop to Gtk#.
License: GPLv2+
Group: Development/Other
Packager: Mono Maintainers Team <mono at packages.altlinux.org>
URL: http://www.monodevelop.org/
%if_enabled svnsource
Source: %name.tar.bz2
%else
Source: http://go-mono.com/sources/%name/%name-%version.tar.bz2
%endif
Patch: %name-0.12-alt-makefiles.patch
Patch1: %name-0.17-alt-firefox.patch
Patch2: %name-0.18-alt-unreq-libglib-2.0.so.patch
Patch3: %name-0.19-alt-use-system-cecil.patch
Requires: desktop-file-utils
Requires: firefox
Requires: libgnomeui
Requires(post,postun): shared-mime-info
BuildPreReq: rpm-build-mono rpm-build-firefox mono-mcs
BuildPreReq: mono-devel >= 1.1.4
BuildPreReq: libgtk-sharp2-devel >= 2.4.2
BuildPreReq: libgecko-sharp2-devel >= 0.10
BuildPreReq: monodoc >= 1.0
BuildRequires: intltool libgnome-sharp-devel mono-addins mono-mcs mono-web mono-winforms
BuildRequires: desktop-file-utils mono-nunit perl-XML-Parser shared-mime-info intltool
BuildRequires: zip
BuildRequires: /proc
%if_enabled aspnetedit
# BuildRequires: libjscall-sharp-devel
BuildRequires: firefox-devel xsp
%endif
%if_enabled gtksourceview2
BuildPreReq: libgnome-desktop-sharp-devel >= 2.20
%else
BuildPreReq: libgtksourceview1-sharp-devel >= 0.10
%endif
%description
This is MonoDevelop which is intended to be a full-featured
integrated development environment (IDE) for mono and Gtk#.
It was originally a port of SharpDevelop 0.98.
%prep
%setup -q -n %name-%version
%patch1 -p1 -b .firefox
%patch2 -p1
%patch3 -p1
subst "s|^pkgconfigdir *= ..prefix./lib/pkgconfig|pkgconfigdir = %_pkgconfigdir|" \
Makefile.{am,in}
%build
%if_enabled svnsource
glib-gettextize --force --copy
intltoolize --force --copy --automake
%__libtoolize
%__aclocal
%__autoconf
%__autoheader
%__automake -a -c --foreign
%endif
%__autoreconf
export PKG_CONFIG_PATH=%_pkgconfigdir MOZILLA_HOME=%_libdir/firefox
%configure %{subst_enable versioncontrol} \
%{subst_enable monoextensions} \
%{subst_enable aspnet} \
%{subst_enable aspnetedit} \
--enable-c \
--enable-gnomeplatform \
%{subst_enable gtksourceview2} \
%{subst_enable subversion} \
--disable-update-mimedb \
--disable-update-desktopdb
%make
%install
%make_install DESTDIR=%buildroot install
%find_lang %name
%files -f %name.lang
%doc AUTHORS COPYING ChangeLog INSTALL README
%_bindir/*
%_prefix/lib/%name
%_pkgconfigdir/*.pc
%_datadir/applications/%name.desktop
%_iconsdir/hicolor/??x??/apps/%{name}*.png
%_iconsdir/hicolor/scalable/apps/%{name}*.svg
%_datadir/mime/packages/*
%_man1dir/*
%post
%update_mimedb
%update_desktopdb
%postun
%clean_desktopdb
%clean_mimedb
%changelog
…
Full changelog you can see here
# TODO:
# * mono-debugger mono-ikvm boo
%define svnver 20071121
%def_disable svnsource
%def_enable versioncontrol
%def_disable subversion
%def_enable monoextensions
%def_enable aspnet
%def_enable gtksourceview2
%if_enabled aspnet
%def_enable aspnetedit
%endif
Name: monodevelop
Version: 1.0
%if_enabled svnsource
Release: alt0.%svnver
%else
Release: alt2
%endif
Summary: MonoDevelop is a project to port SharpDevelop to Gtk#.
License: GPLv2+
Group: Development/Other
Packager: Mono Maintainers Team <mono at packages.altlinux.org>
URL: http://www.monodevelop.org/
%if_enabled svnsource
Source: %name.tar.bz2
%else
Source: http://go-mono.com/sources/%name/%name-%version.tar.bz2
%endif
Patch: %name-0.12-alt-makefiles.patch
Patch1: %name-0.17-alt-firefox.patch
Patch2: %name-0.18-alt-unreq-libglib-2.0.so.patch
Patch3: %name-0.19-alt-use-system-cecil.patch
Requires: desktop-file-utils
Requires: firefox
Requires: libgnomeui
Requires(post,postun): shared-mime-info
BuildPreReq: rpm-build-mono rpm-build-firefox mono-mcs
BuildPreReq: mono-devel >= 1.1.4
BuildPreReq: libgtk-sharp2-devel >= 2.4.2
BuildPreReq: libgecko-sharp2-devel >= 0.10
BuildPreReq: monodoc >= 1.0
BuildRequires: intltool libgnome-sharp-devel mono-addins mono-mcs mono-web mono-winforms
BuildRequires: desktop-file-utils mono-nunit perl-XML-Parser shared-mime-info intltool
BuildRequires: zip
BuildRequires: /proc
%if_enabled aspnetedit
# BuildRequires: libjscall-sharp-devel
BuildRequires: firefox-devel xsp
%endif
%if_enabled gtksourceview2
BuildPreReq: libgnome-desktop-sharp-devel >= 2.20
%else
BuildPreReq: libgtksourceview1-sharp-devel >= 0.10
%endif
%description
This is MonoDevelop which is intended to be a full-featured
integrated development environment (IDE) for mono and Gtk#.
It was originally a port of SharpDevelop 0.98.
%prep
%setup -q -n %name-%version
%patch1 -p1 -b .firefox
%patch2 -p1
%patch3 -p1
subst "s|^pkgconfigdir *= ..prefix./lib/pkgconfig|pkgconfigdir = %_pkgconfigdir|" \
Makefile.{am,in}
%build
%if_enabled svnsource
glib-gettextize --force --copy
intltoolize --force --copy --automake
%__libtoolize
%__aclocal
%__autoconf
%__autoheader
%__automake -a -c --foreign
%endif
%__autoreconf
export PKG_CONFIG_PATH=%_pkgconfigdir MOZILLA_HOME=%_libdir/firefox
%configure %{subst_enable versioncontrol} \
%{subst_enable monoextensions} \
%{subst_enable aspnet} \
%{subst_enable aspnetedit} \
--enable-c \
--enable-gnomeplatform \
%{subst_enable gtksourceview2} \
%{subst_enable subversion} \
--disable-update-mimedb \
--disable-update-desktopdb
%make
%install
%make_install DESTDIR=%buildroot install
%find_lang %name
%files -f %name.lang
%doc AUTHORS COPYING ChangeLog INSTALL README
%_bindir/*
%_prefix/lib/%name
%_pkgconfigdir/*.pc
%_datadir/applications/%name.desktop
%_iconsdir/hicolor/??x??/apps/%{name}*.png
%_iconsdir/hicolor/scalable/apps/%{name}*.svg
%_datadir/mime/packages/*
%_man1dir/*
%post
%update_mimedb
%update_desktopdb
%postun
%clean_desktopdb
%clean_mimedb
%changelog
…
Full changelog you can see here