]>
Commit | Line | Data |
---|---|---|
db5dfd53 JP |
1 | %define snapdate 20231010 |
2 | %define gitcommit b5ca140312d279ad2f22068fd72a6230eea13436 | |
37de2168 JP |
3 | |
4 | Summary: Tool for configuring MMC storage devices from userspace | |
5 | Name: mmc-utils | |
6 | Version: 0 | |
7 | Release: 0.%{snapdate}.1 | |
8 | License: GPL v2 | |
9 | Group: Applications/System | |
10 | Source0: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/%{name}-%{gitcommit}.tar.gz | |
db5dfd53 | 11 | # Source0-md5: 8d15562e038f232b1e9f542cfcd3b0b3 |
37de2168 JP |
12 | URL: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/ |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | Tool for configuring MMC storage devices from userspace. | |
17 | ||
18 | %prep | |
19 | %setup -q -n %{name}-%{gitcommit} | |
20 | ||
21 | %build | |
22 | %{__make} \ | |
23 | CC="%{__cc}" \ | |
24 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
25 | LDFLAGS="%{rpmldflags}" \ | |
db5dfd53 | 26 | GIT_VERSION=%(echo %{gitcommit} | cut -c -6) |
37de2168 JP |
27 | |
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | ||
31 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
32 | ||
33 | %{__make} install \ | |
34 | DESTDIR=$RPM_BUILD_ROOT \ | |
35 | bindir="%{_bindir}" | |
36 | ||
37 | cp -p man/mmc.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
44 | %doc README | |
45 | %attr(755,root,root) %{_bindir}/mmc | |
46 | %{_mandir}/man1/mmc.1* |