1 |
%define name ocs |
2 |
Summary: ocs is an Information Resource Manager |
3 |
Name: %{name} |
4 |
%define version 1.01 |
5 |
%define release 1 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GNU GPL version 2 |
9 |
URL: http://www.ocsinventory-ng.org/ |
10 |
Group: SMEserver/addon |
11 |
Source: OCSNG_LINUX_SERVER_1.01.tar.gz |
12 |
BuildArchitectures: noarch |
13 |
BuildRoot: /var/tmp/%{name}-%{version} |
14 |
Requires: e-smith-release >= 7.0 |
15 |
BuildRequires: e-smith-devtools |
16 |
AutoReqProv: no |
17 |
|
18 |
%description |
19 |
http://www.ocsinventory-ng.org/ |
20 |
Open Computer and Software Inventory Next Generation is an |
21 |
application designed to help a network or system administrator |
22 |
keep track of the computers configuration and |
23 |
software that are installed on the network. |
24 |
|
25 |
|
26 |
%changelog |
27 |
* Mon Dec 24 2007 Stephen Noble <support@dungog.net> 1.01-1 |
28 |
- initial release |
29 |
- builds from unchanged .tgz |
30 |
|
31 |
%prep |
32 |
%setup -c -n %{name} |
33 |
%build |
34 |
#this lets you drop a .tgz in with the root and it builds ok |
35 |
mkdir -p root/opt/inventory |
36 |
mv OCSNG_LINUX_SERVER_1.01 root/opt/inventory/ocs |
37 |
|
38 |
#fix later somehow, rpmbuild doesn't like files with spaces, so remove these files from the .tar.gz |
39 |
#error: Two files on one line: /opt/inventory/OCSNG_LINUX_SERVER_1.01/ocsreports/image/logo OCS-ng-48.png |
40 |
#error: Two files on one line: /opt/inventory/OCSNG_LINUX_SERVER_1.01/ocsreports/image/utilisateur OK.png |
41 |
|
42 |
%install |
43 |
rm -rf $RPM_BUILD_ROOT |
44 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
45 |
rm -f %{name}-%{version}-filelist |
46 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
47 |
--file '/opt/inventory/ocs/ocsreports/dbconfig.inc.php' 'attr(440,root,www)' \ |
48 |
> %{name}-%{version}-filelist |
49 |
|
50 |
%clean |
51 |
cd .. |
52 |
rm -rf %{name} |
53 |
|
54 |
%pre |
55 |
%preun |
56 |
%post |
57 |
%postun |
58 |
|
59 |
%files -f %{name}-%{version}-filelist |
60 |
%defattr(-,root,root) |