Tweak arch build rules, minor spec cleanups, Use %%license, Build on aarch64
This commit is contained in:
parent
4f7ace108c
commit
19b24f8319
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,9 +1 @@
|
|||||||
flashrom-0.9.2.tar.bz2
|
/flashrom-*.tar.bz2
|
||||||
/flashrom-0.9.2.tar.bz2
|
|
||||||
/flashrom-0.9.3.tar.xz
|
|
||||||
/flashrom-0.9.3.tar.bz2
|
|
||||||
/flashrom-0.9.4.tar.bz2
|
|
||||||
/flashrom-0.9.5.2.tar.bz2
|
|
||||||
/flashrom-0.9.6.1.tar.bz2
|
|
||||||
/flashrom-0.9.7.tar.bz2
|
|
||||||
/flashrom-0.9.9.tar.bz2
|
|
||||||
|
@ -1,23 +1,27 @@
|
|||||||
Summary: Simple program for reading/writing flash chips content
|
Summary: Simple program for reading/writing flash chips content
|
||||||
Name: flashrom
|
Name: flashrom
|
||||||
Version: 0.9.9
|
Version: 0.9.9
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Applications/System
|
|
||||||
URL: http://flashrom.org
|
URL: http://flashrom.org
|
||||||
|
|
||||||
Source0: http://download.flashrom.org/releases/%{name}-%{version}.tar.bz2
|
Source0: http://download.flashrom.org/releases/%{name}-%{version}.tar.bz2
|
||||||
Patch1: flashrom-0001-Switch-to-uaccess.patch
|
Patch1: flashrom-0001-Switch-to-uaccess.patch
|
||||||
|
|
||||||
BuildRequires: pciutils-devel
|
BuildRequires: pciutils-devel
|
||||||
BuildRequires: libusb-devel
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
%ifnarch %{arm} ppc %{power64}
|
|
||||||
BuildRequires: libftdi-devel
|
BuildRequires: libftdi-devel
|
||||||
|
BuildRequires: libusb-devel
|
||||||
|
# Used for new programmers (libusb0 will eventually be removed)
|
||||||
|
BuildRequires: libusbx-devel
|
||||||
|
BuildRequires: systemd
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
%ifarch %{ix86} x86_64 aarch64
|
||||||
BuildRequires: dmidecode
|
BuildRequires: dmidecode
|
||||||
Requires: dmidecode
|
Requires: dmidecode
|
||||||
%endif
|
%endif
|
||||||
Requires: udev
|
Requires: udev
|
||||||
# see rhbz #450273, #495226
|
# see rhbz #495226
|
||||||
ExclusiveArch: %{ix86} x86_64 ppc %{power64} %{arm}
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,17 +49,24 @@ make %{?_smp_mflags} %{flashrom_flags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install %{flashrom_flags} DESTDIR=%{buildroot} PREFIX=%{_prefix}
|
make install %{flashrom_flags} DESTDIR=%{buildroot} PREFIX=%{_prefix}
|
||||||
install -D -p -m 0644 util/z60_flashrom.rules %{buildroot}/lib/udev/rules.d/z60_flashrom.rules
|
install -D -p -m 0644 util/z60_flashrom.rules %{buildroot}/%{_udevrulesdir}/z60_flashrom.rules
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING README
|
%{!?_licensedir:%global license %%doc}
|
||||||
|
%license COPYING
|
||||||
|
%doc README
|
||||||
%{_sbindir}/%{name}
|
%{_sbindir}/%{name}
|
||||||
%{_mandir}/man8/%{name}.*
|
%{_mandir}/man8/%{name}.*
|
||||||
/lib/udev/rules.d/z60_flashrom.rules
|
%{_udevrulesdir}/z60_flashrom.rules
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Mar 12 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.9-3
|
||||||
|
- Tweak arch build rules, minor spec cleanups
|
||||||
|
- Use %%license
|
||||||
|
- Build on aarch64
|
||||||
|
|
||||||
* Wed Mar 8 2017 Peter Lemenkov <lemenkov@gmail.com> - 0.9.9-2
|
* Wed Mar 8 2017 Peter Lemenkov <lemenkov@gmail.com> - 0.9.9-2
|
||||||
- Proper udev rules
|
- Proper udev rules
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user