LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File monodevelop.spec of Package monodevelop (Project Mono:Factory)

# spec file for package monodevelop
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           monodevelop
BuildRequires:  mono-data
BuildRequires:  mono-data-postgresql
BuildRequires:  pkgconfig(glade-sharp-2.0)
BuildRequires:  pkgconfig(glib-sharp-2.0)
BuildRequires:  pkgconfig(gnome-sharp-2.0)
BuildRequires:  pkgconfig(gtk-sharp-2.0)
%if 0%{?suse_version} > 1100
BuildRequires:  pkgconfig(gconf-sharp-2.0)
BuildRequires:  pkgconfig(gnome-vfs-sharp-2.0)
BuildRequires:  pkgconfig(gtksourceview-sharp-2.0)
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  git
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  shared-mime-info
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(mono)
BuildRequires:  pkgconfig(mono-addins)
BuildRequires:  pkgconfig(mono-nunit)
BuildRequires:  pkgconfig(monodoc)
BuildRequires:  pkgconfig(wcf)
# Mono.Cecil.dll requires rsync after it's build
BuildRequires:  rsync
Url:            http://www.monodevelop.com/
Version:        4.0.4
Release:        0
Summary:        Full-Featured IDE for Mono and Gtk#
License:        LGPL-2.1 and MIT
Group:          Development/Tools/IDE
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       mono-basic
Requires:       mono-entityframework
Requires:       mono-web
Requires:       pkgconfig
Requires:       xsp
Recommends:     mono-devel
Recommends:     mono-tools
Recommends:     git

%if 0%{?fedora} || 0%{?rhel_version}
%define env_options export MONO_SHARED_DIR=/tmp

%define _use_internal_dependency_generator 0
%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'

MonoDevelop is a full-featured integrated development
environment (IDE) for Mono and Gtk# primarily designed
for C# and other .NET languages. It allows to quickly
create desktop and ASP.NET Web applications. Support
for Visual Studio file formats eases porting to Linux.

%package devel
Summary:        Development files for MonoDevelop
Group:          Development/Languages/Mono
Requires:       monodevelop = %{version}

%description devel
MonoDevelop is a full-featured integrated development
environment (IDE) for Mono and Gtk#. It was originally
a port of SharpDevelop 0.98.

This package contains development files for the IDE and plugins.

%setup -q

#autoreconf -f -i
./configure --prefix=%{_prefix}

make install DESTDIR=%{buildroot} GACUTIL_FLAGS="/package monodevelop /root %{buildroot}%{_prefix}/%{_lib}"
mkdir -p %{buildroot}%{_prefix}/share/pkgconfig
mv %{buildroot}/usr/lib/pkgconfig/* %{buildroot}%{_datadir}/pkgconfig
%suse_update_desktop_file -N "Mono Development Environment" -G "Integrated Development Environment" -C "Develop software using Mono tools" %name "Application Development IDE"
dos2unix %{buildroot}/usr/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/schemas/*
dos2unix %{buildroot}/usr/lib/monodevelop/AddIns/MonoDevelop.AspNet/Schemas/readme.txt
%find_lang %{name}

update-mime-database /usr/share/mime >/dev/null || :

update-mime-database /usr/share/mime >/dev/null || :

%files -f %{name}.lang

%files devel