Address review feedback

Adjust (Build)Require clauses and included files according to review
feedback
This commit is contained in:
Amanda Graven 2021-10-26 21:10:39 +02:00
parent cb6a263950
commit b4ed55c92a
Signed by: amanda
GPG key ID: 45C461CDC9286390

View file

@ -1,33 +1,39 @@
%global glib_version 2.66 %global glib_version 2.66
%global gtk_version 4.2 %global gtk_version 4.2
%global majorver 5
%global minorver 2
%global patchver 0
Name: gtksourceview5 Name: gtksourceview5
Version: 5.1.0 Version: %{majorver}.%{minorver}.%{patchver}
Release: 1%{?dist} Release: 1%{?dist}
Summary: Source code editing widget Summary: Source code editing widget
License: LGPLv2+ License: LGPLv2+
URL: https://wiki.gnome.org/Projects/GtkSourceView URL: https://wiki.gnome.org/Projects/GtkSourceView
Source0: https://download.gnome.org/sources/gtksourceview/5.1/gtksourceview-%{version}.tar.xz Source0: https://download.gnome.org/sources/gtksourceview/%{majorver}.%{minorver}/gtksourceview-%{version}.tar.xz
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gettext
BuildRequires: gtk-doc
BuildRequires: itstool
BuildRequires: meson BuildRequires: meson
BuildRequires: pkgconfig(glib-2.0) >= %{glib_version} BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(fribidi)
BuildRequires: pkgconfig(gio-2.0) >= %{glib_version} BuildRequires: pkgconfig(gio-2.0) >= %{glib_version}
BuildRequires: pkgconfig(glib-2.0) >= %{glib_version}
BuildRequires: pkgconfig(gobject-2.0) >= %{glib_version} BuildRequires: pkgconfig(gobject-2.0) >= %{glib_version}
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.42.0 BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk4) >= %{gtk_version} BuildRequires: pkgconfig(gtk4) >= %{gtk_version}
BuildRequires: pkgconfig(gtk-doc) >= 1.25 BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libxml-2.0) >= 2.6 BuildRequires: pkgconfig(pangoft2)
BuildRequires: pkgconfig(fribidi) >= 0.19.7 BuildRequires: pkgconfig(libpcre2-8)
BuildRequires: pkgconfig(libpcre2-8) >= 10.21 BuildRequires: vala
BuildRequires: pkgconfig(vapigen)
Requires: glib2%{?_isa} >= %{glib_version} Requires: glib2%{?_isa} >= %{glib_version}
Requires: gtk4%{?_isa} >= %{gtk_version} Requires: gtk4%{?_isa} >= %{gtk_version}
Requires: pcre2 Requires: hicolor-icon-theme
Requires: libxml2
Requires: fribidi
%description %description
GtkSourceView is a GNOME library that extends GtkTextView, the standard GTK+ GtkSourceView is a GNOME library that extends GtkTextView, the standard GTK+
@ -36,7 +42,7 @@ highlighting, undo/redo, file loading and saving, search and replace, a
completion system, printing, displaying line numbers, and other features completion system, printing, displaying line numbers, and other features
typical of a source code editor. typical of a source code editor.
This package contains version 5 of GtkSourceView. This package contains version %{major} of GtkSourceView.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
@ -58,43 +64,34 @@ the functionality of the installed %{name} package.
%autosetup -n gtksourceview-%{version} %autosetup -n gtksourceview-%{version}
%build %build
%meson -Dgtk_doc=true -Dinstall_tests=true %meson -Dgtk_doc=true -Dsysprof=true -Dinstall_tests=true
%meson_build %meson_build
%install %install
%meson_install %meson_install
%find_lang gtksourceview-5 %find_lang gtksourceview-%{majorver}
%files -f gtksourceview-5.lang %files -f gtksourceview-%{majorver}.lang
%license COPYING %license COPYING
%dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/GtkSource-%{majorver}.typelib
%{_libdir}/girepository-1.0/GtkSource-5.typelib %{_libdir}/libgtksourceview-%{majorver}.so.0*
%{_libdir}/libgtksourceview-5.so.0* %{_datadir}/gtksourceview-%{majorver}/
%{_datadir}/gtksourceview-5/
%{_datadir}/icons/hicolor/scalable/actions/* %{_datadir}/icons/hicolor/scalable/actions/*
%{_bindir}/%{name}-widget
%files devel %files devel
%{_includedir}/gtksourceview-5/ %{_includedir}/gtksourceview-%{majorver}/
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%{_libdir}/libgtksourceview-5.so %{_libdir}/libgtksourceview-%{majorver}.so
%dir %{_datadir}/gir-1.0 %{_datadir}/gir-1.0/GtkSource-%{majorver}.gir
%{_datadir}/gir-1.0/GtkSource-5.gir
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/* %{_datadir}/gtk-doc/html/*
%dir %{_datadir}/vala %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/gtksourceview-5.deps
%{_datadir}/vala/vapi/gtksourceview-5.vapi
%files tests %files tests
%dir %{_libexecdir}/installed-tests %{_bindir}/gtksourceview%{majorver}-widget
%{_libexecdir}/installed-tests/gtksourceview-5/ %{_libexecdir}/installed-tests
%dir %{_datadir}/installed-tests %{_datadir}/installed-tests
%{_datadir}/installed-tests/gtksourceview-5/
%changelog %changelog
* Wed Aug 25 2021 Amanda Graven <amanda@amandag.net> - 5.1.0-1 * Tue Oct 25 2021 Amanda Graven <amanda@amandag.net> - 5.2.0-1
- Initial packaging of GtkSourceView 5 - Initial packaging of GtkSourceView 5