]> git.pld-linux.org Git - packages/mmc-utils.git/commitdiff
new master auto/th/mmc-utils-0-0.20220620.1
authorJan Palus <atler@pld-linux.org>
Mon, 20 Jun 2022 19:00:34 +0000 (21:00 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 20 Jun 2022 19:00:34 +0000 (21:00 +0200)
mmc-utils.spec [new file with mode: 0644]

diff --git a/mmc-utils.spec b/mmc-utils.spec
new file mode 100644 (file)
index 0000000..051b5e7
--- /dev/null
@@ -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*
This page took 0.090678 seconds and 4 git commands to generate.