mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
78 lines
2.1 KiB
RPMSpec
78 lines
2.1 KiB
RPMSpec
Name: flatpost
|
|
Version: 1.0.6
|
|
Release: 1%?dist
|
|
License: BSD-2-Clause
|
|
Summary: Desktop environment agnostic Flathub software center.
|
|
|
|
URL: https://github.com/gloriouseggroll/flatpost
|
|
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
|
|
Source1: flatpost-mime.xml
|
|
Patch0: flatpost-desktop-mimetype.patch
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
BuildRequires: make
|
|
BuildRequires: desktop-file-utils
|
|
|
|
Provides: nobara-updater
|
|
|
|
# App Deps
|
|
Requires: python
|
|
Requires: python3
|
|
Requires: python3-gobject
|
|
Requires: python3-requests
|
|
Requires: python3-pillow
|
|
Requires: python3-svgwrite
|
|
Requires: python3-fonttools
|
|
Requires: python3-numpy
|
|
|
|
Requires: flatpak
|
|
Requires: glib2
|
|
Requires: gtk3
|
|
Requires: gtk4
|
|
Requires: xdg-utils
|
|
|
|
Requires(post): shared-mime-info
|
|
Requires(postun): shared-mime-info
|
|
Requires(posttrans): shared-mime-info
|
|
|
|
%description
|
|
Desktop environment agnostic Flathub software center. Allows for browsing,
|
|
installation, removal, updating, and permission management of flatpak packages and repositories.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
make all DESTDIR=%{buildroot}
|
|
install -D -m644 %{SOURCE1} %{buildroot}/usr/share/mime/packages/flatpost.xml
|
|
|
|
%check
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/com.flatpost.flatpostapp.desktop
|
|
|
|
%post
|
|
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
|
|
update-mime-database usr/share/mime &>/dev/null
|
|
update-desktop-database -q
|
|
|
|
%postun
|
|
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
|
|
update-mime-database usr/share/mime &>/dev/null
|
|
update-desktop-database -q
|
|
|
|
%posttrans
|
|
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
|
|
update-mime-database usr/share/mime &>/dev/null
|
|
update-desktop-database -q
|
|
|
|
%files
|
|
%{python3_sitelib}/flatpost/
|
|
%{_bindir}/flatpost
|
|
%{_datadir}/applications/com.flatpost.flatpostapp.desktop
|
|
%{_datadir}/flatpost/collections_data.json
|
|
%{_datadir}/icons/hicolor/1024x1024/apps/com.flatpost.flatpostapp.png
|
|
%{_datadir}/icons/hicolor/64x64/apps/com.flatpost.flatpostapp.png
|
|
%{_datadir}/mime/packages/flatpost.xml
|
|
%license %{_datadir}/licenses/flatpost/LICENSE
|
|
|