diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1062e9c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gnome-text-editor-41.1.tar.xz diff --git a/gnome-text-editor.spec b/gnome-text-editor.spec new file mode 100644 index 0000000..8be23f5 --- /dev/null +++ b/gnome-text-editor.spec @@ -0,0 +1,81 @@ +%global glib2_version 2.69 +%global gtk4_version 4.3 +%global gtksourceview_version 5.1.1 +%global enchant_version 2.2.0 + +%global tarball_version %%(echo %{version} | tr '~' '.') + +Name: gnome-text-editor +Version: 41.1 +Release: 1%{?dist} +Summary: A simple text editor for the GNOME desktop + +License: GPLv3+ +URL: https://gitlab.gnome.org/GNOME/gnome-text-editor +Source0: https://download.gnome.org/sources/%{name}/41/%{name}-%{tarball_version}.tar.xz + +BuildRequires: pkgconfig(enchant-2) >= %{enchant_version} +BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(gtk4) >= %{gtk4_version} +BuildRequires: pkgconfig(gtksourceview-5) >= %{gtksourceview_version} +BuildRequires: pkgconfig(icu-uc) +BuildRequires: pkgconfig(libadwaita-1) +BuildRequires: desktop-file-utils +BuildRequires: gcc +BuildRequires: itstool +BuildRequires: meson +BuildRequires: /usr/bin/appstream-util + +Requires: glib2%{?_isa} >= %{glib2_version} +Requires: enchant2%{?_isa} >= %{enchant_version} +Requires: gtk4%{?_isa} >= %{gtk4_version} +Requires: gtksourceview5%{?_isa} >= %{gtksourceview_version} + +%description +GNOME Text Editor is a simple text editor that focuses on session management. +It works hard to keep track of changes and state even if you quit the application. +You can come back to your work even if you've never saved it to a file. + + +%prep +%autosetup -p1 -n %{name}-%{tarball_version} + + +%build +%meson -Ddevelopment=false +%meson_build + + +%install +%meson_install + +%find_lang %{name} --with-gnome + + +%check +appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/org.gnome.TextEditor.appdata.xml +desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.TextEditor.desktop + + +%files -f %{name}.lang +%doc README.md NEWS +%license COPYING +%dir %{_datadir}/help/C +%doc %{_datadir}/help/C/%{name}/ +%{_bindir}/gnome-text-editor +%{_datadir}/appdata/org.gnome.TextEditor.appdata.xml +%{_datadir}/applications/org.gnome.TextEditor.desktop +%dir %{_datadir}/dbus-1 +%dir %{_datadir}/dbus-1/services +%{_datadir}/dbus-1/services/org.gnome.TextEditor.service +%{_datadir}/glib-2.0/schemas/org.gnome.TextEditor.gschema.xml +%{_datadir}/icons/hicolor/*/*/*.svg + + +%changelog +* Thu Jan 06 2022 Neal Gompa - 41.1-1 +- Update to 41.1 + +* Tue Oct 05 2021 Neal Gompa - 41.0-1 +- Initial packaging + diff --git a/sources b/sources new file mode 100644 index 0000000..412dd3d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gnome-text-editor-41.1.tar.xz) = c96330ca2daecbc931e2b9b55edb87786c45659fd39e2df36ea525f4e08ecb402f4fb480de9bf114329fa917f3f06ee704e9a45b38a648cc1f04e3dc5e03c0af