Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37898530
en ru br
ALT Linux repos
S:5.10.0.871-alt4
5.0: 1.9.1-alt3.1
4.1: 1.0-alt2

Group :: Development/Other
RPM: monodevelop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# vim: set ft=spec: -*- rpm-spec -*-

%define lib_dep_suffix %(test %_lib != lib64 && echo '' || echo '()(64bit)')
%define svnver _
%def_disable svnsource
%def_disable tests

Name: monodevelop
Version: 1.9.1
%if_enabled svnsource
Release: alt1.%svnver
%else
Release: alt3.1
%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-main-%version-%svnver.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-1.9-alt-unreq-libglib-2.0.so.patch
Patch3: %name-1.9-alt-use-system-cecil.patch
Patch10: %name-1.9-alt-SourceEditor2.patch

# FIXME: check everytime

%add_findreq_skiplist %_prefix/lib/%name/AddIns/VersionControl/MonoDevelop.VersionControl.Subversion.dll
Requires: libapr-1.so.0%{lib_dep_suffix} libsvn_client-1.so.0%{lib_dep_suffix}

Requires: desktop-file-utils
Requires: firefox
Requires: libgnomeui
Requires: shared-mime-info

BuildPreReq: rpm-build-mono mono-mcs
BuildPreReq: mono-devel >= 2.0
BuildPreReq: mono-addins >= 0.3
BuildPreReq: libgtk-sharp2-devel >= 2.8.0
BuildPreReq: libgnome-desktop-sharp
BuildPreReq: monodoc >= 1.0

# BuildPreReq: libgecko-sharp2-devel >= 0.10


BuildRequires: intltool mono-mcs mono-web mono-winforms libgnome-desktop-sharp-devel
BuildRequires: desktop-file-utils mono-nunit perl-XML-Parser shared-mime-info intltool
BuildRequires: zip
BuildRequires: /proc

BuildRequires: xsp

%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
%patch10 -p1

%__subst '/^Encoding=/d;
s/^Exec=monodevelop$/Exec=monodevelop %%F/;
s/^Categories=.*$/Categories=Development;IDE;/
' monodevelop.desktop
%__subst "s|^pkgconfigdir *= \$(prefix)/lib/pkgconfig|pkgconfigdir = %_pkgconfigdir|" \
Makefile.am

%build
#export PKG_CONFIG_PATH=%_pkgconfigdir MOZILLA_HOME=%_libdir/firefox
%autoreconf
%configure  %{subst_enable versioncontrol} \
   --disable-update-mimedb --disable-update-desktopdb \
   --enable-gtksourceview2 \
   %{subst_enable tests} \

%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
%_desktopdir/%name.desktop
%_iconsdir/hicolor/??x??/apps/%{name}*.png
%_iconsdir/hicolor/scalable/apps/%{name}*.svg
%_datadir/mime/packages/*
%_man1dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin