File gtksourceview.spec of Package gtksourceview
#
# spec file for package gtksourceview
#
# 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: gtksourceview
Version: 3.4.2
Release: 0
Summary: GTK+ Source Editing Widget
License: GPL-2.0+
Group: System/GUI/GNOME
Url: http://www.gnome.org/
Source: http://download.gnome.org/sources/gtksourceview/3.4/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: libxml2-devel
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(gio-2.0) >= 2.32.0
BuildRequires: pkgconfig(gladeui-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.4.0
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-3_0-0
Summary: GTK+ Source Editing Widget
Group: System/GUI/GNOME
Recommends: %{name}-lang = %{version}
Provides: gtksourceview = %{version}
Obsoletes: gtksourceview < %{version}
%description -n libgtksourceview-3_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 typelib-1_0-GtkSource-3_0
Summary: GTK+ Source Editing Widget -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-GtkSource-3_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.
This package provides the GObject Introspection bindings for
GtkSourceView.
%package -n glade-catalog-gtksourceview
Summary: GTK+ Source Editing Widget -- Catalog for Glade
Group: Development/Tools/GUI Builders
Requires: glade
Requires: libgtksourceview-3_0-0 = %{version}
Supplements: packageand(glade:%{name}-devel)
%description -n glade-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: gtksourceview = %{version}
Requires: typelib-1_0-GtkSource-3_0 = %{version}
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
translation-update-upstream
%build
%configure --disable-static --with-pic\
--enable-glade-catalog \
--disable-gtk-doc
make %{?jobs:-j%jobs} V=1
%install
%makeinstall
%find_lang %{name}-3.0
%{__rm} -f %{buildroot}%{_libdir}/*.la
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post -n libgtksourceview-3_0-0 -p /sbin/ldconfig
%postun -n libgtksourceview-3_0-0 -p /sbin/ldconfig
%files -n libgtksourceview-3_0-0
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog MAINTAINERS NEWS README
%{_libdir}/libgtksourceview-3.0.so.*
%{_datadir}/gtksourceview-3.0/
%files -n typelib-1_0-GtkSource-3_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/GtkSource-3.0.typelib
%files -n glade-catalog-gtksourceview
%defattr(-, root, root)
%{_datadir}/glade/catalogs/gtksourceview.xml
%files devel
%defattr(-, root, root)
%{_includedir}/gtksourceview-3.0/
%{_libdir}/libgtksourceview-3.0.so
%{_libdir}/pkgconfig/gtksourceview-3.0.pc
%{_datadir}/gir-1.0/GtkSource-3.0.gir
%{_datadir}/gtk-doc/html/gtksourceview-3.0/
%files lang -f %{name}-3.0.lang
%changelog