Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > e4bf3ca750043cf28b8df7abaa42bd5d > files > 2

AutoScan-1.01-3mdv2009.0.src.rpm

%define name    AutoScan
%define oname	autoscan
%define	daemon	agent
%define version 1.01
%define release %mkrel 3

Name:           %{name} 
Summary:        Utility for network exploration (Samba,Nessus client)
Version:        %{version} 
Release: 	%{release}
Source0:        http://autoscan.fr/%{name}-%{version}.tar.bz2
Patch0:		Autoscan-x86_64-build-fix.patch
URL:            http://autoscan.fr
Group:		Networking/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot 
License:        GPLv2
BuildRequires:  libsmbclient-devel
BuildRequires:  gnomeui2-devel
BuildRequires:  libxml2-devel
BuildRequires:  zvt-devel
BuildRequires:  openssl-devel
BuildRequires:	libao-devel
BuildRequires:	libvorbis-devel
BuildRequires:	net-snmp-devel
BuildRequires:  libtool
BuildRequires:  elfutils-devel
BuildRequires:  gtk+2-devel
BuildRequires:  gnome-keyring-devel
BuildRequires:  gnome-vfs2-devel
BuildRequires:  glib-devel
BuildRequires:  vte-devel
BuildRequires:  desktop-file-utils
Requires:       samba-client
Requires:       mozilla-firefox
Requires:       AutoScan-agent

%description
AutoScan is an application designed to explore and to manage your network. 
Entire subnets can be scanned simultaneously without human intervention. 
It features OS detection, automatic network discovery, a port scanner, 
a Samba share browser, and the ability to save the network state.

%package 	%{daemon}
Group: 		Networking/Other
Summary: 	AutoScan daemon
Provides: 	%name = %version-%release

%description 	%{daemon}
Scans network in the background


%prep  

%setup -q -a 0
%patch0

%build
./configure mandriva
%make AutoScan_Agent
%make AutoScan_Network 

%install
rm -rf %{buildroot}

#Daemon install
install -d %{buildroot}/usr/sbin/
install -d %{buildroot}/etc/rc.d/init.d/
install -m755 src/AutoScan_Agent/AutoScan_Agent %{buildroot}/usr/sbin/
install -m755 init.d/autoscan_mandriva %{buildroot}/etc/rc.d/init.d/autoscan

#Gui install
install -d %{buildroot}/usr/share/doc/AutoScan/
install -d %{buildroot}/usr/share/pixmaps/AutoScan/
install -d %{buildroot}/usr/share/apps/AutoScan/
install -d %{buildroot}/usr/lib/menu/
install -d %{buildroot}/usr/bin/
install -d %{buildroot}/usr/share/icons/
install -d %{buildroot}/usr/share/sounds/AutoScan/
install -d %{buildroot}/usr/share/applications/

pwd
install -m755 src/AutoScan/AutoScan_Network_Gui %{buildroot}/usr/bin/
install -m755 Script/* %{buildroot}/usr/bin/
cp -R usr/* %{buildroot}/usr/

#file listed twice
rm %{buildroot}/usr/share/doc/AutoScan/copyright

#drop old debian menu included in tarball
rm -rf %{buildroot}/usr/lib/menu

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-key="MultipleArgs" \
  --add-category="Settings" \
  --add-category="X-MandrivaLinux-System-Configuration-Networking" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*

%clean
rm -rf %{buildroot}


%post %{daemon}
%_post_service %{oname}


%postun %{daemon}
%_preun_service %{oname}


%if %mdkversion < 200900
%post
%post_install_gconf_schemas %{name}
%update_menus
%endif


%if %mdkversion < 200900
%postun
%clean_menus
%endif


%files %{daemon}
%defattr(755,root,root)
%{_sbindir}/AutoScan_Agent
%{_initrddir}/%{oname}

%files
%defattr(755,root,root)
%doc AUTHORS CHANGELOG copyright
%{_bindir}/%{name}_Network
%{_bindir}/%{name}_Network_Gui
%{_bindir}/%{name}_Network_Error.sh
%{_datadir}/apps/%{name}/*
%{_datadir}/pixmaps/%{name}/*
%{_iconsdir}/*
%{_datadir}/sounds/%{name}/*  
%{_datadir}/applications/*.desktop





%changelog
* Thu Jun 12 2008 Pixel <pixel@mandriva.com> 1.01-3mdv2009.0
+ Revision: 218438
- rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
- %post_install_gconf_schemas do everything, no need to set $GCONF_CONFIG_SOURCE

* Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 1.01-3mdv2008.1
+ Revision: 135825
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request
    - import AutoScan


* Sat Jul 14 2007 Emmanuel Andry <eandry@mandriva.org> 1.01-3mdv2008.0
+ Revision: 52084
- Requires:       AutoScan-agent

* Thu Jul 05 2007 Emmanuel Andry <eandry@mandriva.org> 1.01-2mdv2008.0
+ Revision: 48758
- fix package name

* Wed Jul 04 2007 Emmanuel Andry <eandry@mandriva.org> 1.01-1mdv2008.0
+ Revision: 48274
- drop old debian menu included in tarball
- diff patch to fix 86_64 build
- New version
- split package into daemon and gui
- set license to GPLv2


* Fri Aug 11 2006 Emmanuel Andry <eandry@mandriva.org> 0.99-4mdv2007.0
- fix buildrequires (to have it on x86_64)
- add buildrequires libvorbis-devel net-snmp-devel

* Thu Aug 03 2006 Lenny Cartier <lenny@mandriva.com> 0.99-3mdv2007.0
- xdg
- use default icon
- various fixes

* Fri Jun 16 2006 Lenny Cartier <lenny@mandriva.com> 0.99-2mdv2007.0
- rebuild

* Wed Mar 29 2006 Guillaume Bedot <littletux@mandriva.org> 0.99-1mdk
- 0.99
- fixed wrong permissions on /usr/lib/menu
- fixed changed binary name
- rpmbuildupdate-able
- %%{1}mdv2007.1
- some other fixes

* Mon Sep 12 2005 Emmanuel Andry <eandry@free.fr> 0.97.1b-1mdk
- New version
- Using parts of original spec file

* Sun Apr 10 2005 Emmanuel Andry <eandry@free.fr> 0.95-3mdk
- Requires firefox instead of mozilla (Bug #15359)

* Tue Apr 05 2005 Buchan Milne <bgmilne@linux-mandrake.com> 0.95-2mdk
- Rebuild for libsmbclient

* Tue Mar 22 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.95-1mdk
- from thierry@fdl.ath.cx