Files
packages/anda/apps/fontviewer/fontviewer.spec
T
Raboneko 8db7193326 add: fontviewer (#2205) (#2206)
* Create specfile

Signed-off-by: sadlerm4 <sad_lerm@hotmail.com>

* Add patch for meson.build

Signed-off-by: sadlerm4 <sad_lerm@hotmail.com>

* Create anda.hcl and update.rhai

Signed-off-by: sadlerm4 <sad_lerm@hotmail.com>

* Update version and add packager directive

---------

Signed-off-by: sadlerm4 <sad_lerm@hotmail.com>
(cherry picked from commit 1a5d36887a)

Co-authored-by: sadlerm4 <sad_lerm@hotmail.com>
2024-10-09 00:27:04 +08:00

48 lines
1.1 KiB
RPMSpec

%global commit dc5cd1490235f8c19424b3345a89727199c86df3
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20241003
Name: fontviewer
Version: %{commit_date}.git~%{shortcommit}
Release: 1%{?dist}
Summary: View and install fonts
License: GPL-2.0
URL: https://github.com/chocolateimage/%{name}
Source0: %{url}/archive/%{commit}.tar.gz
Patch0: fontviewer-meson.patch
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: pkgconfig(cairomm-1.0)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtkmm-3.0)
Requires: gtk3 fontconfig
Packager: sadlerm <sad_lerm@hotmail.com>
%description
A platform-agnostic GTK+ 3 alternative to GNOME's Font Viewer
%prep
%autosetup -n %{name}-%{commit} -p1
%build
%meson
%meson_build
%install
%meson_install
install -m 0755 -vd %{buildroot}%{_datadir}/applications
install -m 0755 -vp data/%{name}.desktop %{buildroot}%{_datadir}/applications/
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop