aboutsummaryrefslogtreecommitdiff
path: root/build-aux/rpm/map.spec
blob: d0b59813ecf591f163f00bfe1866cbc711a38baf (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
%global app_id systems.tranquil.Map

Name:           map
Version:        1.0.4
Release:        1%{?dist}
Summary:        Wardley Map editor for Linux

License:        AGPL-3.0-or-later
URL:            https://map.tranquil.systems/map-for-linux
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}-%{version}-vendor.tar.xz

BuildRequires:  meson >= 1.0.0
BuildRequires:  rust >= 1.92
BuildRequires:  cargo
BuildRequires:  gettext
BuildRequires:  pkgconfig(glib-2.0) >= 2.84.0
BuildRequires:  pkgconfig(gio-2.0) >= 2.84.0
BuildRequires:  pkgconfig(gtk4) >= 4.18.0
BuildRequires:  pkgconfig(libadwaita-1) >= 1.7.0
BuildRequires:  pkgconfig(gtksourceview-5) >= 5.16.0

Requires:       gtk4 >= 4.18.0
Requires:       libadwaita >= 1.7.0
Requires:       gtksourceview5 >= 5.16.0

%description
A Wardley Map editor for Linux, built with GTK4 and libadwaita.

%prep
%autosetup -p1
%autosetup -T -D -a1

mkdir -p .cargo
cat > .cargo/config.toml << 'EOF'
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
%meson
%meson_build

%install
%meson_install

%check
%meson_test
desktop-file-validate %{buildroot}%{_datadir}/applications/%{app_id}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{app_id}.metainfo.xml

%files
%license LICENSE
%doc README.md
%{_bindir}/map
%{_datadir}/applications/%{app_id}.desktop
%{_datadir}/metainfo/%{app_id}.metainfo.xml
%{_datadir}/icons/hicolor/scalable/apps/%{app_id}.svg
%{_datadir}/icons/hicolor/symbolic/apps/%{app_id}-symbolic.svg
%{_datadir}/dbus-1/services/%{app_id}.service
%{_datadir}/gtksourceview-5/language-specs/wmap.lang
%{_datadir}/locale/*/LC_MESSAGES/%{app_id}.mo

%changelog
* Mon Mar 30 2026 Rubén Beltrán del Río <map@r.bdr.sh> - 1.0.4-1
- Fix rendering issue with icon in about page when installing via flatpak
- Use breakpoints to render preferences correctly in mobile screens
  (KNOWN ISSUE: For sizes under 377 px, the templates screen will move slightly)
- Stop building rpms for fedora 42 and add fedora 44

* Fri Mar 27 2026 Rubén Beltrán del Río <map@r.bdr.sh> - 1.0.3-1
- Add about window with a reference of the language
- Brand colors for flathub provide better contrast
- New icon
- Summary that's more descriptive for a layperson
- Disable horizontal layout at smaller window sizes to make usage easier on phones
- Use Adwaita window and toolbar

* Sat Jan 24 2026 Rubén Beltrán del Río <map@r.bdr.sh> - 1.0.2-1
- Add adwaita feature to relm4

* Mon Jan 19 2026 Rubén Beltrán del Río <map@r.bdr.sh> - 1.0.1-1
- Add adwaita feature to relm4

* Mon Jan 19 2026 Rubén Beltrán del Río <map@r.bdr.sh> - 1.0.0-1
- Initial release