File KConnections.spec of Package KConnections
#
# spec file for package kconnections (Version 0.4.0)
#
# Copyright (c) 2007 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 rversion 0.4.0
%define rrelease 1.1
%define releasesuffix suse%(echo "%{suse_version}" | %__sed -e 's/.$//')DSB
Name: kconnections
Version: %{rversion}
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: KDE Small Wrapper for Netstat
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-gcc43.diff
URL: http://ksquirrel.sourceforge.net/subprojects.php
Packager: Donnie S Bhayangkara - http://donnie.110mb.com
Group: System/Monitoring
License: GPLv2
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: autoconf automake libtool libstdc++ libstdc++-devel
BuildRequires: update-desktop-files kdelibs3-devel
%description
This is small wrapper for netstat for KDE. It lives in system tray
and shows incoming/outgoing connections as popup messages (which
don't steel focus from active application), including IP addresses,
ports and other. It also has flexible list to ignore some types of
connections (WWW for example).
The following services are ignored by default:
* microsoft-ds
* netbios-ssn
* www
Note:
This package was build without tcpkill support.
Authors:
--------
Krasu <ksquirrel.iv@gmail.com>
%if %suse_version >= 930
%debug_package
%endif
%prep
%setup -q
%if %suse_version >= 110
%patch0
%endif
. /etc/opt/kde3/common_options
update_admin
%build
. /etc/opt/kde3/common_options
%configure $configkde --disable-final
do_make %{?jobs:-j %jobs}
%install
. /etc/opt/kde3/common_options
do_make DESTDIR=%{buildroot} $INSTALL_TARGET
%if %suse_version >= 1020
%suse_update_desktop_file -G "Network Connection Monitor" -r "%{name}" KDE System Network
%else
%suse_update_desktop_file -r "%{name}" KDE System Network
%endif
kde_post_install
%find_lang %name
%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif
%clean
%__rm -rf "%{buildroot}"
%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_datadir}/applications/kde/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
/usr/share/man/man*/%{name}.*.*
%changelog
* Fri Feb 13 2009 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org> 0.4.0
- fix build with gcc43
* Wed Dec 12 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 0.4.0
- new upstream version:
* added tcpkill support (tcpkill requires root privileges, you should install
fix in KConnections' options or run KConnections via kdesu; user should
also know tcpdump expressions)
* Mon Dec 10 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 0.3.1
- new upstream version:
* tiny improvements
* "Notify messages" can be accessed via tray's menu
* Sat Dec 8 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 0.3
- new upstream version:
* added monitor window
* KConnections is now 'KUniqueApplication'
* added white list
* added program name in filters and popup message
* Fri Dec 7 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 0.2
- initial release