]> git.pld-linux.org Git - packages/mmc-utils.git/blob - mmc-utils.spec
new
[packages/mmc-utils.git] / mmc-utils.spec
1 %define         snapdate        20220620
2 %define         gitcommit       b7e4d5a6ae9942d26a11de9b05ae7d52c0802802
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
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)
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}" \
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29
30 install -d $RPM_BUILD_ROOT%{_mandir}/man1
31
32 %{__make} install \
33         DESTDIR=$RPM_BUILD_ROOT \
34         bindir="%{_bindir}"
35
36 cp -p man/mmc.1 $RPM_BUILD_ROOT%{_mandir}/man1
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %doc README
44 %attr(755,root,root) %{_bindir}/mmc
45 %{_mandir}/man1/mmc.1*
This page took 0.069043 seconds and 3 git commands to generate.