Package knetstats: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | %define _optlevel s Name: knetstats Version: 1.6.2 Release: alt1 Group: Monitoring Summary: Network monitor applet for KDE Url: http://knetstats.sourceforge.net/ License: GPL Requires: kdelibs >= %{get_version kdelibs} Source: %name-%version.tar.bz2 Source1: knetstats-ru.po Patch1: knetstats-1.6.2-alt-desktop.patch Patch2: knetstats-1.6.1-alt-autostart.patch Patch3: knetstats-1.6.1-alt-uniqueapp.patch Patch4: knetstats-1.6.2-alt-gcc43.patch # Automatically added by buildreq on Fri Jan 26 2007 BuildRequires: gcc-c++ libstdc++-devel kdelibs-devel libjpeg-devel xorg-x11-devel xml-utils %description A simple KDE network monitor that show rx/tx LEDs of any network interface on a system tray icon %prep %setup -q %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 # update Russian translation cat %SOURCE1 > translations/ru/messages/knetstats.po #%__subst "s/\(Wl,--no-undefined\)/-Wl,--warn-unresolved-symbols \1/g" admin/acinclude.m4.in #%__subst "s/\-lkdeui/-lkdeui -lpthread/g" admin/acinclude.m4.in #%__subst "s/\-lkdecore/-lkdecore -lpthread/g" admin/acinclude.m4.in #%__subst "s/\-lkdefx/-lkdefx -lpthread/g" admin/acinclude.m4.in #%__subst 's,\.la,\.so,' admin/acinclude.m4.in %make -f admin/Makefile.common cvs #./autogen.sh %build export PATH="$PWD:$PATH" #add_optflags -I%_includedir/linux-libc-headers/include #export CFLAGS="%optflags" CXXFLAGS="%optflags"" export QTDIR="%_qt3dir" KDEDIR="%prefix" %configure \ --enable-final \ --disable-static \ --enable-shared \ --disable-rpath \ --enable-new-ldflags \ --enable-gcc-hidden-visibility \ --enable-pch %make %install export PATH="$PWD:$PATH" %make install DESTDIR=%buildroot pushd %buildroot/%_datadir/locale/ for d in * do new_d=`echo $d| sed "s|_.*||"` if [ "$d" != "$new_d" ] then rm -rf "$new_d" mv "$d" "$new_d" fi done popd mkdir -p %buildroot/%_Kautostart install -m 0644 %buildroot/%_Kmenudir/%name.desktop %buildroot/%_Kautostart/%name.desktop %find_lang --with-kde %name %files -f %name.lang #%doc CHANGELOG README %_bindir/%name %_datadir/apps/%name %_iconsdir/*/*/apps/* %_Kmenudir/%name.desktop %_Kautostart/%name.desktop %changelog * Tue Dec 02 2008 Sergey V Turchin <zerg at altlinux dot org> 1.6.2-alt1 - new version - fix compile with gcc-4.3 - remove deprecated macroses from specfile * Thu Jan 10 2008 Sergey V Turchin <zerg at altlinux dot org> 1.6.1-alt3 - update Russian translation (#13851) * Fri Nov 30 2007 Sergey V Turchin <zerg at altlinux dot org> 1.6.1-alt2 - add autostart feature * Fri Jan 26 2007 Sergey V Turchin <zerg at altlinux dot org> 1.6.1-alt1 - new version * Thu Jul 20 2006 Sergey V Turchin <zerg at altlinux dot org> 1.6-alt1 - new version * Tue Jan 24 2006 Sergey V Turchin <zerg at altlinux dot org> 1.5-alt1 - initial specfile |