blob: 94b6dd5125bfedd29343b704aa5c2ac49edaa64c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
%global forgeurl https://gitlab.gnome.org/GNOME/gnome-text-editor
%global uuid org.gnome.TextEditor
Name: gnome-text-editor
Version: 41.1
Release: %autorelease
Summary: A simple text editor
%global tag %{version}
%forgemeta
License: GPLv3+
URL: %{forgeurl}
Source0: %{forgesource}
BuildRequires: meson
BuildRequires: itstool
BuildRequires: gtk4-devel
BuildRequires: gtksourceview5-devel
BuildRequires: libadwaita-devel
BuildRequires: enchant2-devel
BuildRequires: libicu-devel
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
Requires: hicolor-icon-theme
%description
Text Editor is a simple text editor that focus 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
%build
%meson
%meson_build
%install
%meson_install
mkdir -p %{buildroot}%{_metainfodir}/
mv %{buildroot}%{_datadir}/appdata/%{uuid}.appdata.xml %{buildroot}%{_metainfodir}/%{uuid}.metainfo.xml
rmdir %{buildroot}%{_datadir}/appdata
%find_lang %{name}
%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{uuid}.desktop
%files -f %{name}.lang
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_metainfodir}/%{uuid}.metainfo.xml
%{_datadir}/applications/%{uuid}.desktop
%{_datadir}/dbus-1/services/%{uuid}.service
%{_datadir}/glib-2.0/schemas/%{uuid}.gschema.xml
%{_datadir}/help/*/%{name}
%{_datadir}/icons/hicolor/*/*/*.svg
%changelog
%autochangelog
|