Amanda Graven
c2ce63e9de
Adjust (Build)Require clauses and included files according to review feedback
98 lines
2.9 KiB
RPMSpec
98 lines
2.9 KiB
RPMSpec
%global glib_version 2.66
|
|
%global gtk_version 4.2
|
|
|
|
%global majorver 5
|
|
%global minorver 2
|
|
%global patchver 0
|
|
|
|
Name: gtksourceview5
|
|
Version: %{majorver}.%{minorver}.%{patchver}
|
|
Release: 1%{?dist}
|
|
Summary: Source code editing widget
|
|
|
|
License: LGPLv2+
|
|
URL: https://wiki.gnome.org/Projects/GtkSourceView
|
|
Source0: https://download.gnome.org/sources/gtksourceview/%{majorver}.%{minorver}/gtksourceview-%{version}.tar.xz
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: gettext
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: itstool
|
|
BuildRequires: meson
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
BuildRequires: pkgconfig(fribidi)
|
|
BuildRequires: pkgconfig(gio-2.0) >= %{glib_version}
|
|
BuildRequires: pkgconfig(glib-2.0) >= %{glib_version}
|
|
BuildRequires: pkgconfig(gobject-2.0) >= %{glib_version}
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
BuildRequires: pkgconfig(gtk4) >= %{gtk_version}
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(pangoft2)
|
|
BuildRequires: pkgconfig(libpcre2-8)
|
|
BuildRequires: vala
|
|
|
|
Requires: glib2%{?_isa} >= %{glib_version}
|
|
Requires: gtk4%{?_isa} >= %{gtk_version}
|
|
Requires: hicolor-icon-theme
|
|
|
|
%description
|
|
GtkSourceView is a GNOME library that extends GtkTextView, the standard GTK+
|
|
widget for multiline text editing. GtkSourceView adds support for syntax
|
|
highlighting, undo/redo, file loading and saving, search and replace, a
|
|
completion system, printing, displaying line numbers, and other features
|
|
typical of a source code editor.
|
|
|
|
This package contains version %{major} of GtkSourceView.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
%package tests
|
|
Summary: Tests for the %{name} package
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description tests
|
|
The %{name}-tests package contains tests that can be used to verify
|
|
the functionality of the installed %{name} package.
|
|
|
|
%prep
|
|
%autosetup -n gtksourceview-%{version}
|
|
|
|
%build
|
|
%meson -Dgtk_doc=true -Dsysprof=true -Dinstall_tests=true
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%find_lang gtksourceview-%{majorver}
|
|
|
|
%files -f gtksourceview-%{majorver}.lang
|
|
%license COPYING
|
|
%{_libdir}/girepository-1.0/GtkSource-%{majorver}.typelib
|
|
%{_libdir}/libgtksourceview-%{majorver}.so.0*
|
|
%{_datadir}/gtksourceview-%{majorver}/
|
|
%{_datadir}/icons/hicolor/scalable/actions/*
|
|
|
|
%files devel
|
|
%{_includedir}/gtksourceview-%{majorver}/
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_libdir}/libgtksourceview-%{majorver}.so
|
|
%{_datadir}/gir-1.0/GtkSource-%{majorver}.gir
|
|
%{_datadir}/gtk-doc/html/*
|
|
%{_datadir}/vala
|
|
|
|
%files tests
|
|
%{_bindir}/gtksourceview%{majorver}-widget
|
|
%{_libexecdir}/installed-tests
|
|
%{_datadir}/installed-tests
|
|
|
|
%changelog
|
|
* Tue Oct 25 2021 Amanda Graven <amanda@amandag.net> - 5.2.0-1
|
|
- Initial packaging of GtkSourceView 5
|