From 37de2168ab6bc1420ae0ca435657a291eb3291af Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 20 Jun 2022 21:00:34 +0200 Subject: [PATCH 1/1] new --- mmc-utils.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 mmc-utils.spec 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* -- 2.43.0