diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81cef25 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gtksourceview-5.2.0.tar.xz diff --git a/gtksourceview5.spec b/gtksourceview5.spec new file mode 100644 index 0000000..1755aa3 --- /dev/null +++ b/gtksourceview5.spec @@ -0,0 +1,99 @@ +%global glib_version 2.66 +%global gtk_version 4.2 + +%global api_ver 5 + +Name: gtksourceview5 +Version: 5.2.0 +Release: 1%{?dist} +Summary: Source code editing widget + +License: LGPLv2+ +URL: https://wiki.gnome.org/Projects/GtkSourceView +Source0: https://download.gnome.org/sources/gtksourceview/%{api_ver}.2/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-%{api_ver} + +%files -f gtksourceview-%{api_ver}.lang +%license COPYING +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/GtkSource-%{api_ver}.typelib +%{_libdir}/libgtksourceview-%{api_ver}.so.0* +%{_datadir}/gtksourceview-%{api_ver}/ +%{_datadir}/icons/hicolor/scalable/actions/* + +%files devel +%{_includedir}/gtksourceview-%{api_ver}/ +%{_libdir}/pkgconfig/*.pc +%{_libdir}/libgtksourceview-%{api_ver}.so +%dir %{_datadir}/gir-1.0 +%{_datadir}/gir-1.0/GtkSource-%{api_ver}.gir +%dir %{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html +%{_datadir}/gtk-doc/html/* +%{_datadir}/vala + +%files tests +%{_bindir}/gtksourceview%{api_ver}-widget +%{_libexecdir}/installed-tests +%{_datadir}/installed-tests + +%changelog +* Mon Oct 25 2021 Amanda Graven - 5.2.0-1 +- Initial packaging of GtkSourceView 5 diff --git a/sources b/sources new file mode 100644 index 0000000..181edf7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gtksourceview-5.2.0.tar.xz) = 0d71b0340b11b3aadfff662abbaa8606cda696c256855201e559b144b124d6e7c87aee5ea1407928f549b0a5e8480c669403fe73ad76520c2214635a1a31bf52