$ git show --format=fuller --patch-with-stat --summary cced2532341f5b035f335614e82ea940ce7e77da
commit cced2532341f5b035f335614e82ea940ce7e77da
Author: mandian <mandian@users.noreply.github.com>
AuthorDate: Sat Jan 13 03:45:10 2024 +0000
Commit: mandian <mandian@users.noreply.github.com>
CommitDate: Sat Jan 13 03:45:10 2024 +0000
Initial release
---
.abf.yml | 2 ++
zzz.spec | 33 +++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+)
create mode 100644 .abf.yml
create mode 100644 zzz.spec
diff --git a/.abf.yml b/.abf.yml
new file mode 100644
index 0000000..2d6aed6
--- /dev/null
+++ b/.abf.yml
@@ -0,0 +1,2 @@
+sources:
+ zzz-0.1.1.tar.gz: ea03f6299f1a908c0c517c71cccc56582473d498
diff --git a/zzz.spec b/zzz.spec
new file mode 100644
index 0000000..6725b10
--- /dev/null
+++ b/zzz.spec
@@ -0,0 +1,33 @@
+Summary: A simple program to suspend or hibernate your computer
+Name: zzz
+Version: 0.1.1
+Release: 1
+License: MIT
+Group: System/Configuration/Hardware
+Url: https://github.com/jirutka/zzz
+Source0: https://github.com/jirutka/zzz/archive/v%{version}/%{name}-%{version}.tar.gz
+
+BuildRequires: asciidoctor
+
+%description
+A simple program to suspend or hibernate your computer. It supports hooks
+before and after suspending.
+
+%files
+%license LICENSE
+%doc README.adoc
+%config(noreplace) %{_sysconfdir}/zzz.d/
+%{_bindir}/*
+%{_mandir}/man8/*
+
+%prep
+%autosetup -p1
+
+%build
+%set_build_flags
+export CFLAGS="%{optflags} -DZZZ_LOCK_FILE='\"/run/zzz.lock\"'"
+%make_build
+
+%install
+%make_install prefix=/usr sbindir=/usr/bin
+