From 37de2168ab6bc1420ae0ca435657a291eb3291af Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 20 Jun 2022 21:00:34 +0200 Subject: [PATCH 1/2] 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 From db5dfd536c59147aec11b9f1adb3db2608402abb Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Thu, 23 Nov 2023 17:23:27 +0100 Subject: [PATCH 2/2] up to 20231010 snap --- mmc-utils.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mmc-utils.spec b/mmc-utils.spec index 051b5e7..1221461 100644 --- a/mmc-utils.spec +++ b/mmc-utils.spec @@ -1,5 +1,5 @@ -%define snapdate 20220620 -%define gitcommit b7e4d5a6ae9942d26a11de9b05ae7d52c0802802 +%define snapdate 20231010 +%define gitcommit b5ca140312d279ad2f22068fd72a6230eea13436 Summary: Tool for configuring MMC storage devices from userspace Name: mmc-utils @@ -8,7 +8,7 @@ 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 +# Source0-md5: 8d15562e038f232b1e9f542cfcd3b0b3 URL: https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -23,6 +23,7 @@ Tool for configuring MMC storage devices from userspace. CC="%{__cc}" \ CFLAGS="%{rpmcflags} %{rpmcppflags}" \ LDFLAGS="%{rpmldflags}" \ + GIT_VERSION=%(echo %{gitcommit} | cut -c -6) %install rm -rf $RPM_BUILD_ROOT -- 2.43.0