File KTrafficAnalyzer.spec of Package KTrafficAnalyzer
#
# spec file for package ktrafficanalyzer (Version 0.4.0-1)
#
# Copyright (c) 2008 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
%define _prefix /opt/kde3
%define _sysconfdir /etc%{_prefix}
%define qtdir /usr/lib/qt3
%define lname ktrafficanalyzer
%define rversion 0.4.0-1
%define rrelease 1.1
%define releasesuffix suse%(echo "%{suse_version}" | %__sed -e 's/.$//')DSB
Name: KTrafficAnalyzer
Version: 0.4.0
Release: %{rrelease}%{releasesuffix}
%if %suse_version < 1020
Distribution: SUSE Linux %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%else
Distribution: openSUSE %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%endif
Summary: A Network Traffic Analyzer
Source0: %{name}-%{rversion}.tar.bz2
#Source1: %{name}.desktop
Source2: %{lname}.png
#Patch1: %{lname}-makefile-64bit.patch
#Patch2: %{lname}-KCmdLineArgs-version-number.patch
#Patch3: %{lname}-TrafficWindow-version-number.patch
Patch4: %{lname}-systray_icon.diff
#Patch5: %{lname}-sbUsesBGColor-geometry.diff
#Patch6: %{lname}-writetodisc.diff
URL: http://wiki.suselinuxsupport.de/wikka.php?wakka=KTrafficAnalyzer
Packager: Donnie S Bhayangkara - http://donnie.110mb.com
Group: Productivity/Networking/Monitoring
License: GPL v2 or later
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: autoconf automake libtool libstdc++ libstdc++-devel
BuildRequires: kdelibs3-devel glibc-devel qt3-devel gcc-c++ update-desktop-files
%description
KTrafficAnalyzer is a KDE Tool designed to provide visual feedback
of the current network traffic, similar to e.g. DU Meter.
Authors:
--------
Wolfgang Koller <viras@suselinuxsupport.de>
%debug_package
%prep
%setup -q -n "%{name}-%{rversion}"
#%if "%{_lib}"=="lib64"
#%patch1
#%endif
#%patch2
#%patch3
%patch4
#%patch5
#%patch6
%build
export PATH="%{qtdir}/bin:$PATH"
%__make %{?jobs:-j%{jobs}} \
ADD_CFLAGS="%{optflags}" \
KDEDIR="%{_prefix}" \
QTDIR="%{qtdir}"
%install
%__install -D -m0755 KTrafficAnalyzer "%{buildroot}%{_bindir}/KTrafficAnalyzer"
#%__install -D -m0644 ktrafficanalyzer.desktop "%{buildroot}%{_datadir}/applications/kde/%{lname}.desktop"
%__install -D -m0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{lname}.png"
%__ln_s "KTrafficAnalyzer" "%{buildroot}%{_bindir}/ktrafficanalyzer"
%__install -d -m 755 "%{buildroot}%{_datadir}/applications/kde"
%__cat > %{buildroot}%{_datadir}/applications/kde/%{lname}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=%{lname}
Name=%{name}
Comment=Network Traffic Analyzer
GenericName=Network Traffic Analyzer
Icon=%{lname}.png
Terminal=false
StartupNotify=true
OnlyShowIn=KDE;
EOF
%suse_update_desktop_file -r ktrafficanalyzer KDE System Network
find %{buildroot} -type f -o -type l | %__sed "s|^%{buildroot}||" >master.list
%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif
%clean
%__rm -rf "%{buildroot}"
%files -f master.list
%defattr(-,root,root)
%doc CHANGELOG GPL SSHUsage TODO
%changelog
* Sun Jun 21 2008 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.4.0-1
- new upstream version
* Fri Mar 7 2008 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.9-1
- new upstream version
* Mon Jun 25 2007 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.8
- new upstream version:
* Re-Designed some more settings dialogs to look better and make more space
for fonts.
* Added Double-buffering
* Changed the interface-icon in the settings dialog to use the "hwinfo" icon
* Adjusted the Makefile to automatically build on Ubuntu systems
* Sun Apr 15 2007 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.7
- new upstream version:
* Increased size of settings-labels, etc. to fix certain font issues
* Fixed Makefile to ignore any existing symbolic link when doing install
* Now the selection of the Traffic-Interface really works
* Implemented a generic TrafficInterface-Handler that spawns the correct class
etc.
* Corrected the regular Expression for Interface-Reading a bit
* Reading interfaces from /sys/class/net/ doesn't bring up "." and ".."
anymore
* If the interface-type is changed, now KTA safely switches to using it
* Added experimential support for SSH-Remote Traffic reading (see SSHUsage
File for details)
* Added an option to write the stats each time they are updated (this is by
default turned on)
* The time between traffic-refreshs can now be set (very useful in conjunction
with SSH-reading, if e.g. the connection is bad).
* There is now an option to Debug the SSH-Connection (all incoming / outgoing
communication is printed to the console).
* When closing the main-window KTA now just closes to sys-tray instead of
exiting
* Re-Designed most settings pages to make them look more organized
- commented out %%patch5 (%{lname}-sbUsesBGColor-geometry.diff) and %%patch6
(%{lname}-writetodisc.diff)
* Sat Apr 14 2007 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.6
- added %{lname}-writetodisc.diff for adding an option to write the stats on
application close or on refresh
* Thu Apr 12 2007 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.6
- new upstream version:
* KTA now safely compiles on x86_64 and iX86 Systems
* If KTA is minimized, it reduces itself to the SysTray
* The source of interfaces can now be selected in the interface-settings
dialog
* Added an option to startup minimized
* If a selected Interface isn't available anymore, KTA now safely switches to
an available one.
* Interface is now handled by name instead of number
* The interface-Name is now shown at the ToolTip of the SysTray-Icon.
* KTA now also safely compiles on openSuSE 10.2 (and other systems with more
than one QT-installation).
* KTA now only writes the stats to disc when it is closed.
* Mon Mar 12 2007 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.5
- add patch to make systray icon the same with menu icon
* Fri Jan 5 2007 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.5
- add icon
* Fri Jan 5 2007 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.5
- modify spec file so it can be build on x86_64 system
* Fri Dec 22 2006 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.3.5
- initial Release
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: