%define _requires_exceptions perl(\\(Win32\\|FusionInventory::.*\\)) %define _provides_exceptions perl(FusionInventory::.*) Name: fusioninventory-agent Version: 2.2.7 Release: %mkrel 2 Summary: FusionInventory agent License: GPL Group: System/Servers URL: http://fusioninventory.org/wordpress/ Source0: http://search.cpan.org/CPAN/authors/id/F/FU/FUSINV/FusionInventory-Agent-%{version}.tar.gz Source1: %{name}.service Requires: dmidecode BuildArch: noarch %description The fusioninventory agent is a generic agent, running on each managed node. It can perform a certain number of actions, called tasks, according to its own execution plan, or on behalf of a GLPI server with fusioninventory plugin, acting as a control point. %prep %setup -q -n FusionInventory-Agent-%{version} %build %__perl Makefile.PL \ PREFIX=%{_prefix} \ SYSCONFDIR=%{_sysconfdir}/fusioninventory \ LOCALSTATEDIR=%{_localstatedir}/lib/fusioninventory %make %install rm -rf %{buildroot} %makeinstall_std install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig cat > %{buildroot}%{_sysconfdir}/sysconfig/fusioninventory-agent <<EOF # fusioninventory agent options OPTIONS="" EOF install -d -m 755 %{buildroot}%{_sysconfdir}/cron.daily cat > %{buildroot}%{_sysconfdir}/cron.daily/fusioninventory-agent <<EOF #!/bin/sh . /etc/sysconfig/fusioninventory-agent %{_bindir}/fusioninventory-agent $OPTIONS > /dev/null 2>&1 EOF chmod 755 %{buildroot}%{_sysconfdir}/cron.daily/fusioninventory-agent install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d cat > %{buildroot}%{_sysconfdir}/logrotate.d/fusioninventory-agent <<EOF %{_localstatedir}/log/%{name}/*.log { compress notifempty missingok } EOF install -d -m 755 %{buildroot}%{_unitdir} install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/fusioninventory-agent.service install -d -m 755 %{buildroot}%{_localstatedir}/log/%{name} install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name} %files %doc Changes THANKS LICENSE README %{_bindir}/fusioninventory-agent %{_bindir}/fusioninventory-injector %{_mandir}/man1/* %{_mandir}/man3/* %{_localstatedir}/log/fusioninventory-agent %{_localstatedir}/lib/fusioninventory-agent %{_datadir}/fusioninventory %dir %{_sysconfdir}/fusioninventory %config(noreplace) %{_sysconfdir}/fusioninventory/agent.cfg %config(noreplace) %{_sysconfdir}/logrotate.d/fusioninventory-agent %config(noreplace) %{_sysconfdir}/cron.daily/fusioninventory-agent %config(noreplace) %{_sysconfdir}/sysconfig/fusioninventory-agent %{_unitdir}/fusioninventory-agent.service %changelog * Fri Jan 11 2013 umeabot <umeabot> 2.2.7-2.mga3 + Revision: 351000 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Nov 14 2012 guillomovitch <guillomovitch> 2.2.7-1.mga3 + Revision: 317590 - new version * Mon Sep 17 2012 guillomovitch <guillomovitch> 2.2.6-1.mga3 + Revision: 294858 - new version - ship %%{_sysconfdir}/sysconfig/fusioninventory-agent - honour %%{_sysconfdir}/sysconfig/fusioninventory-agent in cron task - back to noarch, we only ship x86 packages currently * Thu Aug 16 2012 guillomovitch <guillomovitch> 2.2.5-1.mga3 + Revision: 281539 - useless dependencies, there is no %%post section - new version * Mon Jul 30 2012 guillomovitch <guillomovitch> 2.2.4-1.mga3 + Revision: 275996 - new version * Tue Jun 26 2012 guillomovitch <guillomovitch> 2.2.3-1.mga3 + Revision: 263860 - new version * Fri Jun 01 2012 guillomovitch <guillomovitch> 2.2.2-1.mga3 + Revision: 252830 - new version * Tue May 29 2012 guillomovitch <guillomovitch> 2.2.1-1.mga3 + Revision: 249186 - new version - make it arch-specific, for arch-specific dependencies as dmidecode * Sat Apr 28 2012 tmb <tmb> 2.2.0-4.mga2 + Revision: 233702 - Require rpm-helper >= 0.24.8-1 for systemd support * Fri Apr 20 2012 guillomovitch <guillomovitch> 2.2.0-3.mga2 + Revision: 232017 - force daemonization in systemd service file * Tue Apr 17 2012 guillomovitch <guillomovitch> 2.2.0-2.mga2 + Revision: 231233 - drop debian-style initscript - add systemd support - add README file - 2.2.0 final * Thu Jan 19 2012 guillomovitch <guillomovitch> 2.1.9904-1.mga2 + Revision: 198452 - new snapshot * Wed Nov 09 2011 guillomovitch <guillomovitch> 2.1.9902-2.mga2 + Revision: 165886 - fix automatic dependencies * Tue Nov 08 2011 guillomovitch <guillomovitch> 2.1.9902-1.mga2 + Revision: 165670 - new version (2.2 beta2) - force perl(File::ShareDir) dependency (fix #285) * Tue Jul 19 2011 guillomovitch <guillomovitch> 2.1.9-1.mga2 + Revision: 126732 - new version * Sun Mar 06 2011 ennael <ennael> 2.1.7-1.mga1 + Revision: 65511 - imported package fusioninventory-agent