]> git.pld-linux.org Git - packages/mono-tools.git/blame - mono-tools.spec
- adjusted for mono 4.x
[packages/mono-tools.git] / mono-tools.spec
CommitLineData
33609179 1#
2# Conditional build:
7dd10342 3%bcond_with gecko # gecko html renderer
33609179 4#
d7c9ba01 5%include /usr/lib/rpm/macros.mono
611da4dd 6Summary: Mono Tools
9705a788 7Summary(pl.UTF-8): Narzędzia do mono
611da4dd 8Name: mono-tools
2ad9bc59 9Version: 4.2
79495237 10Release: 3
4263a559 11License: GPL v2+
611da4dd 12Group: Development/Tools
2ad9bc59
JB
13# also available on github
14#Source0: https://github.com/mono/mono-tools/archive/%{version}/%{name}-%{version}.tar.gz
15Source0: http://download.mono-project.com/sources/mono-tools/%{name}-%{version}.tar.gz
16# Source0-md5: d4b7c711ff8295173766c44973c6c10e
17Patch0: %{name}-pwd.patch
18Patch1: %{name}-configure.patch
54031b74 19URL: http://www.mono-project.com/
611da4dd 20BuildRequires: autoconf
21BuildRequires: automake
7dd10342 22BuildRequires: dotnet-gconf-sharp-devel >= 2.16.0
54031b74 23%{?with_gecko:BuildRequires: dotnet-gecko-sharp2-devel >= 0.12}
a7a2c9ff 24BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
7dd10342 25# gtk-sharp-2.0, glade-sharp-2.0
a7a2c9ff 26BuildRequires: dotnet-gtk-sharp2-devel
ff42207c 27BuildRequires: dotnet-webkit-sharp-devel >= 0.2-1
dbb21e1e 28BuildRequires: gettext-tools
7dd10342 29BuildRequires: glib2-devel >= 2.0
51668b95 30BuildRequires: libgdiplus
0534729d 31BuildRequires: mono-compat-links
9836dc97 32BuildRequires: mono-csharp
79495237 33BuildRequires: mono-devel >= 4.0
d2d045d0 34BuildRequires: mono-monodoc >= 3.2.5-2
611da4dd 35BuildRequires: pkgconfig
79495237 36BuildRequires: rpmbuild(macros) >= 1.730
bf6b7251 37BuildRequires: rpmbuild(monoautodeps)
c82f0b72 38BuildRequires: sed >= 4.0
cd0c1a2b 39Requires: hicolor-icon-theme
7e3636c6 40Requires: mono >= 2.10
49ae1237 41Requires: mono-tools-html-renderer
cd0c1a2b 42Obsoletes: mono-tools-gtkhtml
79495237 43ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 ia64 mips ppc ppc64 s390x sparc sparcv9 sparc64
b9d0deca 44ExcludeArch: i386
611da4dd 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
79495237
JB
47# provided in private directory
48%define _noautoreq_mono Gendarme.Framework Gendarme.Rules.Performance
49
611da4dd 50%description
51Mono Tools is a collection of development and testing programs and
52utilities for use with Mono.
53
d41758f3
JR
54%description -l pl.UTF-8
55Mono Tools jest kolekcją rozwojowych i testowych programów oraz
56narzędzi do użycia z Mono.
611da4dd 57
931cc38a 58%package gecko
59Summary: Gecko based monodoc HTML renderer
9705a788 60Summary(pl.UTF-8): Oparty na gecko wyświetlacz HTML-a dla monodoc
931cc38a 61Group: Development/Tools
62Requires: %{name} = %{version}-%{release}
0570115f 63Provides: mono-tools-html-renderer
931cc38a 64
65%description gecko
ff42207c 66Gecko based monodoc HTML renderer.
931cc38a 67
d41758f3 68%description gecko -l pl.UTF-8
ff42207c 69Oparty na gecko wyświetlacz HTML-a dla monodoc.
70
71%package webkit
72Summary: WebKit based monodoc HTML renderer
73Summary(pl.UTF-8): Oparty na WebKit wyświetlacz HTML-a dla monodoc
74Group: Development/Tools
75Requires: %{name} = %{version}-%{release}
76Provides: mono-tools-html-renderer
77
78%description webkit
79WebKit based monodoc HTML renderer.
80
81%description webkit -l pl.UTF-8
82Oparty na WebKit wyświetlacz HTML-a dla monodoc.
83
84%package monowebbrowser
85Summary: Mono.WebBrowser based monodoc HTML renderer
86Summary(pl.UTF-8): Oparty na Mono.WebBrowser wyświetlacz HTML-a dla monodoc
87Group: Development/Tools
88Requires: %{name} = %{version}-%{release}
89Provides: mono-tools-html-renderer
90
91%description monowebbrowser
92Mono.WebBrowser based monodoc HTML renderer.
93
94%description monowebbrowser -l pl.UTF-8
95Oparty na Mono.WebBrowser wyświetlacz HTML-a dla monodoc.
931cc38a 96
677cddc0 97%package gendarme
98Summary: A tool to find problems in .NET applications and libraries
99Summary(pl.UTF-8): Narzędzie znajdujące problemy w aplikacjach i bibliotekach .NET
100Group: Development/Tools
7e3636c6 101Requires: monodoc >= 2.10
677cddc0 102
103%description gendarme
104Gendarme is a extensible rule-based tool to find problems in .NET
105applications and libraries. Gendarme inspects programs and libraries
106that contain code in ECMA CIL format (Mono and .NET) and looks for
107common problems with the code, problems that compiler do not typically
108check or have not historically checked.
109
110%description gendarme -l pl.UTF-8
111Gendarme to rozszerzalne narzędzie oparte o regułki, znajdujące
112problemy w aplikacjach i bibliotekach .NET. Gendarme przeprowadza
113inspekcję programów i bibliotek w formacie ECMA CIL (Mono i .NET)
114szukając typowych problemów, których często kompilator nie sprawdza,
115lub tych które nie były kiedyś sprawdzane.
116
117%package gui-compare
118Summary: Compares API changes between different assemblies
119Summary(pl.UTF-8): Porównuje zmiany API między różnymi assembly
120Group: Development/Tools
121
122%description gui-compare
123Compares API changes between different assemblies.
124
125%description gui-compare -l pl.UTF-8
126Porównuje zmiany API między różnymi assembly.
127
ff42207c 128%package mprof-decoder
129Summary: Console decoder for the logging profiler output files
130Summary(pl.UTF-8): Konsolowy dekoder dla plików tworzonych przez logujący profiler
131Group: Development/Tools
132
133%description mprof-decoder
134Decodes the contents of a logging profiler output file and prints the
135data on standard output.
136
137%description mprof-decoder -l pl.UTF-8
138Dekoduje zawartość pliku wynikowego profilera logującego i wypisuje
139dane na standardowe wyjście.
140
141%package mprof-heap-viewer
142Summary: GUI viewer for the logging profiler heap snapshots
143Summary(pl.UTF-8): Narzędzie do oglądania migawek sterty profilera logującego
144Group: Development/Tools
145
146%description mprof-heap-viewer
a7a2c9ff
MB
147This program decodes the contents of a logging profiler output file
148and locates all the heap snapshots inside it. The user can then select
149each individual snapshot and decide to load it in memory and explore
150its contents.
ff42207c 151
152%description mprof-heap-viewer -l pl.UTF-8
153Ten program dekoduje plik wynikowy profilera logującego i lokalizuje
154wszystkie znajdujące się w nim migawki sterty. Umożliwia wybranie
155dowolnej migawki i załadowanie jej do pamięci w celu obejrzenia
156zawartości.
157
611da4dd 158%prep
159%setup -q
a7a2c9ff 160%patch0 -p1
cd0c1a2b 161%patch1 -p1
611da4dd 162
c82f0b72 163# as expected by ilcontrast script
6d110a45 164%{__sed} -i -e 's,\$(libdir)/ilcontrast,$(prefix)/lib/ilcontrast,' ilcontrast/Makefile.am
c82f0b72 165
2ad9bc59 166# mono-2.8+ path for gasnview.exe
79495237 167%{__sed} -i -e 's,mono/1.0,mono/4.5,' asn1view/gtk/Makefile.am
4263a559 168
611da4dd 169%build
d2d045d0 170%{__glib_gettextize}
611da4dd 171%{__aclocal}
172%{__autoconf}
173%{__automake}
174%configure
a7a2c9ff 175%{__make} -j1
611da4dd 176
177%install
178rm -rf $RPM_BUILD_ROOT
611da4dd 179
180%{__make} install \
f85e043d 181 DESTDIR=$RPM_BUILD_ROOT \
d2d045d0
JB
182 pkgconfigdir=%{_pkgconfigdir} \
183 pkglibdir=%{_prefix}/lib/mono-tools
184
185# debug
186%{__rm} $RPM_BUILD_ROOT%{_prefix}/lib/mono-tools/{Mono.Profiler.Widgets.dll,emveepee.exe}.mdb
611da4dd 187
188%find_lang %{name}
189
190%clean
191rm -rf $RPM_BUILD_ROOT
192
cd0c1a2b
MB
193%post
194%update_icon_cache hicolor
195
196%postun
197%update_icon_cache hicolor
198
611da4dd 199%files -f %{name}.lang
200%defattr(644,root,root,755)
7dc434cc 201%doc AUTHORS ChangeLog README
4eba6264 202%attr(755,root,root) %{_bindir}/create-native-map
a7a2c9ff 203%attr(755,root,root) %{_bindir}/emveepee
e37cb6a9 204%attr(755,root,root) %{_bindir}/gasnview
a7a2c9ff 205%attr(755,root,root) %{_bindir}/gsharp
cd0c1a2b 206%attr(755,root,root) %{_bindir}/ilcontrast
a7a2c9ff
MB
207%attr(755,root,root) %{_bindir}/minvoke
208%attr(755,root,root) %{_bindir}/monodoc
209%attr(755,root,root) %{_bindir}/mperfmon
210%dir %{_prefix}/lib/gsharp
211%attr(755,root,root) %{_prefix}/lib/gsharp/gsharp.exe
212%{_prefix}/lib/gsharp/gsharp.exe.config
79495237 213%attr(755,root,root) %{_prefix}/lib/mono/4.5/gasnview.exe
c82f0b72 214%{_prefix}/lib/create-native-map
cd0c1a2b
MB
215%dir %{_prefix}/lib/ilcontrast
216%attr(755,root,root) %{_prefix}/lib/ilcontrast/ilcontrast.exe
a7a2c9ff
MB
217%dir %{_prefix}/lib/minvoke
218%attr(755,root,root) %{_prefix}/lib/minvoke/minvoke.exe
219%dir %{_prefix}/lib/mperfmon
220%{_prefix}/lib/mperfmon/config
221%attr(755,root,root) %{_prefix}/lib/mperfmon/mperfmon.exe
222%dir %{_prefix}/lib/mono-tools
223%{_prefix}/lib/mono-tools/Mono.Profiler.Widgets.dll
224%attr(755,root,root) %{_prefix}/lib/mono-tools/emveepee.exe
7f9ee98e
MB
225%attr(755,root,root) %{_prefix}/lib/monodoc/browser.exe
226%{_prefix}/lib/monodoc/web
a7a2c9ff 227%{_desktopdir}/gsharp.desktop
cd0c1a2b 228%{_desktopdir}/ilcontrast.desktop
54031b74 229%{_desktopdir}/monodoc.desktop
cd0c1a2b 230%{_pixmapsdir}/ilcontrast.png
54031b74 231%{_pixmapsdir}/monodoc.png
d2d045d0 232%{_iconsdir}/hicolor/*x*/apps/monodoc.png
54031b74 233%{_pkgconfigdir}/create-native-map.pc
4eba6264 234%{_mandir}/man1/create-native-map.1*
a7a2c9ff 235%{_mandir}/man1/mperfmon.1*
931cc38a 236
33609179 237%if %{with gecko}
931cc38a 238%files gecko
239%defattr(644,root,root,755)
c82f0b72
JB
240%attr(755,root,root) %{_bindir}/ilcontrast
241%{_prefix}/lib/ilcontrast
7f9ee98e 242%{_prefix}/lib/monodoc/GeckoHtmlRender.dll
54031b74
JB
243%{_desktopdir}/ilcontrast.desktop
244%{_pixmapsdir}/ilcontrast.png
33609179 245%endif
0570115f 246
ff42207c 247%files webkit
248%defattr(644,root,root,755)
7f9ee98e 249%{_prefix}/lib/monodoc/WebKitHtmlRender.dll
ff42207c 250
251%files monowebbrowser
252%defattr(644,root,root,755)
7f9ee98e 253%{_prefix}/lib/monodoc/MonoWebBrowserHtmlRender.dll
ff42207c 254
677cddc0 255%files gendarme
256%defattr(644,root,root,755)
7e3636c6 257%attr(755,root,root) %{_bindir}/gd2i
677cddc0 258%attr(755,root,root) %{_bindir}/gendarme
ff42207c 259%attr(755,root,root) %{_bindir}/gendarme-wizard
677cddc0 260%{_prefix}/lib/gendarme
7f9ee98e
MB
261%{_prefix}/lib/monodoc/sources/Gendarme*
262%{_prefix}/lib/monodoc/sources/gendarme*
a7a2c9ff 263%{_desktopdir}/gendarme-wizard.desktop
677cddc0 264%{_pkgconfigdir}/gendarme-framework.pc
a7a2c9ff 265%{_pixmapsdir}/gendarme.svg
7e3636c6 266%{_mandir}/man1/gd2i.1*
677cddc0 267%{_mandir}/man1/gendarme.1*
a7a2c9ff 268%{_mandir}/man5/gendarme.5*
677cddc0 269
270%files gui-compare
271%defattr(644,root,root,755)
272%attr(755,root,root) %{_bindir}/gui-compare
273%{_prefix}/lib/gui-compare
ff42207c 274
275%files mprof-decoder
276%defattr(644,root,root,755)
277%attr(755,root,root) %{_bindir}/mprof-decoder
278%{_prefix}/lib/mono-tools/mprof-decoder-library.*
279%{_prefix}/lib/mono-tools/mprof-decoder.*
280%{_mandir}/man1/mprof-decoder.1*
281
282%files mprof-heap-viewer
283%defattr(644,root,root,755)
284%attr(755,root,root) %{_bindir}/mprof-heap-viewer
285%{_prefix}/lib/mono-tools/mprof-heap-snapshot-explorer.*
286%{_prefix}/lib/mono-tools/mprof-heap-viewer.*
287%{_mandir}/man1/mprof-heap-viewer.1*
This page took 1.882074 seconds and 4 git commands to generate.