]> git.pld-linux.org Git - packages/mmc-utils.git/blame - mmc-utils.spec
up to 20231010 snap
[packages/mmc-utils.git] / mmc-utils.spec
CommitLineData
db5dfd53
JP
1%define snapdate 20231010
2%define gitcommit b5ca140312d279ad2f22068fd72a6230eea13436
37de2168
JP
3
4Summary: Tool for configuring MMC storage devices from userspace
5Name: mmc-utils
6Version: 0
7Release: 0.%{snapdate}.1
8License: GPL v2
9Group: Applications/System
10Source0: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/%{name}-%{gitcommit}.tar.gz
db5dfd53 11# Source0-md5: 8d15562e038f232b1e9f542cfcd3b0b3
37de2168
JP
12URL: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16Tool 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
29rm -rf $RPM_BUILD_ROOT
30
31install -d $RPM_BUILD_ROOT%{_mandir}/man1
32
33%{__make} install \
34 DESTDIR=$RPM_BUILD_ROOT \
35 bindir="%{_bindir}"
36
37cp -p man/mmc.1 $RPM_BUILD_ROOT%{_mandir}/man1
38
39%clean
40rm -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*
This page took 0.082443 seconds and 4 git commands to generate.