File lavaps.spec of Package lavaps

#
# spec file for package lavaps (Version 2.7)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           lavaps
BuildRequires:  gcc-c++ gnutls-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libwnck-devel perl-XML-Parser tix tk-devel update-desktop-files
%define       prefix   /usr
%define       sysconfdir /etc
Summary:        A Lava Lamp of Currently Running Processes
Version:        2.7
Release:        217
License:        GPL v2 or later
PreReq:         filesystem gconf2 gconf2-devel
Group:          Amusements/Toys/Graphics
Url:            http://www.isi.edu/~johnh/SOFTWARE/LAVAPS/
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Patch:          %{name}-%{version}.dif
Patch1:         %{name}-%{version}-axp.dif
Patch2:         %{name}-%{version}-ia64.dif
Patch5:         assert.diff
Patch6:         %{name}-%{version}-no-kdev.dif
Patch7:         %{name}-%{version}-sortsyntax.dif
Patch8:         %{name}-%{version}-gcc.diff
Patch9:         %{name}-%{version}-cflags.dif
Patch10:        %{name}-%{version}-HZ.dif
Patch11:        %{name}-%{version}-gcc4.3.diff
Patch12:        %{name}-%{version}-nopage.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{gconf_schemas_prereq}

%description
Lavaps is an interactive process-tracking program like top, but with a
much different attitude. Rather than presenting lots of specific
information in digital form, it tries to present certain important
information in a graphical analog form.  The idea is that you can run
it in the background and get a rough idea of what is happening on your
system without devoting much concentration to the task.



Authors:
--------
    John Heidemann <johnh@isi.edu>

%prep
%setup
%patch
%patch1
%patch2
%patch5 -p1
%patch6
%patch7
%patch8
%patch9
%patch10
%patch11
%patch12

%build
%{suse_update_config -f}
rm missing
aclocal
automake -a
autoconf
TCL_VER=$(echo 'puts [package require Tcl]' | tclsh)
CXXFLAGS="$RPM_OPT_FLAGS -DUSE_NON_CONST -fno-strict-aliasing" \
CFLAGS="$RPM_OPT_FLAGS -DUSE_NON_CONST" ./configure \
                        --prefix=%{prefix} \
			--mandir=%{_mandir}\
                        --x-libraries=/usr/%{_lib} \
			--with-tcl-ver=$TCL_VER \
			--with-tk-ver=$TCL_VER \
			--with-tcltk-lib-suffix-type=dot \
			--libdir=%{prefix}/%{_lib} \
			--sysconfdir=%{sysconfdir} \
			--disable-schemas-install
make 

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share/applications/
install -m 0644 %SOURCE1 \
         $RPM_BUILD_ROOT/usr/share/applications/
%suse_update_desktop_file %name System Monitor
%find_gconf_schemas
%{find_lang} %{name} 
cat %{name}.schemas_list %{name}.lang > %{name}.lst

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans

%files -f %{name}.lst
%defattr(-,root,root)
%doc README COPYING
%doc %{_mandir}/man1/*
%{prefix}/bin/lavaps
%{prefix}/share/applications/*.desktop

%changelog
* Sat Apr 26 2008 coolo@suse.de
- fix build
* Fri Oct 26 2007 anicka@suse.cz
- fix for gcc 4.3
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Tue Mar 13 2007 anosek@suse.cz
- corrected installation of gconf schema
* Fri Jan 12 2007 anosek@suse.cz
- changed prefix /opt/gnome -> /usr
* Mon Jul 24 2006 mmarek@suse.cz
- fix build with glibc not defining HZ anymore
  (HZ.dif)
- simplified cflags.dif
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 28 2005 mmarek@suse.cz
- compile src/linux/proc/*.c with $RPM_OPT_FLAGS
- add -fno-strict-aliasing
* Thu Apr 28 2005 postadal@suse.cz
- fixed for gcc 4.0 (checking gettext)
* Wed Jan 26 2005 postadal@suse.cz
- updated to version 2.7
- added perl-XML-Parser to neededforbuild
* Tue Aug 17 2004 postadal@suse.cz
- updated to version 2.6
* Tue May 11 2004 sbrabec@suse.cz
- Fixed gconftool-2 prerequirements.
* Wed Mar 10 2004 sbrabec@suse.cz
- Fixed gconf schemas installation (#33114).
* Tue Mar 02 2004 postadal@suse.cz
- updated to version 2.4
- removed obsoleted patch gcc33.dif
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Wed Dec 03 2003 ro@suse.de
- don't include kdev_t.h
- fix sort syntax in Makefile
* Sat Aug 16 2003 adrian@suse.de
- add desktop file
* Tue Aug 12 2003 postadal@suse.cz
- updated to version 2.3
  * used gnome toolkit
- removed obsoleted patch tcl8.4.dif
* Tue Jul 29 2003 ro@suse.de
- added tk-devel to neededforbuild
* Tue Feb 25 2003 aj@suse.de
- Add missing includes of assert.
* Wed Jan 29 2003 ro@suse.de
- fix build with gcc-3.3 (preprocessor token pasting)
* Sun Aug 18 2002 ro@suse.de
- add "-DUSE_NON_CONST" to compilerflags for new tcl
* Tue Jul 16 2002 max@suse.de
- Fixed for Tcl/Tk 8.4 .
* Wed Jan 09 2002 cihlar@suse.cz
- use %%{_lib}
* Fri Nov 30 2001 cihlar@suse.cz
- update to version 1.20:
  * fixed problems with gcc 3.0
* Mon Nov 05 2001 cihlar@suse.cz
- fixed to compile with automake 1.5
* Thu Jul 26 2001 cihlar@suse.cz
- update to version 1.18
- reorganized patches
* Tue Jun 19 2001 cihlar@suse.cz
- fixed to compile on ia64 with new autoconf
* Wed Jun 06 2001 cihlar@suse.cz
- fixed to compile with new autoconf
* Wed May 23 2001 schwab@suse.de
- Remove misplaced ## operators.
- Fix casts.
* Thu May 17 2001 cihlar@suse.cz
- fixed cast warnings on ia64
* Wed Apr 04 2001 cihlar@suse.cz
- fixed to compile on axp
* Mon Feb 19 2001 cihlar@suse.cz
- fixed to compile on axp
* Wed Feb 14 2001 cihlar@suse.cz
- added suse_update_config
- fixed file list
* Wed Nov 29 2000 ro@suse.de
- changed neededforbuild <tcld> to <tcl-devel>
* Fri Oct 27 2000 grimmer@suse.de
- Update to 1.15
- removed patch (now included in original sources)
* Wed Aug 16 2000 uli@suse.de
- fixed spec for new Tcl/Tk
* Tue Jul 18 2000 grimmer@suse.de
- created initial version (1.13)
- added patch to avoid compiler error
openSUSE Build Service is sponsored by