SPECS: ocs-ng-inventory.spec - add config patch, build section

wolvverine wolvverine at pld-linux.org
Tue Oct 3 14:55:13 CEST 2006


Author: wolvverine                   Date: Tue Oct  3 12:55:13 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add config patch, build section

---- Files affected:
SPECS:
   ocs-ng-inventory.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/ocs-ng-inventory.spec
diff -u SPECS/ocs-ng-inventory.spec:1.7 SPECS/ocs-ng-inventory.spec:1.8
--- SPECS/ocs-ng-inventory.spec:1.7	Fri Sep 29 08:56:20 2006
+++ SPECS/ocs-ng-inventory.spec	Tue Oct  3 14:55:08 2006
@@ -1,9 +1,8 @@
 # $Revision$, $Date$
 # TODO
 # - spec name to ocs-inventory-ng.spec
-# - patch for PLD
 # - webapps
-# - agents
+# - agent
 Summary:	OCS-Inventory NG - keeping track of the configuration and installed software
 Summary(pl):	OCS-Inventory NG - śledzenie konfiguracji i zainstalowanego oprogramowania
 Name:		ocs-inventory-ng
@@ -19,6 +18,7 @@
 # Source2-md5:	da52c1e4201dcbf249b2a71db9de6b5f
 Source3:	http://dl.sourceforge.net/ocsinventory/OCS_Inventory_NG-Installation_and_Administration_Guide_1.7_EN.pdf
 # Source3-md5:	bd9a9792bab51f6aae5109a1c39b0a48
+Patch0:		%{name}-config.patch
 URL:		http://ocsinventory.sourceforge.net/
 Requires:	apache >= 1.3.33
 Requires:	apache-mod_perl >= 1.29
@@ -87,16 +87,25 @@
 
 %prep
 %setup -q -n OCSNG_LINUX_SERVER_%{version}RC3-1 -a 1
-#%patch0 -p1
+%patch0 -p1
 
 # undos the source
 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
 
 %build
+cd Apache
+%{__perl} Makefile.PL \
+        INSTALLDIRS=vendor
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+cd Apache
+%{__make} install \
+        DESTDIR=$RPM_BUILD_ROOT
+cd ..
+
 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sysconfdir}/logrotate.d}
 cp -Rf ocsreports/* $RPM_BUILD_ROOT%{_datadir}/%{name}
 
@@ -112,7 +121,10 @@
 %defattr(644,root,root,755)
 %doc README ocs-errors $SOURCE2 $SOURCE3
 /etc/logrotate.d/ocs-inventory-ng
+%attr(755,root,root) %{_bindir}/Ocsinventory_local.pl
 %{_datadir}/%{name}/
+%{perl_vendorlib}/
+
 
 #%files agent
 #%defattr(644,root,root,755)
@@ -123,6 +135,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2006/10/03 12:55:08  wolvverine
+- add config patch, build section
+
 Revision 1.7  2006/09/29 06:56:20  glen
 - adapterized, epoches
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ocs-ng-inventory.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list