1 |
# $Id: smeserver-hwinfo.spec,v 1.3 2008/04/22 16:03:07 snetram Exp $ |
2 |
# Authority: gnujpl |
3 |
# Name: Jean-Paul Leclère |
4 |
|
5 |
%define name smeserver-hwinfo |
6 |
%define version 1.0 |
7 |
%define release 6 |
8 |
|
9 |
Summary: Harware info panel for SME Server. |
10 |
Name: %{name} |
11 |
Version: %{version} |
12 |
Release: %{release}%{?dist} |
13 |
License: GPL |
14 |
Group: System Environment/Daemons |
15 |
Source: %{name}-%{version}.tar.gz |
16 |
Patch0: smeserver-hwinfo-1.0-template.patch |
17 |
Patch1: smeserver-hwinfo-1.0-template.patch2 |
18 |
Patch2: smeserver-hwinfo-1.0-locale-2008-04-22.patch |
19 |
BuildRequires: e-smith-devtools |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
22 |
Requires: e-smith-base lshw |
23 |
Obsoletes: eos-hwinfo |
24 |
AutoReqProv: no |
25 |
|
26 |
%description |
27 |
smeserver-hwinfo adds panel providing informations about server harware configuration |
28 |
|
29 |
%changelog |
30 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-6 |
31 |
- Added e-smith-devtools as build requirement for the createlinks script |
32 |
|
33 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-5 |
34 |
- Trying to fix creatlinks build error |
35 |
|
36 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-4 |
37 |
- Added 22 April 2008 locale patch |
38 |
|
39 |
* Fri Apr 4 2008 Jean-Paul Leclere <jean-paul@leclere.org> |
40 |
- [1.0-3] |
41 |
- removing duplicate template fragment |
42 |
|
43 |
* Sun Jan 20 2008 Jean-Paul Leclere <jean-paul@leclere.org> |
44 |
- [1.0-2] |
45 |
- templates-custom replacement by templates fragment |
46 |
- change Copyright to License in spec |
47 |
|
48 |
* Fri Aug 24 2007 Jean-Paul Leclere <jean-paul@leclere.org> |
49 |
- [1.0-1] |
50 |
- port from Free-EOS eos-hwinfo, as a new panel in server-manager |
51 |
|
52 |
%prep |
53 |
%setup |
54 |
|
55 |
%patch0 -p1 |
56 |
%patch1 -p1 |
57 |
%patch2 -p1 |
58 |
|
59 |
%pre |
60 |
|
61 |
%post |
62 |
|
63 |
%build |
64 |
perl createlinks |
65 |
|
66 |
%install |
67 |
rm -rf $RPM_BUILD_ROOT |
68 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
69 |
rm -f e-smith-%{version}-filelist |
70 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
71 |
|
72 |
%preun |
73 |
|
74 |
%postun |
75 |
|
76 |
%clean |
77 |
rm -rf $RPM_BUILD_ROOT |
78 |
|
79 |
%files -f %{name}-%{version}-filelist |
80 |
%defattr(0644,root,root) |
81 |
|
82 |
|