Files
packages/anda/system/polycrystal/polycrystal.spec
T
Owen Zimmerman deb18d2fa7 Add: Polycrystal (#2498)
* Add: Polycrystal

* switch from commit based to release based

* WIP - add systemd macros and potential preset file calling

* install service file

* Forgot to put the preset file in the files section

* update changelog

* add config and data dirs

* enable systemd scriptlets

* create empty dirs

* fix changelog and update version

* add buildroot prefixes

* remove config line

---------

Co-authored-by: madomado <madonuko@outlook.com>
Co-authored-by: lea <lleyton@fyralabs.com>
2024-11-21 10:16:38 +08:00

49 lines
1.4 KiB
RPMSpec

Name: polycrystal
Version: 0.2.0
Release: 1%?dist
Summary: Barebones "automatic" Flatpak installer for distribution-default Flatpak packages.
URL: https://github.com/Ultramarine-Linux/polycrystal
Source0: %url/archive/refs/tags/v%version.tar.gz
License: GPL
BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros systemd-rpm-macros mold glib2-devel flatpak-devel
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%summary
%prep
%autosetup -n polycrystal-%version
%cargo_prep_online
%build
%cargo_build
%install
mkdir -p %{buildroot}%{_datadir}/polycrystal %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/polycrystal/entries %{buildroot}%{_sharedstatedir}/polycrystal
%cargo_install
install -Dm644 polycrystal.service %{buildroot}%{_unitdir}/polycrystal.service
%post
%systemd_post polycrystal.service
%preun
%systemd_preun polycrystal.service
%postun
%systemd_postun_with_restart polycrystal.service
%files
%{_bindir}/polycrystal
%{_datadir}/polycrystal/
%{_unitdir}/polycrystal.service
%dir %{_sysconfdir}/polycrystal
%dir %{_sysconfdir}/polycrystal/entries
%dir %{_sharedstatedir}/polycrystal
%license LICENSE
%doc README.md
%changelog
* Tue Nov 19 2024 Owen-sz <owen@fyralabs.com>
- Switch from commit based to release based, and add systemd services
* Fri Nov 15 2024 Owen-sz <owen@fyralabs.com>
- Package Polycrystal