From cb6a26395073effb59a4e81926faa6134d0814e0 Mon Sep 17 00:00:00 2001 From: Amanda Graven Date: Thu, 26 Aug 2021 18:56:05 +0200 Subject: [PATCH] Add spec file --- gtksourceview5.spec | 100 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 gtksourceview5.spec diff --git a/gtksourceview5.spec b/gtksourceview5.spec new file mode 100644 index 0000000..eae3c6d --- /dev/null +++ b/gtksourceview5.spec @@ -0,0 +1,100 @@ +%global glib_version 2.66 +%global gtk_version 4.2 + +Name: gtksourceview5 +Version: 5.1.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/5.1/gtksourceview-%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: meson +BuildRequires: pkgconfig(glib-2.0) >= %{glib_version} +BuildRequires: pkgconfig(gio-2.0) >= %{glib_version} +BuildRequires: pkgconfig(gobject-2.0) >= %{glib_version} +BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.42.0 +BuildRequires: pkgconfig(gtk4) >= %{gtk_version} +BuildRequires: pkgconfig(gtk-doc) >= 1.25 +BuildRequires: pkgconfig(libxml-2.0) >= 2.6 +BuildRequires: pkgconfig(fribidi) >= 0.19.7 +BuildRequires: pkgconfig(libpcre2-8) >= 10.21 +BuildRequires: pkgconfig(vapigen) + +Requires: glib2%{?_isa} >= %{glib_version} +Requires: gtk4%{?_isa} >= %{gtk_version} +Requires: pcre2 +Requires: libxml2 +Requires: fribidi + +%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 5 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 -Dinstall_tests=true +%meson_build + +%install +%meson_install + +%find_lang gtksourceview-5 + +%files -f gtksourceview-5.lang +%license COPYING +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/GtkSource-5.typelib +%{_libdir}/libgtksourceview-5.so.0* +%{_datadir}/gtksourceview-5/ +%{_datadir}/icons/hicolor/scalable/actions/* +%{_bindir}/%{name}-widget + +%files devel +%{_includedir}/gtksourceview-5/ +%{_libdir}/pkgconfig/*.pc +%{_libdir}/libgtksourceview-5.so +%dir %{_datadir}/gir-1.0 +%{_datadir}/gir-1.0/GtkSource-5.gir +%dir %{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html +%{_datadir}/gtk-doc/html/* +%dir %{_datadir}/vala +%dir %{_datadir}/vala/vapi +%{_datadir}/vala/vapi/gtksourceview-5.deps +%{_datadir}/vala/vapi/gtksourceview-5.vapi + +%files tests +%dir %{_libexecdir}/installed-tests +%{_libexecdir}/installed-tests/gtksourceview-5/ +%dir %{_datadir}/installed-tests +%{_datadir}/installed-tests/gtksourceview-5/ + +%changelog +* Wed Aug 25 2021 Amanda Graven - 5.1.0-1 +- Initial packaging of GtkSourceView 5