commit 4544a90d0bb5f1906c83b9b05b6ed55facef07e6 Author: Rosa Date: Wed Feb 1 20:08:12 2012 +0400 Automatic import for version 1.3.3 diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..0dfac2d --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + "OCSNG_UNIX_SERVER-1.3.3.tar.gz": f28166e7dc37425c8320265383677bb79c9c8080 diff --git a/ocsinventory.spec b/ocsinventory.spec new file mode 100644 index 0000000..c80f8d0 --- /dev/null +++ b/ocsinventory.spec @@ -0,0 +1,229 @@ +%define _requires_exceptions pear(dbconfig.inc.php)\\|pear(composants.php)\\|pear(dico.php) +%define schema_version 1.3 + +Name: ocsinventory +Version: 1.3.3 +Release: %mkrel 1 +Summary: Open Computer and Software Inventory Next Generation +License: GPL +Group: System/Servers +URL: http://www.ocsinventory-ng.org/ +Source0: http://launchpad.net/ocsinventory-server/stable-1.3/server-release-1.3/+download/OCSNG_UNIX_SERVER-%{version}.tar.gz +%if %mdkversion < 201010 +Requires(post): rpm-helper +Requires(postun): rpm-helper +%endif +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version} + +%description +Open Computer and Software Inventory Next Generation is an application +designed to help a network or system administrator keep track of the +computers configuration and software that are installed on the network. + +OCS Inventory is also able to detect all active devices on your network, +such as switch, router, network printer and unattended devices. + +OCS Inventory NG includes package deployment feature on client computers + +%package server +Group: System/Servers +Summary: Communication server +Requires: apache-mod_perl +Requires: perl(Apache::DBI) +Requires: perl-DBD-mysql +Requires: perl-Net-IP +Requires: perl-SOAP-Lite +Obsoletes: ocsng-linux-server + +%description server +This package provides the Communication server, which will handle HTTP +communications between database server and agents. + +%package reports +Group: System/Servers +Summary: Administration console +Requires: apache-mod_php +Requires: php-mysql +Requires: php-xml +Requires: php-zip +Obsoletes: ocsng-linux-server + +%description reports +This package provides the Administration console, which will allow +administrators to query the database server through their favorite browser. + +%prep +%setup -q -n OCSNG_UNIX_SERVER-%{version} + +perl -pi -e 's/SCHEMA_VERSION/%{schema_version}/' ocsreports/index.php + +%build +cd Apache +%{__perl} Makefile.PL INSTALLDIRS=vendor +%make + +%install +rm -rf %{buildroot} + + +# ocsinventory-server +pushd Apache +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' + +# To avoid bad dependency on perl(mod_perl) +rm -f %{buildroot}%{perl_vendorlib}/Apache/Ocsinventory/Server/Modperl1.pm + +popd + +install -d -m 755 %{buildroot}%{_localstatedir}/log/ocsinventory-server + +install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d +cat > %{buildroot}%{_sysconfdir}/logrotate.d/ocsinventory-server< 1.3.3-1mdv2011.0 ++ Revision: 601849 +- new version + +* Wed Jun 16 2010 Oden Eriksson 1.3.2-1mdv2010.1 ++ Revision: 548135 +- 1.3.2 +- drop one upstream added patch + + + Guillaume Rousse + - perms for configuration files more consistent with other packages + +* Tue Mar 02 2010 Guillaume Rousse 1.3.1-1mdv2010.1 ++ Revision: 513563 +- new version +- improved schema patch +- ensure configuration file is writable by apache + +* Mon Feb 08 2010 Guillaume Rousse 1.3-1mdv2010.1 ++ Revision: 502468 +- new version +- rely on filetrigger for reloading apache configuration begining with 2010.1, rpm-helper macros otherwise +- drop useless sources + +* Mon Feb 01 2010 Oden Eriksson 1.02.2-1mdv2010.1 ++ Revision: 499186 +- 1.02.2 + +* Tue Nov 24 2009 Anne Nicolas 1.02.1-3mdv2010.1 ++ Revision: 469641 +- Fix missing requires (#55941) + +* Thu Jun 25 2009 Guillaume Rousse 1.02.1-2mdv2010.0 ++ Revision: 389024 +- fix invalid php-db dependency + +* Sun Jun 07 2009 Guillaume Rousse 1.02.1-1mdv2010.0 ++ Revision: 383469 +- fix download alias +- add php-gd dependency +- symlink ocsreports configuration file to proper place +- package renaming +- new version +- drop client (packaged distinctly) and doc (not distributed anymore) +- sanitized package names +- drop ipdiscover binary to keep the package noarch +- spec cleanup + +* Fri Dec 21 2007 Olivier Blin 1.0-0.3mdv2008.1 ++ Revision: 136634 +- restore BuildRoot + + + Thierry Vignaud + - kill re-definition of %%buildroot on Pixel's request + +* Mon Jun 25 2007 Oden Eriksson 1.0-0.3mdv2008.0 ++ Revision: 43837 +- fix deps +