~ubuntu-branches/ubuntu/karmic/firmware-tools/karmic

« back to all changes in this revision

Viewing changes to pkg/firmware-tools.spec

  • Committer: Bazaar Package Importer
  • Author(s): Matt Domsch
  • Date: 2007-12-15 23:00:29 UTC
  • Revision ID: james.westby@ubuntu.com-20071215230029-9aly4zd935kqtm60
Tags: upstream-1.5.10
ImportĀ upstreamĀ versionĀ 1.5.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###################################################################
 
2
#
 
3
# WARNING
 
4
#
 
5
# These are all automatically replaced by the release script.
 
6
# START = Do not edit manually
 
7
%define major 1
 
8
%define minor 5
 
9
%define sub 10
 
10
%define extralevel %{nil}
 
11
%define rpm_release 1
 
12
%define release_name firmware-tools
 
13
%define release_version %{major}.%{minor}.%{sub}%{extralevel}
 
14
#
 
15
# END = Do not edit manually
 
16
#
 
17
###################################################################
 
18
 
 
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()")}
 
21
 
 
22
#disable empty debuginfo package
 
23
%define debug_package %{nil}
 
24
 
 
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
 
30
%endif
 
31
 
 
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
 
35
BuildRequires:  python
 
36
# override sitelib because this messes up on x86_64
 
37
%define python_sitelib %{_exec_prefix}/lib/python2.2/site-packages/
 
38
%endif
 
39
 
 
40
Name:           firmware-tools 
 
41
Version:        %{release_version} 
 
42
Release:        %{rpm_release}%{?dist}
 
43
Summary:        Scripts and tools to manage firmware and BIOS updates
 
44
 
 
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)
 
51
 
 
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)
 
55
BuildArch:      noarch
 
56
%endif
 
57
 
 
58
BuildRequires:  python-devel
 
59
Requires: rpm-python
 
60
 
 
61
Provides: firmware_inventory(pci) = 0:%{release_version}
 
62
 
 
63
%description
 
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.
 
69
 
 
70
 
 
71
%prep
 
72
%setup -q
 
73
 
 
74
 
 
75
%build
 
76
%{__python} setup.py build
 
77
 
 
78
 
 
79
%install
 
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
 
87
%endif
 
88
 
 
89
 
 
90
%clean
 
91
rm -rf $RPM_BUILD_ROOT
 
92
 
 
93
 
 
94
%files
 
95
%defattr(-,root,root,-)
 
96
%doc COPYING-GPL COPYING-OSL README
 
97
%{python_sitelib}/*
 
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/
 
104
 
 
105
%if "%{enable_yum_plugins}" == "1"
 
106
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/*
 
107
%{_exec_prefix}/lib/yum-plugins/*
 
108
%endif
 
109
 
 
110
 
 
111
%changelog
 
112
* Thu Aug 23 2007 Michael E Brown <michael_e_brown at dell.com> - 1.5.6-1
 
113
- rebase to upstream release
 
114
 
 
115
* Fri Aug 17 2007 Michael E Brown <michael_e_brown at dell.com> - 1.5.5-1
 
116
- rebase to upstream release
 
117
 
 
118
* Fri Aug 17 2007 Michael E Brown <michael_e_brown at dell.com> - 1.4.2-1
 
119
- rebase to upstream release
 
120
 
 
121
* Tue May 1 2007 Michael E Brown <michael_e_brown at dell.com> - 1.2.6-1
 
122
- disable empty debuginfo package
 
123
 
 
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)
 
126
 
 
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
 
129
 
 
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
 
133
 
 
134
* Mon Mar 12 2007 Michael E Brown <michael_e_brown at dell.com> - 1.2.0-1
 
135
- Fedora-compliant packaging changes.