]> git.pld-linux.org Git - SPECS.git/blob - knetworkconf.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / knetworkconf.spec
1 Summary:        KDE network configuration tool
2 Summary(pl.UTF-8):      Narzędzie do konfiguracji sieci dla KDE
3 Name:           knetworkconf
4 Version:        0.6.1
5 Release:        0.1
6 License:        GPL
7 Group:          X11/Applications
8 Source0:        http://dl.sourceforge.net/knetworkconf/%{name}-%{version}.tar.bz2
9 # Source0-md5:  b2b68c8e16122eb442643aa246daa988
10 URL:            http://knetworkconf.sourceforge.net/
11 Patch0:         %{name}-ac.patch
12 Patch1:         %{name}-am.patch
13 BuildRequires:  kdelibs-devel >= 8:3.1
14 BuildRequires:  sed >= 4.0
15 Requires:       kdebase-core
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 KNetworkConf is a KDE application to configure TCP/IP settings on a
20 Linux machine. 
21 Features:
22 - Configure network devices.
23 - Enable/disable network devices.
24 - Configure default gateway and gateway device.
25 - Configure DNS servers, domain name and machine name.
26 - Edit /etc/hosts file (known hosts).
27
28 Supports also PLD.
29
30 %description -l pl.UTF-8
31 KNetworkConf to aplikacja KDE do konfigurowania ustawień TCP/IP na
32 maszynie linuksowej. Możliwości:
33 - konfigurowanie urządzeń sieciowych
34 - włączanie/wyłączanie urządzeń sieciowych
35 - ustawianie domyślnej bramki i urządzenia sieciowego dla niej
36 - ustawianie serwerów DNS, nazw domeny i maszyny
37 - edycja pliku /etc/hosts (znanych hostów).
38
39 Obsługuje także PLD.
40
41 %prep
42 %setup -q
43 %patch0 -p1
44 %patch1 -p1
45
46 %build
47 sed -i 's/doc //' Makefile.am
48 for i in knetworkconf/*.ui.h;do mv $i `basename $i .ui.h`.h;done;
49
50 %{__make} -f admin/Makefile.common cvs
51
52 %configure
53
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
63
64 # RedHatoooze ?!
65 mv $RPM_BUILD_ROOT%{_libdir}/kde3/Configuration/KDE/Network/%{name}.desktop \
66         $RPM_BUILD_ROOT%{_desktopdir}
67
68 sed -i 's/locolor\/32x32\/apps\///' \
69         $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
70
71 echo "Categories=Qt;KDE;SystemSetup;" >> \
72         $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
73
74 mv $RPM_BUILD_ROOT{%{_iconsdir},%{_pixmapsdir}}/network_card.png
75
76 mv $RPM_BUILD_ROOT%{_iconsdir}/{lo,hi}color
77
78 %find_lang %{name} --with-kde
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog README TODO
86 %attr(755,root,root) %{_bindir}/knetworkconf
87 %dir %{_datadir}/apps/%{name}
88 %{_datadir}/apps/%{name}/pixmaps
89 %dir %{_datadir}/apps/%{name}/backends
90 %attr(755,root,root) %{_datadir}/apps/%{name}/backends/*
91 %{_desktopdir}/%{name}.desktop
92 %{_iconsdir}/*/*/apps/%{name}.png
93 %{_pixmapsdir}/network_card.png
This page took 0.162126 seconds and 3 git commands to generate.