[packages/mmc-utils] new
atler
atler at pld-linux.org
Mon Jun 20 21:00:56 CEST 2022
commit 37de2168ab6bc1420ae0ca435657a291eb3291af
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jun 20 21:00:34 2022 +0200
new
mmc-utils.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
---
diff --git a/mmc-utils.spec b/mmc-utils.spec
new file mode 100644
index 0000000..051b5e7
--- /dev/null
+++ b/mmc-utils.spec
@@ -0,0 +1,45 @@
+%define snapdate 20220620
+%define gitcommit b7e4d5a6ae9942d26a11de9b05ae7d52c0802802
+
+Summary: Tool for configuring MMC storage devices from userspace
+Name: mmc-utils
+Version: 0
+Release: 0.%{snapdate}.1
+License: GPL v2
+Group: Applications/System
+Source0: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/%{name}-%{gitcommit}.tar.gz
+# Source0-md5: cf25e3725987c858ce33acb4e16ebf1d
+URL: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tool for configuring MMC storage devices from userspace.
+
+%prep
+%setup -q -n %{name}-%{gitcommit}
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+ LDFLAGS="%{rpmldflags}" \
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ bindir="%{_bindir}"
+
+cp -p man/mmc.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/mmc
+%{_mandir}/man1/mmc.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mmc-utils.git/commitdiff/37de2168ab6bc1420ae0ca435657a291eb3291af
More information about the pld-cvs-commit
mailing list