Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 9fe0129286dc00d0601924f9121836ec > files > 3

autoscan-1.01-4mdv2008.0.src.rpm

%define	rname AutoScan

Summary:        Utility for network exploration (Samba,Nessus client)
Name:           autoscan
Version:        1.01
Release: 	%mkrel 4
License:        GPLv2
Group:		Networking/Other
URL:            http://autoscan.fr
Source0:        http://autoscan.fr/%{rname}-%{version}.tar.bz2
Patch0:		Autoscan-x86_64-build-fix.patch
BuildRequires:  libsmbclient-devel
BuildRequires:  gnomeui2-devel
BuildRequires:  libxml2-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:       %{name}-agent
Provides:	%{rname} = %{version}
Obsoletes:	%{rname}
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot 

%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 	agent
Summary: 	AutoScan daemon
Group: 		Networking/Other
Provides: 	%{name} = %{version}-%{release}
Provides:	%{rname} = %{version}
Obsoletes:	%{rname}
Provides:	%{rname}-agent = %{version}
Obsoletes:	%{rname}-agent

%description 	agent
Scans network in the background


%prep  

%setup -q -n %{rname}-%{version} -a 0
%patch0

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

%install
rm -rf %{buildroot}

#Daemon install
install -d %{buildroot}%{_sbindir}/
install -d %{buildroot}%{_initrddir}/
install -m755 src/AutoScan_Agent/AutoScan_Agent %{buildroot}%{_sbindir}/
install -m755 init.d/autoscan_mandriva %{buildroot}%{_initrddir}/autoscan

#Gui install
install -d %{buildroot}%{_datadir}/doc/AutoScan/
install -d %{buildroot}%{_datadir}/pixmaps/AutoScan/
install -d %{buildroot}%{_datadir}/apps/AutoScan/
install -d %{buildroot}%{_bindir}/
install -d %{buildroot}%{_datadir}/icons/
install -d %{buildroot}%{_datadir}/sounds/AutoScan/
install -d %{buildroot}%{_datadir}/applications/

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

#file listed twice
rm %{buildroot}%{_datadir}/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="Network" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*

%post
export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)"
%post_install_gconf_schemas %{name}
%update_menus

%postun
%clean_menus

%post agent
%_post_service %{name}

%postun agent
%_preun_service %{name}

%clean
rm -rf %{buildroot}

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

%files agent
%defattr(755,root,root)
%{_sbindir}/AutoScan_Agent
%{_initrddir}/%{name}


%changelog
* Sun Sep 02 2007 Emmanuel Andry <eandry@mandriva.org> 1.01-4mdv2008.0
+ Revision: 78222
- fix a path for x86_64
- fix build
- drop unneeded BR zvt-devel
- fix files listing

  + Oden Eriksson <oeriksson@mandriva.com>
    - fix build
    - fix build
    - lowercase the package
    - rebuilt against latest net-snmp devel

* 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