~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to monodevelop.spec.in

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# spec file for package monodevelop
3
3
#
4
 
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 
4
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
5
5
#
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/
16
16
#
17
17
 
18
 
# norootforbuild
19
 
 
20
18
 
21
19
Name:           monodevelop
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/
30
 
License:        GPLv2+
 
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
 
32
BuildRequires:  rsync
 
33
BuildRequires:  autoconf
 
34
BuildRequires:  automake
 
35
BuildRequires:  libtool
 
36
Url:            http://www.monodevelop.com/
 
37
License:        GPL-2.0+
31
38
Group:          Development/Languages/Mono
32
39
AutoReqProv:    on
33
40
Version:        @VERSION@
41
48
Requires:       mono-devel
42
49
Requires:       mono-tools
43
50
Requires:       pkgconfig
44
 
PreReq:         shared-mime-info
45
 
%if 0%{?suse_version}
46
 
%if %{suse_version} > 1100
47
 
BuildRequires:  gnome-print-sharp
48
 
%endif
49
 
BuildRequires:  desktop-file-utils update-desktop-files
50
 
%endif
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
58
 
%endif
59
 
%if 0%{?rhel_version}
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)
 
58
%endif
 
59
BuildRequires:  desktop-file-utils
 
60
 
 
61
%if 0%{?fedora} || 0%{?rhel_version}
 
62
%define env_options export MONO_SHARED_DIR=/tmp
63
63
%endif
64
64
 
65
65
%description
67
67
environment (IDE) for mono and Gtk#. It was originally a port of
68
68
SharpDevelop 0.98. See http://monodevelop.com/ for more information.
69
69
 
70
 
 
71
 
 
72
70
%prep
73
71
%setup -q
74
72
 
76
74
autoreconf -f -i
77
75
%{?env_options}
78
76
%configure \
79
 
            --enable-subversion \
80
 
            --enable-monoextensions \
81
 
            --enable-aspnet \
82
 
            --disable-update-mimedb \
83
 
            --disable-update-desktopdb
 
77
           --enable-subversion \
 
78
           --enable-git \
 
79
           --enable-monoextensions \
 
80
           --disable-update-mimedb \
 
81
           --disable-update-desktopdb
84
82
make
85
83
 
86
84
%install
87
85
%{?env_options}
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}"
89
87
#
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
93
91
%find_lang %{name}
94
92
 
95
 
%clean
96
 
rm -rf $RPM_BUILD_ROOT
97
 
 
98
93
%files -f %{name}.lang
99
94
%defattr(-,root,root)
100
 
%{_prefix}/bin/*
101
 
%{_prefix}/share/applications/monodevelop.desktop
102
 
%{_prefix}/share/mime/packages/monodevelop.xml
 
95
%{_bindir}/*
 
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
110
105
 
111
106
%post
112
107
update-mime-database /usr/share/mime >/dev/null || :
113
 
%run_suseconfig -m gtk2
114
108
 
115
109
%postun
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
121
 
%endif
 
111
 
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'
124
114