LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gtksourceview-sharp2.spec of Package gtksourceview-sharp2 (Project openSUSE:Factory)

# spec file for package gtksourceview-sharp2
# 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/

Name:           gtksourceview-sharp2
BuildRequires:  automake
BuildRequires:  gnome-sharp2
BuildRequires:  gtk-sharp2-gapi
BuildRequires:  gtksourceview-devel
BuildRequires:  mono-devel
BuildRequires:  monodoc-core
Requires:       gnome-sharp2
Version:        0.12
Release:        0
BuildArch:      noarch
Url:            http://www.go-mono.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         gtksourceview-sharp-2.0-%{version}.tar.bz2
Patch0:         %{name}-gnome-print.patch
Summary:        GtkSourceView bindings for Mono
License:        LGPL-2.1
Group:          Development/Libraries/Other
# Not needed with auto deps
#Requires:       gtksourceview >= 1.0 glib-sharp2 gnome-sharp2
Provides:       gtksourceview-sharp-2_0
Obsoletes:      gtksourceview-sharp-2_0
# suse's gnome went from /opt/gnome to /usr, act accordingly
%define gtksourceview_prefix %(pkg-config --variable=prefix gtksourceview-1.0)
%if 0%{?suse_version}
%if %suse_version > 1100
BuildRequires:  gnome-print-sharp
Requires:       gnome-print-sharp
%if %suse_version >= 1030
BuildRequires:  -gtksourceview-devel
BuildRequires:  gtksourceview18-devel
# Fedora options (Bug in fedora images where 'abuild' user is the same id as 'nobody')
%if 0%{?fedora_version} || 0%{?rhel_version}
%define env_options export MONO_SHARED_DIR=/tmp

This package provides Mono bindings for GtkSourceView, a child of the
GTK+ text widget which implements syntax highlighting and other
features typical of a source editor.

    Martin Willemoes Hansen <mwh@sysrq.dk>
    John Luke <jluke@cfl.rr.com>
    Todd Berman <tberman@sevenl.net>
    Pawel Rozanski <tokugawa@afn.no-ip.org>
    Mike Kestner <mkestner@speakeasy.net>

%setup  -n gtksourceview-sharp-2.0-%{version} -q

./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc --mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var

mkdir -p $RPM_BUILD_ROOT/usr/share/pkgconfig
mv $RPM_BUILD_ROOT/usr/lib/pkgconfig/gtksourceview-sharp-2.0.pc $RPM_BUILD_ROOT/usr/share/pkgconfig
rm -f $RPM_BUILD_ROOT%{gtksourceview_prefix}/share/gtksourceview-1.0/language-specs/nemerle.lang
rm -f $RPM_BUILD_ROOT%{gtksourceview_prefix}/share/gtksourceview-1.0/language-specs/vbnet.lang

rm -Rf ${DESTDIR}

%defattr(-, root, 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
%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'