1 %define snapdate 20220620
2 %define gitcommit b7e4d5a6ae9942d26a11de9b05ae7d52c0802802
4 Summary: Tool for configuring MMC storage devices from userspace
7 Release: 0.%{snapdate}.1
9 Group: Applications/System
10 Source0: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/%{name}-%{gitcommit}.tar.gz
11 # Source0-md5: cf25e3725987c858ce33acb4e16ebf1d
12 URL: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Tool for configuring MMC storage devices from userspace.
19 %setup -q -n %{name}-%{gitcommit}
24 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
25 LDFLAGS="%{rpmldflags}" \
28 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_mandir}/man1
33 DESTDIR=$RPM_BUILD_ROOT \
36 cp -p man/mmc.1 $RPM_BUILD_ROOT%{_mandir}/man1
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
44 %attr(755,root,root) %{_bindir}/mmc
45 %{_mandir}/man1/mmc.1*