/[smecontribs]/rpms/ocs/contribs7/ocs.spec
ViewVC logotype

Annotation of /rpms/ocs/contribs7/ocs.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Dec 25 23:22:07 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package ocs-1.01-1.src.rpm

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed