2014-12-27 13:39:57 +01:00
|
|
|
#
|
|
|
|
# spec file for package mmc-utils
|
|
|
|
#
|
2016-02-17 19:19:23 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-12-27 13:39:57 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mmc-utils
|
2016-06-29 17:22:54 +02:00
|
|
|
Version: 0.1+git.20160623
|
2014-12-27 13:39:57 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Tools for MMC/SD devices
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: Hardware/Other
|
|
|
|
Url: http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source1: https://www.gnu.org/licenses/gpl-2.0.txt
|
2016-02-17 19:19:23 +01:00
|
|
|
Patch0: do_not_use_asm_generic.patch
|
2014-12-27 13:39:57 +01:00
|
|
|
BuildRequires: xz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Userspace tools for controlling and querying MMC/SD storage devices
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
cp %{SOURCE1} LICENSE.GPL-2.0
|
2016-02-17 19:19:23 +01:00
|
|
|
%patch0 -p1
|
2014-12-27 13:39:57 +01:00
|
|
|
|
|
|
|
%build
|
2015-12-05 14:12:57 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
2016-03-01 17:39:53 +01:00
|
|
|
make %{?_smp_mflags}
|
2014-12-27 13:39:57 +01:00
|
|
|
|
|
|
|
%install
|
2016-03-01 17:39:53 +01:00
|
|
|
make %{?_smp_mflags} install prefix=%{_prefix} DESTDIR=%{buildroot}
|
2015-12-05 14:12:57 +01:00
|
|
|
install -D -m 0644 man/mmc.1 %{buildroot}%{_mandir}/man1/mmc.1
|
2014-12-27 13:39:57 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE.GPL-2.0
|
2015-12-05 14:12:57 +01:00
|
|
|
%{_bindir}/mmc
|
|
|
|
%{_mandir}/man1/mmc.1%{ext_man}
|
2014-12-27 13:39:57 +01:00
|
|
|
|
|
|
|
%changelog
|