1
###################################################################
5
# These are all automatically replaced by the release script.
6
# START = Do not edit manually
10
%define extralevel %{nil}
12
%define release_name firmware-tools
13
%define release_version %{major}.%{minor}.%{sub}%{extralevel}
15
# END = Do not edit manually
17
###################################################################
19
# per fedora python packaging guidelines
20
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
22
#disable empty debuginfo package
23
%define debug_package %{nil}
25
# SUSE 10 has a crazy distutils.cfg that specifies prefix=/usr/local
26
# have to override that.
27
%define suse_prefix %{nil}
28
%if %(test -e /etc/SuSE-release && echo 1 || echo 0)
29
%define suse_prefix --prefix=/usr
32
# Compat for RHEL3 build
33
%if %(test "%{dist}" == ".el3" && echo 1 || echo 0)
34
# needed for RHEL3 build, python-devel doesnt seem to Require: python in RHEL3
36
# override sitelib because this messes up on x86_64
37
%define python_sitelib %{_exec_prefix}/lib/python2.2/site-packages/
41
Version: %{release_version}
42
Release: %{rpm_release}%{?dist}
43
Summary: Scripts and tools to manage firmware and BIOS updates
45
Group: Applications/System
46
# License is actually GPL/OSL dual license (GPL Compatible), but rpmlint complains
47
License: GPLv2+ or OSL
48
URL: http://linux.dell.com/libsmbios/download/
49
Source0: http://linux.dell.com/libsmbios/download/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
50
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
52
# This package is noarch for everything except RHEL3. Have to build arch
53
# specific pkgs for RHEL3
54
%if %(test "%{dist}" != ".el3" && echo 1 || echo 0)
58
BuildRequires: python-devel
61
Provides: firmware_inventory(pci) = 0:%{release_version}
64
The firmware-tools project provides tools to inventory hardware and a plugin
65
architecture so that different OEM vendors can provide different inventory
66
components. It is intended to tie to the package system to enable seamless
67
installation of updated firmware via your package manager, as well as provide
68
a framework for BIOS and firmware updates.
76
%{__python} setup.py build
80
rm -rf $RPM_BUILD_ROOT
81
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/firmware/firmware.d/
82
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/firmware
83
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %{suse_prefix}
84
%if "%{enable_yum_plugins}" != "1"
85
rm -rf $RPM_BUILD_ROOT/usr/lib/yum-plugins
86
rm -rf $RPM_BUILD_ROOT/etc/yum/pluginconf.d
91
rm -rf $RPM_BUILD_ROOT
95
%defattr(-,root,root,-)
96
%doc COPYING-GPL COPYING-OSL README
98
%attr(0755,root,root) %{_bindir}/*
99
%{_datadir}/firmware-tools/
100
%dir %{_sysconfdir}/firmware
101
%dir %{_sysconfdir}/firmware/firmware.d
102
%config(noreplace) %{_sysconfdir}/firmware/firmware.conf
103
%{_datadir}/firmware/
105
%if "%{enable_yum_plugins}" == "1"
106
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/*
107
%{_exec_prefix}/lib/yum-plugins/*
112
* Thu Aug 23 2007 Michael E Brown <michael_e_brown at dell.com> - 1.5.6-1
113
- rebase to upstream release
115
* Fri Aug 17 2007 Michael E Brown <michael_e_brown at dell.com> - 1.5.5-1
116
- rebase to upstream release
118
* Fri Aug 17 2007 Michael E Brown <michael_e_brown at dell.com> - 1.4.2-1
119
- rebase to upstream release
121
* Tue May 1 2007 Michael E Brown <michael_e_brown at dell.com> - 1.2.6-1
122
- disable empty debuginfo package
124
* Tue Mar 20 2007 Michael E Brown <michael_e_brown at dell.com> - 1.2.5-1
125
- Remove python-abi dep for RHEL3 (it was broken)
127
* Fri Mar 16 2007 Michael E Brown <michael_e_brown at dell.com> - 1.2.4-1
128
- fix typo in sitelib path -- only for RHEL3 build
130
* Wed Mar 14 2007 Michael E Brown <michael_e_brown at dell.com> - 1.2.3-1
131
- create and own {_sysconfdir}/firmware/firmware.d/ for plugins.
132
- Fedora review changes
134
* Mon Mar 12 2007 Michael E Brown <michael_e_brown at dell.com> - 1.2.0-1
135
- Fedora-compliant packaging changes.