Blob Blame History Raw
%define debug_package %{nil}

Summary: The mono documentation system
Name: mono-tools
Version: 2.0
Release: 9%{?dist}
License: MIT
Group: Development/Tools
Patch0: monotools-2.0-gendarme.patch
Patch1: monotools-2.0-gendarmepc.patch
Patch2: monotools-2.0-infiles.patch
Patch3: monotools-2.0-makefiles.patch
Source0: http://go-mono.com/sources/%{name}/%{name}-%{version}.tar.bz2
URL: http://go-mono.com/sources-latests
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  mono-data, mono-devel >= 2.0, gtk-sharp2-gapi, pkgconfig mono-nunit
BuildRequires: monodoc-devel >= 2.0 gecko-sharp2-devel gnome-sharp-devel, gettext-devel
BuildRequires: gtk-sharp2-devel autoconf automake libtool mono-nunit-devel
BuildRequires: hunspell-devel desktop-file-utils gnome-desktop-sharp-devel
BuildRequires: mono-jscript mono-data-oracle
BuildRequires: webkit-sharp-devel
Requires: mono-core links monodoc >= 2.0
Requires: mono(gtkhtml-sharp) >= 3.0
Requires: mono(webkit-sharp)

ExclusiveArch: %ix86 x86_64 ia64 armv4l sparc alpha

%description
Monotools are a number of tools for mono such as allowing monodoc to be run
independantly of monodevelop

%package devel
Summary: .pc file for mono-tools
Group: Documentation
Requires: %{name} = %{version}-%{release} pkgconfig

%description devel
Development file for mono-tools

%prep
%setup -q 
sed -i -e 's!@libdir@!%{_libdir}!' %PATCH0 
sed -i -e 's!@libdir@!%{_libdir}!' %PATCH1
sed -i -e 's!@libdir@!%{_libdir}!' %PATCH2
sed -i -e 's!@libdir@!%{_libdir}!' %PATCH3
%patch0 -p1 -b .gendarme
%patch1 -p1 -b .gendarme-pc
%patch2 -p1 -b .infiles
%patch3 -p1 -b .makes
sed -i -e 's!%{_libdir}!@libdir@!' %PATCH0
sed -i -e 's!%{_libdir}!@libdir@!' %PATCH1
sed -i -e 's!%{_libdir}!@libdir@!' %PATCH2
sed -i -e 's!%{_libdir}!@libdir@!' %PATCH3
autoreconf -f -i -s
chmod 644 COPYING

%build
%configure
make 
# no smp flags - breaks the build

%install
%{__rm} -rf %{buildroot}
make DESTDIR=%{buildroot} install

desktop-file-install --vendor fedora \
        --dir %{buildroot}%{_datadir}/applications \
        --add-category Development \
        --delete-original \
        %{buildroot}%{_datadir}/applications/ilcontrast.desktop

desktop-file-install --vendor fedora \
        --dir %{buildroot}%{_datadir}/applications \
        --add-category Development \
        --delete-original \
        %{buildroot}%{_datadir}/applications/monodoc.desktop

%find_lang %{name}

%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root,-)
%doc COPYING AUTHORS ChangeLog README
%{_bindir}/ilcontrast
%{_bindir}/create-native-map
%{_bindir}/gasnview
%{_bindir}/gnunit
%{_bindir}/gnunit2
%{_bindir}/monodoc
%{_bindir}/gui-compare
%{_bindir}/gendarme*
%{_bindir}/mprof*
%{_libdir}/gendarme/*.dll
%{_libdir}/gendarme/*.exe
%{_libdir}/gendarme/*.xml
%{_libdir}/create-native-map
%dir %{_libdir}/gui-compare
%{_libdir}/gui-compare/gui-compare.exe
%exclude %{_libdir}/gui-compare/*.dll
%{_libdir}/mono/1.0/gasnview.exe
%{_libdir}/mono/1.0/gnunit.exe
%{_libdir}/mono/2.0/gnunit2.exe
%{_libdir}/monodoc/GeckoHtmlRender.dll
%{_libdir}/monodoc/GtkHtmlHtmlRender.dll
%{_libdir}/monodoc/WebKitHtmlRender.dll
%{_libdir}/monodoc/browser.exe
%dir %{_libdir}/ilcontrast
%{_libdir}/ilcontrast/ilcontrast.exe
%dir %{_libdir}/mono-tools
%{_libdir}/mono-tools/mprof*
%{_mandir}/man1/mprof*
%{_mandir}/man1/create-native-map.1.gz
%{_datadir}/pixmaps/ilcontrast.png
%{_datadir}/pixmaps/monodoc.png
%{_datadir}/applications/*.desktop
%{_libdir}/monodoc/MonoWebBrowserHtmlRender.dll
%{_mandir}/man1/gendarme*

%files devel
%defattr(-, root, root,-)
%{_libdir}/pkgconfig/*.pc

%changelog
* Sun Jul 12 2009 Christian Krause <chkr@fedoraproject.org> - 2.0-9
- Add BR webkit-sharp-devel to build the webkit engine for monodoc (BZ 478650)
- Add mono(webkit-sharp) as run-time requirement since it is needed by the
webkit engine of monodoc (BZ 478650)
- Add mono(gtkhtml-sharp) as run-time requirement since it is needed by the
gtkhtml engine of monodoc (BZ 478650)

* Mon Oct 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0-8
- rebuild for new gnome-sharp

* Wed Oct 03 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> - 2.0-7
- bump to rc3

* Wed Oct 01 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> - 2.0-6
- bump to rc3

* Tue Sep 09 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> - 2.0-5
- bump to 2.0 RC 1
- spec file chanages

* Fri Aug 29 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> - 2.0-4
- additional BRs included

* Thu Aug 28 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0-3
- include unowned directories

* Fri Aug 15 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 2.0-2
- reworked the patchfiles
- removed monodir (not used)
- spec file fix

* Sun Aug 03 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 2.0-1
- bump to 2.0 preview 1
- spec file fixes

* Tue Jul 08 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.9-4
- added br gnome-desktop-sharp
- fix for archs

* Mon Jul 07 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.9-3.1
- rebuild

* Tue Jun 03 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.9-3
- added BR desktop-file-utils

* Tue May 06 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.9-2.1
- rebuild

* Wed Apr 30 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.9-2
- added hunspell-devel

* Mon Apr 21 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.9-1
- bump

* Mon Jan 14 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.6-3
- spec file fixes
- excludearch ppc64

* Fri Jan 04 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.6-2
- license fix

* Fri Jan 04 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.6-1
- bump
- spec file fixes
- removed support for under FC7

* Fri Feb 23 2007 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.3-2
- fix for mock

* Thu Feb 15 2007 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.3-1
- bump
- a couple of small spec file fixes
- disabled installing the gnunit apps as theyre broken currently

* Sun Jan 28 2007 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.1-4
- added gettext-devel for findlangs to work

* Thu Jan 18 2007 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.1-3
- added gecko-sharp2-devel and gnome-sharp-devel 

* Fri Dec 01 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.1-2
- various spec file changes
- rename spec and package to be mono-tools

* Sat Nov 25 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.2.1-1
- bump
- added addition files and devel subpackage

* Sat Oct 14 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.1.17-1
- bump

* Thu Sep 07 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.1.11-1
- Initial import, debug and the likes