File mono-addins.spec of Package mono-addins

#
# spec file for package mono-addins (Version 0.4)
#
# Copyright (c) 2008 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-addins
Version:        0.4
Release:        1
License:        X11/MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
BuildArch:      noarch
Url:            http://www.mono-project.com
Source0:        http://ftp.novell.com/pub/mono/sources/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:  gtk-sharp2 mono-devel
Summary:        Mono Addins Framework
Group:          Development/Languages/Mono
%if 0%{?fedora_version}
%define env_options export MONO_SHARED_DIR=/tmp
%endif
%if 0%{?rhel_version}
%define env_options export MONO_SHARED_DIR=/tmp
%endif

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



Authors:
--------
    Lluis Sanchez Gual  <lluis@novell.com>

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

%prep
%setup -q

%build
%{?env_options}
./configure --prefix=%_prefix
make

%install
%{?env_options}
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"
%if 0%{?fedora_version} || 0%{?rhel_version}
# Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros)
%define _use_internal_dependency_generator 0
%endif
%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'
%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'

%changelog
* Thu Nov 06 2008 ajorgensen@novell.com
- Update to 0.4
  * Added support for specifying paths to exclude from the add-in
  scan in .addins files and in add-in manifests.
  * There are several new flags which can be applied to add-ins:
  * Can't uninstall: the add-in can't be uninstalled.
  * Can't disable: the add-in can't be disabled.
  * Hidden: the add-in won't be visible in the setup tools.
  * Fixes in the add-in scanner.
  * The new (and optional) Mono.Addins.CecilReflector assembly
  provides a Cecil-based backend for the add-in scanner. This
  scanner is more reliable than the reflection based scanner.
  * When updating the registry, the add-in scanner will only
  update add-ins belonging to the running application (ignoring
  directories from other instances of the same or different
  applications sharing the same registry).
  * Fixed issue with path length limitation in Windows.
  * Other bug fixes and API improvements.
* 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)
openSUSE Build Service is sponsored by