2
2
# spec file for package monodevelop
4
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
4
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
6
# All modifications and additions to the file contributed by third parties
7
7
# remain the property of their copyright owners, unless otherwise agreed
15
15
# Please submit bugfixes or comments via http://bugs.opensuse.org/
22
BuildRequires: gconf-sharp2
23
BuildRequires: glade-sharp2
24
BuildRequires: gnome-sharp2
25
BuildRequires: mono-addins
26
BuildRequires: mono-devel
27
BuildRequires: mono-wcf
28
BuildRequires: monodoc-core
29
Url: http://www.go-mono.com/
20
BuildRequires: pkgconfig(gtk-sharp-2.0)
21
BuildRequires: pkgconfig(glade-sharp-2.0)
22
BuildRequires: pkgconfig(glib-sharp-2.0)
23
BuildRequires: pkgconfig(gnome-sharp-2.0)
24
BuildRequires: pkgconfig(mono-addins)
25
BuildRequires: pkgconfig(mono)
26
BuildRequires: pkgconfig(monodoc)
27
BuildRequires: mono-data
28
BuildRequires: mono-data-postgresql
29
BuildRequires: pkgconfig(mono-nunit)
30
BuildRequires: pkgconfig(wcf)
31
# Mono.Cecil.dll requires rsync after it's build
33
BuildRequires: autoconf
34
BuildRequires: automake
35
BuildRequires: libtool
36
Url: http://www.monodevelop.com/
31
38
Group: Development/Languages/Mono
41
48
Requires: mono-devel
42
49
Requires: mono-tools
43
50
Requires: pkgconfig
44
PreReq: shared-mime-info
46
%if %{suse_version} > 1100
47
BuildRequires: gnome-print-sharp
49
BuildRequires: desktop-file-utils update-desktop-files
51
# TODO: Add build requirements for xulrunner/mozilla, etc... md does some checks at build time for aspnetedit
52
# (not currently enabled, but we'll need those checks when it is)
53
%if 0%{?fedora_version}
54
%define env_options export MONO_SHARED_DIR=/tmp
55
# TODO: what to do here on fedora?
56
%define suse_update_desktop_file true
57
%define run_suseconfig true
60
%define env_options export MONO_SHARED_DIR=/tmp
61
%define suse_update_desktop_file true
62
%define run_suseconfig true
51
%if 0%{?suse_version} > 1100
52
BuildRequires: pkgconfig(gnome-print-sharp-2.18)
53
BuildRequires: pkgconfig(gconf-sharp-2.0)
54
BuildRequires: pkgconfig(gtksourceview-sharp-2.0)
55
# TODO: Add build requirements for ASP.NET
56
#BuildRequires: pkgconfig(gecko-sharp-2.0)
57
#BuildRequires: pkgconfig(jscall-sharp)
59
BuildRequires: desktop-file-utils
61
%if 0%{?fedora} || 0%{?rhel_version}
62
%define env_options export MONO_SHARED_DIR=/tmp
80
--enable-monoextensions \
82
--disable-update-mimedb \
83
--disable-update-desktopdb
79
--enable-monoextensions \
80
--disable-update-mimedb \
81
--disable-update-desktopdb
88
make install DESTDIR=$RPM_BUILD_ROOT GACUTIL_FLAGS="/package monodevelop /root ${RPM_BUILD_ROOT}/usr/%_lib"
86
make install DESTDIR=%{buildroot} GACUTIL_FLAGS="/package monodevelop /root %{buildroot}%{_prefix}/%{_lib}"
90
mkdir -p $RPM_BUILD_ROOT/usr/share/pkgconfig
91
mv $RPM_BUILD_ROOT/usr/lib/pkgconfig/* $RPM_BUILD_ROOT/usr/share/pkgconfig
92
%suse_update_desktop_file -N "Mono Development Environment" -G "Integrated Development Environment" -C "Develop software using Mono tools" %name "Application Development IDE"
88
mkdir -p %{buildroot}%{_prefix}/share/pkgconfig
89
mv %{buildroot}/usr/lib/pkgconfig/* %{buildroot}%{_datadir}/pkgconfig
90
desktop-file-install --dir=%{buildroot}/%{_datadir}/applications monodevelop.desktop
96
rm -rf $RPM_BUILD_ROOT
98
93
%files -f %{name}.lang
99
94
%defattr(-,root,root)
101
%{_prefix}/share/applications/monodevelop.desktop
102
%{_prefix}/share/mime/packages/monodevelop.xml
96
%{_datadir}/applications/monodevelop.desktop
103
97
%{_datadir}/icons/hicolor/*/apps/monodevelop.png
104
98
%{_datadir}/icons/hicolor/scalable/apps/monodevelop.svg
105
99
%{_prefix}/lib/monodevelop
106
%{_prefix}/share/pkgconfig/monodevelop.pc
107
%{_prefix}/share/pkgconfig/monodevelop-core-addins.pc
108
%{_mandir}/man1/mdtool.1.gz
109
%{_mandir}/man1/monodevelop.1.gz
100
%{_datadir}/pkgconfig/monodevelop.pc
101
%{_datadir}/pkgconfig/monodevelop-core-addins.pc
102
%{_mandir}/man1/mdtool.1%ext_man
103
%{_mandir}/man1/monodevelop.1%ext_man
104
%{_datadir}/mime/packages/monodevelop.xml
112
107
update-mime-database /usr/share/mime >/dev/null || :
113
%run_suseconfig -m gtk2
116
110
update-mime-database /usr/share/mime >/dev/null || :
117
%run_suseconfig -m gtk2
118
%if 0%{?fedora_version} || 0%{?rhel_version}
119
# Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros)
120
%define _use_internal_dependency_generator 0
122
112
%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'
123
113
%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'