Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 0925d15cdf1c1cec6762bdc221804722 > files > 7

xtraceroute-0.9.1-12mdk.src.rpm

%define name xtraceroute
%define version 0.9.1
%define prefix %{_prefix}

Summary: Graphical OpenGL version of traceroute
Name: %{name}
Version: %{version}
Release: 12mdk
License: GPL
Group: Monitoring
Source0: http://www.dtek.chalmers.se/~d3august/xt/dl/%{name}-%{version}.tar.bz2
Source1: %{name}
Source10: %{name}.16.png.bz2
Source11: %{name}.32.png.bz2
Source12: %{name}.48.png.bz2
Icon: xtraceroute-logo.xpm
URL: http://www.dtek.chalmers.se/~d3august/xt/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: gdk-pixbuf-devel 
BuildRequires: gtkglarea-devel < 1.9
BuildRequires: Mesa-common-devel traceroute
BuildRequires: /usr/bin/host
BuildRequires: perl-devel
Requires: traceroute /usr/bin/host perl-libwww-perl perl-HTML-Parser perl-URI

%description
Xtraceroute is a graphical traceroute utility that shows the path your IP
packets travel on a 3 dimensional rendered globe. Be sure to download the NDG
data files mentioned in the INSTALL document too.

%prep
%setup -q

%build
%configure2_5x
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
%makeinstall xtraceroutedatadir=%{?buildroot:%{buildroot}}%{_datadir}/%{name}

install xtraceroute.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
touch $RPM_BUILD_ROOT%{_datadir}/xtraceroute/hosts.cache
touch $RPM_BUILD_ROOT%{_datadir}/xtraceroute/site_hosts.cache
touch $RPM_BUILD_ROOT%{_datadir}/xtraceroute/site_networks.cache

mv $RPM_BUILD_ROOT/%{_bindir}/%{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}.real
cat > $RPM_BUILD_ROOT/%{_bindir}/%{name} << EOF
#!/bin/sh
if [ ! -d \$HOME/.xt ]; then
		mkdir \$HOME/.xt
fi
%{_bindir}/%{name}.real "\$@"
EOF
chmod a+x $RPM_BUILD_ROOT/%{_bindir}/%{name}

# menu
%{_bindir}/install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/menu
%{_bindir}/install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/menu/

# icon
install -d $RPM_BUILD_ROOT/%{_miconsdir}
install -d $RPM_BUILD_ROOT/%{_liconsdir}
bzcat %{SOURCE10} > $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png
bzcat %{SOURCE11} > $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png
bzcat %{SOURCE12} > $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png

%find_lang %{name}

%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING TODO
%{_bindir}/*
%{_datadir}/xtraceroute
%{_datadir}/pixmaps/xtraceroute.png
%{_mandir}/*/*
%{_libdir}/menu/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

%changelog
* Fri Nov 19 2004 Olivier Blin <blino@mandrake.org> 0.9.1-12mdk
- birthday rebuild

* Tue Jul 29 2003 Götz Waschk <waschk@linux-mandrake.com> 0.9.1-11mdk
- buildrequires fix, both gtkglarea implementations provide gtkglarea-devel

* Wed Apr 30 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 0.9.1-10mdk
- new version

* Mon Apr 14 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 0.9.0-10mdk
- rebuild to remove an explicit email from this changelog, per request

* Tue Jul  9 2002 Pixel <pixel@mandrakesoft.com> 0.9.0-9mdk
- rebuild for perl 5.8.0

* Fri Jun 14 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.9.0-8mdk
- This requires BuildRequires perl-devel.

* Tue May 21 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.9.0-7mdk
- add patch from Sven Goethel <sgoethel@jausoft.com> that adds lookups
  against CAIDA's NetGeo database (suggested by Nick Brown
  <nickbroon at blueyonder dot co dot uk>)

* Thu Jan 31 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.9.0-6mdk
- xpm -> png icons

* Tue Oct 16 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 0.9.0-5mdk
- fix large-icon-not-in-package

* Tue Jul 17 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 0.9.0-4mdk
- BuildRequires: /usr/bin/host, in addition to Requires

* Wed Jul  4 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 0.9.0-3mdk
- requires /usr/bin/host to work properly

* Tue Jul  3 2001 Stefan van der Eijk <stefan@eijk.nu> 0.9.0-2mdk
- BuildRequires: gdk-pixbuf-devel
- Removed BuildRequires: gtk+-devel
- Removed BuildRequires: libtiff-devel

* Mon Jul  2 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 0.9.0-1mdk
- new release

* Mon Jun 18 2001 Stefan van der Eijk <stefan@eijk.nu> 0.8.14-21mdk
- Remove BuildRequires: Mesa-devel
- BuildRequires: libtiff-devel Mesa-common-devel

* Tue Nov  7 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-20mdk
- fix summary

* Thu Oct 26 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-19mdk
- add traceroute in BuildRequires

* Wed Sep  6 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-18mdk
- rebuild to get the requires

* Wed Aug 30 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-17mdk
- use %find_lang

* Wed Aug 23 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-16mdk
- automatically added packager tag

* Fri Aug 18 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-15mdk
- rebuild to remove link against libglide

* Sun Jul 23 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 0.8.14-14mdk
- BM
- Geoffrey Lee <snailtalk@mandrakesoft.com> 
  - tmppath and update_menus and clean_menus macro

* Tue Jun 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.8.14-13mdk
- Use makeinstall macros.

* Mon Apr 17 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-12mdk
- removed gnome menu entry
- added 32x32 icon
- cleanup of specfile
- added requirement on `traceroute', how could we forget it?

* Mon Apr 10 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-11mdk
- added icon

* Sun Apr  2 2000 Pixel <pixel@mandrakesoft.com> 0.8.14-10mdk
- rebuild for new libgtkgl

* Fri Mar 31 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.8.14-9mdk
- menu entry
- new groups

* Thu Jan 13 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- BuildRequires gtkglarea.
- Use %|configure.

* Mon Jan 03 2000 John Buswell <johnb@mandrakesoft.com>
- Clean source tree
- Touches site_hosts.cache and site_networks.cache (to quiet them)
- spec file fixes new OpenGL naming of libs (find/remove of Mesa)
- removes illegal instruction error from K6/K6-2/K6-3 processors

* Fri Dec 31 1999 Yoann Vandoorselaere <yoann@mandrakesoft.com>
- Removed config.cache from tar archive...
- Make it quiet about hosts.cache / networks.cache
	( touch them ). 

* Wed Dec 08 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- rebuild linking against Mesa 3.1cvs (uses OpenGL naming of libs instead
  of libMesa*.so stuff)

* Mon Nov 01 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- rebuild for new environment

* Wed Feb 10 1999 Pablo Saratxaga <srtxg@chanae.alphanet.ch>
- First try at an RPM