build via workflow?
This commit is contained in:
parent
9971bb507e
commit
757645fe51
4 changed files with 158 additions and 1 deletions
83
packaging/rpm/flatpost.spec
Normal file
83
packaging/rpm/flatpost.spec
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
%global tag 1.0.0
|
||||
|
||||
# Manual commit is auto-inserted by workflow
|
||||
%global commit 35fa9a68d94bde4ed68a6bd07482b2a87a8d42df
|
||||
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
%global build_timestamp %(date +"%Y%m%d")
|
||||
|
||||
%global rel_build 1.%{build_timestamp}.%{shortcommit}%{?dist}
|
||||
|
||||
Name: flatpost
|
||||
Version: 1.0.0
|
||||
Release: %{rel_build}
|
||||
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
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: make
|
||||
|
||||
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
|
||||
|
||||
Provides: flatpost
|
||||
|
||||
%description
|
||||
Desktop environment agnostic Flathub software center. Allows for browsing,
|
||||
installation, removal, updating, and permission management of flatpak packages and repositories.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n flatpost-%{version}
|
||||
|
||||
%build
|
||||
make all DESTDIR=%{buildroot}
|
||||
|
||||
%post
|
||||
#!/bin/bash
|
||||
|
||||
# Check if we already have the association
|
||||
if [ ! -f /usr/bin/xdg-mime ]; then
|
||||
# If xdg-mime is not available, skip this step
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Set the default application for .rpm files
|
||||
xdg-mime default /usr/share/applications/com.flatpost.flatpostapp.desktop application/vnd.flatpak.ref
|
||||
xdg-mime default /usr/share/applications/com.flatpost.flatpostapp.desktop application/vnd.flatpak.repo
|
||||
update-mime-database /usr/share/mime
|
||||
|
||||
%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
|
||||
%license %{_datadir}/licenses/flatpost/LICENSE
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%changelog
|
||||
* Fri Jun 28 2024 Your Name <you@example.com> - 1.0-1
|
||||
- Initial package
|
||||
Loading…
Add table
Add a link
Reference in a new issue