%define mono_dir %(/usr/bin/monodir)
Summary: Mono Addins Framework
Summary(ja): Mono を拡張するための汎用フレームワーク
Name: mono-addins
Group: Development/Tools
Version: 0.4
Release: 3%{?_dist_release}
License: LGPL
BuildRoot: /var/tmp/%{name}-%{version}-root
BuildArch: noarch
URL: http://www.go-mono.com
Source0: http://mono.ximian.com/monobuild/preview/sources/%{name}/%{name}-%{version}.tar.bz2
BuildRequires: mono-devel gtk-sharp2

%description
Mono.Addins is a generic framework for creating extensible applications,
and for creating libraries which extend those applications.
	  

%prep
%setup -q

%build
export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
./configure --prefix=%{_prefix}
make


%install
export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
make install DESTDIR=${RPM_BUILD_ROOT}
mkdir -p $RPM_BUILD_ROOT%_prefix/share/pkgconfig
mv $RPM_BUILD_ROOT%_prefix/lib/pkgconfig/*.pc $RPM_BUILD_ROOT%_prefix/share/pkgconfig


%clean
rm -rf "$RPM_BUILD_ROOT"


%files
%defattr(-, root, root)
%dir %{mono_dir}/mono-addins
%{_bindir}/mautil
%{mono_dir}/gac/Mono.Addins
%{mono_dir}/gac/Mono.Addins.CecilReflector
%{mono_dir}/gac/Mono.Addins.Gui
%{mono_dir}/gac/Mono.Addins.Setup
%{mono_dir}/gac/policy.0.2.Mono.Addins
%{mono_dir}/gac/policy.0.2.Mono.Addins.CecilReflector
%{mono_dir}/gac/policy.0.2.Mono.Addins.Gui
%{mono_dir}/gac/policy.0.2.Mono.Addins.Setup
%{mono_dir}/gac/policy.0.3.Mono.Addins
%{mono_dir}/gac/policy.0.3.Mono.Addins.CecilReflector
%{mono_dir}/gac/policy.0.3.Mono.Addins.Gui
%{mono_dir}/gac/policy.0.3.Mono.Addins.Setup
%{mono_dir}/mono-addins/Mono.Addins.dll
%{mono_dir}/mono-addins/Mono.Addins.CecilReflector.dll
%{mono_dir}/mono-addins/Mono.Addins.Gui.dll
%{mono_dir}/mono-addins/Mono.Addins.Setup.dll
%{mono_dir}/mono-addins/mautil.exe
%{_datadir}/pkgconfig/*.pc
%{_mandir}/man1/mautil.1.gz


%changelog
* Thu Apr 08 2010 Shu KONNO <owa@bg.wakwak.com> 0.4-3
- rebuilt with new environment

* Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 0.4-2
- rebuilt with latest rpm to update mono-dependencies

* Sun Apr 05 2009 Shu KONNO <owa@bg.wakwak.com> 0.4-1vl5
- updated to 0.4

* Wed Sep 17 2008 Shu KONNO <owa@bg.wakwak.com> 0.3.1-1vl5
- initial build for VineSeed
    - added japanese summary
    - applied vine versioning policy
    - spec in utf-8

* Wed Mar 26 2008 wberrier@suse.de
- Update to 0.3.1
  - Fix compatibility with new Mono
  - Delete subdirectory when uninstalling
  - Improve error reporting
* Mon Jan 14 2008 wberrier@suse.de
- Initial package (needed by MD and other mono apps)
