File mono-tools.spec of Package mono-tools

#
# spec file for package mono-tools
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           mono-tools
Version:        2.10
Release:        1
License:        GPLv2 ; LGPLv2.0 ; MIT License (or similar)
BuildArch:      noarch
Url:            http://go-mono.org/
Source0:        %{name}-%{version}.tar.bz2
Summary:        Collection of Tools and Utilities for Mono
Group:          Development/Tools/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  mono-devel mono-nunit monodoc-core
BuildRequires:  update-desktop-files
BuildRequires:  webkit-sharp
BuildRequires:  glade-sharp2

%description
Mono Tools is a collection of development and testing programs and
utilities for use with Mono.

%files -f %{name}.lang
%defattr(-, root, root)
%_bindir/create-native-map
%_bindir/emveepee
%_bindir/gendarme
%_bindir/gendarme-wizard
%_bindir/gd2i
%_bindir/gsharp
%_bindir/gui-compare
%_bindir/ilcontrast
%_bindir/minvoke
%_bindir/monodoc
%_bindir/mperfmon
%_bindir/mprof-decoder
%_bindir/mprof-heap-viewer
%_datadir/applications/gendarme-wizard.desktop
%_datadir/applications/gsharp.desktop
%_datadir/applications/ilcontrast.desktop
%_datadir/applications/monodoc.desktop
%_datadir/create-native-map
%_datadir/icons/hicolor/*/apps/monodoc.png
%_datadir/pixmaps/gendarme.svg
%_datadir/pixmaps/ilcontrast.png
%_datadir/pixmaps/monodoc.png
%_datadir/pkgconfig/create-native-map.pc
%_datadir/pkgconfig/gendarme-framework.pc
%_mandir/man1/create-native-map*
%_mandir/man1/gd2i*
%_mandir/man1/gendarme*
%_mandir/man1/mperfmon*
%_mandir/man1/mprof-decoder*
%_mandir/man1/mprof-heap-viewer*
%_mandir/man5/gendarme*
%_prefix/lib/create-native-map
%_prefix/lib/gendarme
%_prefix/lib/gsharp
%_prefix/lib/gui-compare
%_prefix/lib/ilcontrast
%_prefix/lib/minvoke
%_prefix/lib/mono-tools
%_prefix/lib/monodoc/*.dll*
%_prefix/lib/monodoc/*.exe*
%_prefix/lib/monodoc/sources
%_prefix/lib/mperfmon

%package -n monodoc-http
License:        MIT
Summary:        ASP.NET front-end for displaying Monodoc documentation
Group:          Development/Tools/Other

%description -n monodoc-http
Monodoc-http provides an ASP.NET front-end for displaying installed 
Monodoc documentation.

%files -n monodoc-http
%defattr(-, root, root)
%_prefix/lib/monodoc/web

%prep
%setup -q

%build
./configure --prefix=%{_prefix} --libdir=%{_prefix}/lib --sysconfdir=%{_sysconfdir} --mandir=%{_mandir}

%install
make install DESTDIR=%{buildroot}
%suse_update_desktop_file monodoc
%suse_update_desktop_file ilcontrast
%suse_update_desktop_file gendarme-wizard
%suse_update_desktop_file gsharp
# Move create-native-map stuff out of lib into share
mkdir $RPM_BUILD_ROOT/%_prefix/share/create-native-map
mv $RPM_BUILD_ROOT/%_prefix/lib/create-native-map/MapAttribute.cs $RPM_BUILD_ROOT/%_prefix/share/create-native-map
mv $RPM_BUILD_ROOT/%_prefix/lib/pkgconfig $RPM_BUILD_ROOT/%_prefix/share
%find_lang %{name}

%clean
rm -Rf %{buildroot}

%post
%{_bindir}/monodoc --make-index

%changelog
openSUSE Build Service is sponsored by