/[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.3 - (hide annotations) (download)
Tue Dec 25 23:25:11 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: ocs-1_01-1_el4_sme
Changes since 1.2: +1 -0 lines
Fix spec

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     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 slords 1.3 BuildRequires: e-smith-devtools
16 slords 1.1 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)

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