packages: ocs-inventory-ng-client/ocs-inventory-ng-client.spec - up to 1.02...

wolvverine wolvverine at pld-linux.org
Fri Oct 9 16:41:25 CEST 2009


Author: wolvverine                   Date: Fri Oct  9 14:41:25 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.02, NFY

---- Files affected:
packages/ocs-inventory-ng-client:
   ocs-inventory-ng-client.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/ocs-inventory-ng-client/ocs-inventory-ng-client.spec
diff -u packages/ocs-inventory-ng-client/ocs-inventory-ng-client.spec:1.2 packages/ocs-inventory-ng-client/ocs-inventory-ng-client.spec:1.3
--- packages/ocs-inventory-ng-client/ocs-inventory-ng-client.spec:1.2	Sun Mar  2 18:10:02 2008
+++ packages/ocs-inventory-ng-client/ocs-inventory-ng-client.spec	Fri Oct  9 16:41:20 2009
@@ -3,12 +3,12 @@
 Summary:	OCS-ng Inventory agent for PLD systems
 Summary(pl.UTF-8):	Agent OCS-ng Inventory dla systemów PLD
 Name:		ocs-inventory-ng-client
-Version:	1.01
+Version:	1.02
 Release:	0.1
 License:	GPL
 Group:		Networking/Daemons
-Source0:	http://dl.sourceforge.net/ocsinventory/OCSNG_LINUX_AGENT_%{version}.tar.gz
-# Source0-md5:	9e5a5893cd83eb94637c34b60286dcb8
+Source0:	http://dl.sourceforge.net/ocsinventory/OCSNG_UNIX_AGENT-%{version}.tar.gz
+# Source0-md5:	749501586e0c634680c13000b3b2851e
 Source1:	%{name}.conf
 Source2:	%{name}.adm
 Source3:	%{name}.cron
@@ -24,6 +24,7 @@
 Requires:	ipdiscover
 Requires:	perl-Net-IP >= 1.21
 Requires:	perl-Compress-Zlib >= 1.33
+Requires:	perl-XML-Simple
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,53 +35,53 @@
 Agent OCS-ng Inventory dla systemów PLD.
 
 %prep
-%setup -q -n OCSNG_LINUX_AGENT_%{version}
+%setup -q -n Ocsinventory-Agent-1.0.1
 
 # undos the source
 find '(' -name '*.php' -o -name '*.inc' -o  -name '*.conf' -o  -name '*.htc' -o  -name '*.js' -o  -name '*.dtd' -o  -name '*.pm' -o  -name '*.css' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
 
 %build
-cd Ocsinventory
 %{__perl} Makefile.PL \
 	INSTALLDIRS=vendor
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sysconfdir}/{logrotate.d,ocsinventory-client,cron.d}}
-install -d $RPM_BUILD_ROOT{%{_var}/log/ocsinventory-client,%{_bindir},%{_sbindir},/bin}
+install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sysconfdir}/{logrotate.d,ocsinventory-agent,cron.d}}
+install -d $RPM_BUILD_ROOT{%{_var}/{log/ocsinventory-agent,lib/ocsinventory-agent},%{_bindir},%{_sbindir},/bin}
 
 OCS_AGENT_ADMININFO_FILE="ocsinv.adm"
 
-cd Ocsinventory
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 ln -s /usr/sbin/ocsinventory-client.pl $RPM_BUILD_ROOT/bin/ocsinv
-install %SOURCE4 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ocsinventory-client
-install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/ocsinventory-client/ocsinv.conf
-install %SOURCE3 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/ocsinventory-client
+install %SOURCE4 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ocsinventory-agent
+install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/ocsinventory-agent/ocsinv.conf
+install %SOURCE3 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/ocsinventory-agent
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README changelogs 
+%doc README 
 #Ocsinventory/README
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ocsinventory-client
-%dir %{_sysconfdir}/ocsinventory-client
-%{_sysconfdir}/ocsinventory-client/ocsinv.conf
-%{_sysconfdir}/cron.d/ocsinventory-client
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ocsinventory-agent
+%dir %{_sysconfdir}/ocsinventory-agent
+%{_sysconfdir}/ocsinventory-agent/ocsinv.conf
+%{_sysconfdir}/cron.d/ocsinventory-agent
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) /bin/ocsinv
 %{_datadir}/%{name}/
 %dir %{perl_vendorlib}/Ocsinventory
-%{perl_vendorlib}/Ocsinventory/Agent.pm
-%{perl_vendorlib}/Ocsinventory/ocsinventory-client.pl
+%{perl_vendorlib}/Ocsinventory/*.pm
+%{perl_vendorlib}/Ocsinventory/*.pl
+%dir %{perl_vendorlib}/Ocsinventory/LoggerBackend
+%{perl_vendorlib}/Ocsinventory/LoggerBackend/*.pm
 %dir %{perl_vendorlib}/Ocsinventory/Agent
 %{perl_vendorlib}/Ocsinventory/Agent/*
-%dir %{_var}/log/ocsinventory-client
+%dir %{_var}/log/ocsinventory-agent
+%{_mandir}/man1/ocsinventory-agent.1p.gz
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -88,6 +89,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2009/10/09 14:41:20  wolvverine
+- up to 1.02, NFY
+
 Revision 1.2  2008/03/02 17:10:02  wolvverine
 - correct %files
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ocs-inventory-ng-client/ocs-inventory-ng-client.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list