LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gtksourceview2.spec of Package gtksourceview2 (Project openSUSE:Factory)

#
# spec file for package gtksourceview2
#
# Copyright (c) 2012 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:           gtksourceview2
%define _name   gtksourceview
Version:        2.10.5
Release:        0
Summary:        GTK+ Source Editing Widget
License:        GPL-2.0+
Group:          System/GUI/GNOME
Url:            http://www.gnome.org/
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/gtksourceview/2.10/%{_name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE gtksourceview-2.10.5-rpmspec_highlight.patch bgo#676261 lazy.kent@opensuse.org -- add SUSE-specific highlights for rpm spec
Patch0:         gtksourceview-2.10.5-rpmspec_highlight.patch
BuildRequires:  fdupes
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libgladeui-1_0-devel
BuildRequires:  libxml2-devel
BuildRequires:  translation-update-upstream
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.

It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.

%package -n libgtksourceview-2_0-0
Summary:        GTK+ Source Editing Widget
Group:          System/GUI/GNOME
Recommends:     %{name}-lang = %{version}
# This is needed to make lang package installable.
Provides:       %{name} = %{version}

%description -n libgtksourceview-2_0-0
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.

It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.

%package -n glade3-catalog-gtksourceview
Summary:        GTK+ Source Editing Widget -- Catalog for Glade
Group:          Development/Tools/GUI Builders
Requires:       glade3
Requires:       libgtksourceview-2_0-0 = %{version}
Supplements:    packageand(glade3:%{name}-devel)

%description -n glade3-catalog-gtksourceview
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.

It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.

This package provides a catalog for Glade, to allow the use the
GtkSourceView widget in Glade.

%package devel
Summary:        GTK+ Source Editing Widget
Group:          System/GUI/GNOME
Requires:       gtk2-devel
Requires:       libgtksourceview-2_0-0 = %{version}
Requires:       libxml2-devel
Obsoletes:      gtksourceview-doc <= 2.5.4
Provides:       gtksourceview-doc = 2.5.4

%description devel
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.

It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.

%lang_package
%prep
%setup -q -n %{_name}-%{version}
%patch0
translation-update-upstream

%build
%configure --disable-static --with-pic\
        --disable-gtk-doc \
        --enable-glade-catalog
make %{?jobs:-j%jobs} V=1

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%find_lang %{_name}-2.0
%{__rm} -f %{buildroot}%{_libdir}/*.la
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%post -n libgtksourceview-2_0-0 -p /sbin/ldconfig

%postun -n libgtksourceview-2_0-0 -p /sbin/ldconfig

%files -n libgtksourceview-2_0-0
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog MAINTAINERS NEWS README
%{_libdir}/libgtksourceview-2.0.so.*
%{_datadir}/gtksourceview-2.0/

%files -n glade3-catalog-gtksourceview
%defattr(-, root, root)
%{_datadir}/glade3/catalogs/gtksourceview-glade.xml

%files devel
%defattr(-, root, root)
%{_includedir}/gtksourceview-2.0/
%{_libdir}/libgtksourceview-2.0.so
%{_libdir}/pkgconfig/gtksourceview-2.0.pc
%{_datadir}/gtk-doc/html/gtksourceview-2.0/

%files lang -f %{_name}-2.0.lang

%changelog