Group :: Sistema/Bibliotecas
RPM: libgtksourceview3
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _name gtksourceview
%define api_ver 3.0
%define ver_major 3.24
%def_disable static
%def_disable gtk_doc
%def_enable introspection
%def_enable vala
%def_enable gspell
Name: lib%{_name}3
Version: %ver_major.9
Release: alt1
Summary: GtkSourceView text widget library
License: LGPLv2+
Group: System/Libraries
Url: https://wiki.gnome.org/Projects/GtkSourceView
Source: %gnome_ftp/%_name/%ver_major/%_name-%version.tar.xz
# From configure.ac
%define gtk_ver 3.20.0
%define libxml2_ver 2.6.0
%define gspell_ver 1.2.0
BuildPreReq: rpm-build-gnome
# From configure.ac
BuildRequires: gcc-c++ autoconf-archive gtk-doc itstool
BuildPreReq: libgtk+3-devel >= %gtk_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildRequires: perl-XML-Parser zlib-devel
%{?_enable_gspell:BuildRequires: libgspell-devel >= %gspell_ver}
%{?_enable_introspection:BuildRequires: gobject-introspection-devel >= 0.9.5 libgtk+3-gir-devel}
%{?_enable_vala:BuildRequires: vala-tools libvala-devel}
%description
GtkSourceView is a text widget that extends the standard gtk+ 2.x text
widget GtkTextView. It improves GtkTextView by implementing syntax
highlighting and other features typical of a source editor.
This package contains shared GtkSourceView library.
%package devel
Summary: Files to compile applications that use GtkSourceView
Group: Development/C
Requires: %name = %version-%release
%description devel
This package contains the files required to develop applications against
the GtkSourceView library.
%package devel-doc
Summary: Development documentation for %_name
Group: Development/Documentation
Conflicts: %name < %version-%release
BuildArch: noarch
%description devel-doc
GtkSourceView is a text widget that extends the standard gtk+ 3.x text
widget GtkTextView. It improves GtkTextView by implementing syntax
highlighting and other features typical of a source editor.
This package provides development documentation for %_name.
%package gir
Summary: GObject introspection data for the GtkSourceView library
Group: System/Libraries
Requires: %name = %version-%release
%description gir
GObject introspection data for the GtkSourceView library
%package gir-devel
Summary: GObject introspection devel data for the GtkSourceView library
Group: System/Libraries
BuildArch: noarch
Requires: %name-gir = %version-%release
%description gir-devel
GObject introspection devel data for the GtkSourceView library
%define _gtk_docdir %_datadir/gtk-doc/html
%prep
%setup -n %_name-%version
%build
%configure \
%{subst_enable static} \
%{?_enable_gtk_doc:--enable-gtk-doc} \
%{subst_enable introspection}
%make_build
%check
#%make check
%install
%makeinstall_std
%find_lang %_name-%api_ver
%files -f %_name-%api_ver.lang
%_libdir/*.so.*
%_datadir/%_name-%api_ver
%doc AUTHORS NEWS README
%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%if_enabled vala
%_vapidir/%_name-%api_ver.deps
%_vapidir/%_name-%api_ver.vapi
%endif
%doc HACKING MAINTAINERS
%files devel-doc
%_gtk_docdir/*
%if_enabled introspection
%files gir
%_typelibdir/*
%files gir-devel
%_girdir/*
%endif
%changelog
…
Todas as alterações você pod ver aqui
%define api_ver 3.0
%define ver_major 3.24
%def_disable static
%def_disable gtk_doc
%def_enable introspection
%def_enable vala
%def_enable gspell
Name: lib%{_name}3
Version: %ver_major.9
Release: alt1
Summary: GtkSourceView text widget library
License: LGPLv2+
Group: System/Libraries
Url: https://wiki.gnome.org/Projects/GtkSourceView
Source: %gnome_ftp/%_name/%ver_major/%_name-%version.tar.xz
# From configure.ac
%define gtk_ver 3.20.0
%define libxml2_ver 2.6.0
%define gspell_ver 1.2.0
BuildPreReq: rpm-build-gnome
# From configure.ac
BuildRequires: gcc-c++ autoconf-archive gtk-doc itstool
BuildPreReq: libgtk+3-devel >= %gtk_ver
BuildPreReq: libxml2-devel >= %libxml2_ver
BuildRequires: perl-XML-Parser zlib-devel
%{?_enable_gspell:BuildRequires: libgspell-devel >= %gspell_ver}
%{?_enable_introspection:BuildRequires: gobject-introspection-devel >= 0.9.5 libgtk+3-gir-devel}
%{?_enable_vala:BuildRequires: vala-tools libvala-devel}
%description
GtkSourceView is a text widget that extends the standard gtk+ 2.x text
widget GtkTextView. It improves GtkTextView by implementing syntax
highlighting and other features typical of a source editor.
This package contains shared GtkSourceView library.
%package devel
Summary: Files to compile applications that use GtkSourceView
Group: Development/C
Requires: %name = %version-%release
%description devel
This package contains the files required to develop applications against
the GtkSourceView library.
%package devel-doc
Summary: Development documentation for %_name
Group: Development/Documentation
Conflicts: %name < %version-%release
BuildArch: noarch
%description devel-doc
GtkSourceView is a text widget that extends the standard gtk+ 3.x text
widget GtkTextView. It improves GtkTextView by implementing syntax
highlighting and other features typical of a source editor.
This package provides development documentation for %_name.
%package gir
Summary: GObject introspection data for the GtkSourceView library
Group: System/Libraries
Requires: %name = %version-%release
%description gir
GObject introspection data for the GtkSourceView library
%package gir-devel
Summary: GObject introspection devel data for the GtkSourceView library
Group: System/Libraries
BuildArch: noarch
Requires: %name-gir = %version-%release
%description gir-devel
GObject introspection devel data for the GtkSourceView library
%define _gtk_docdir %_datadir/gtk-doc/html
%prep
%setup -n %_name-%version
%build
%configure \
%{subst_enable static} \
%{?_enable_gtk_doc:--enable-gtk-doc} \
%{subst_enable introspection}
%make_build
%check
#%make check
%install
%makeinstall_std
%find_lang %_name-%api_ver
%files -f %_name-%api_ver.lang
%_libdir/*.so.*
%_datadir/%_name-%api_ver
%doc AUTHORS NEWS README
%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%if_enabled vala
%_vapidir/%_name-%api_ver.deps
%_vapidir/%_name-%api_ver.vapi
%endif
%doc HACKING MAINTAINERS
%files devel-doc
%_gtk_docdir/*
%if_enabled introspection
%files gir
%_typelibdir/*
%files gir-devel
%_girdir/*
%endif
%changelog
…
Todas as alterações você pod ver aqui