gnome-text-editor/gnome-text-editor.spec

101 lines
2.9 KiB
RPMSpec
Raw Normal View History

%global glib2_version 2.69
2022-04-22 07:15:00 +00:00
%global gtk4_version 4.6
%global gtksourceview_version 5.4.1
%global enchant_version 2.2.0
%global tarball_version %%(echo %{version} | tr '~' '.')
Name: gnome-text-editor
2022-04-22 07:15:00 +00:00
Version: 42.1
Release: 2%{?dist}
Summary: A simple text editor for the GNOME desktop
License: GPLv3+
URL: https://gitlab.gnome.org/GNOME/gnome-text-editor
2022-01-20 09:27:23 +00:00
Source0: https://download.gnome.org/sources/%{name}/42/%{name}-%{tarball_version}.tar.xz
Patch0: patch-session-ensure-task-is-always-completed.patch
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
2022-01-20 09:27:23 +00:00
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/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
%{_bindir}/gnome-text-editor
2022-01-20 09:27:23 +00:00
%{_metainfodir}/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
2022-03-08 14:32:14 +00:00
%{_datadir}/gnome-text-editor/
%{_datadir}/icons/hicolor/*/*/*.svg
%changelog
* Fri May 27 2022 Link Dupont <link@sub-pop.net> - 42.1.-2
- Patch to fix session handling crash (RHBZ#2071116)
2022-04-22 07:15:00 +00:00
* Fri Apr 22 2022 David King <amigadave@amigadave.com> - 42.1-1
- Update to 42.1 (#2077673)
2022-03-19 11:08:39 +00:00
* Sat Mar 19 2022 David King <amigadave@amigadave.com> - 42.0-1
2022-04-22 07:15:00 +00:00
- Update to 42.0
2022-03-19 11:08:39 +00:00
2022-03-08 14:32:14 +00:00
* Tue Mar 08 2022 David King <amigadave@amigadave.com> - 42~rc1-1
- Update to 42.rc1
2022-01-20 09:27:23 +00:00
* Thu Jan 20 2022 David King <amigadave@amigadave.com> - 42~alpha2-1
- Update to 42.alpha2
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 41.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jan 06 2022 Neal Gompa <ngompa@fedoraproject.org> - 41.1-1
- Update to 41.1
* Tue Oct 05 2021 Neal Gompa <ngompa@fedoraproject.org> - 41.0-1
- Initial packaging