[packages/samurai] - new
baggins
baggins at pld-linux.org
Wed Jul 27 20:20:01 CEST 2022
commit 76ae7dba68e26d48911c346aac027a5d2ecb8605
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Jul 27 20:19:42 2022 +0200
- new
samurai.spec | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
---
diff --git a/samurai.spec b/samurai.spec
new file mode 100644
index 0000000..fd84fbd
--- /dev/null
+++ b/samurai.spec
@@ -0,0 +1,42 @@
+Summary: ninja-compatible build tool written in C
+Name: samurai
+Version: 1.2
+Release: 0.1
+License: Apache v2.0
+Group: Development/Tools
+Source0: https://github.com/michaelforney/samurai/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 9991b88c2e7c4789222b0b46ec7d8940
+URL: https://github.com/michaelforney/samurai
+Provides: ninja = 1.9.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ninja-compatible build tool written in C.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# create directories if necessary
+#install -d $RPM_BUILD_ROOT
+
+%{__make} install \
+ PREFIX=%{_prefix} \
+ MANDIR=%{_mandir} \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/samu
+%{_mandir}/man1/samu.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/samurai.git/commitdiff/76ae7dba68e26d48911c346aac027a5d2ecb8605
More information about the pld-cvs-commit
mailing list