summaryrefslogtreecommitdiffstats
path: root/specs/knutclient.spec.mandriva.2009
blob: 6dd24d09c0315829d60f66ff26fc4009e31551ee (plain)
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
113
114
115
116
117
118
119
120
121
122
123
124
Summary:	NUT GUI Interface
Name:		knutclient
Version:	0.9.5
Release:	1
License:	GPL
Url:		http://www.knut.noveradsl.cz/knutclient
Group:		Monitoring
Source0:        ftp://ftp.buzuluk.cz/pub/alo/knutclient/stable/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Knutclient is a GUI interface for UPS system NUT

%prep
%setup
sh admin/cvs.sh cvs

%build
CFLAGS="$RPM_OPT_FLAGS"			\
CXXFLAGS="$RPM_OPT_FLAGS"		\
export kde_htmldir=/opt/trinity/share/doc/HTML		\
export KDEDIRS=/usr:/opt/trinity
./configure	--prefix=/opt/trinity	\
		--libdir=%{_libdir}	\
		--enable-mt		\
		--disable-rpath
%make


%install

make install-strip DESTDIR=%buildroot
install -d %buildroot/%_menudir
cat > %buildroot/%_menudir/%{name} <<EOF
?package(%{name}):\
command="/opt/trinity/bin/knutclient"\
title="KNutClient"\
icon="knutclient.png"\
longtitle="A GUI interface for UPS system NUT"\
needs="X11"\
section="Applications/Monitoring"
EOF


mkdir -p %buildroot/opt/trinity/share/applications/kde/
mv %buildroot/opt/trinity/share/applnk/Utilities/knutclient.desktop %buildroot/opt/trinity/share/applications/kde/
rmdir %buildroot/opt/trinity/share/applnk/Utilities
rm %buildroot/opt/trinity/share/applications/kde/Utilities/knutclient.desktop
rmdir %buildroot/opt/trinity/share/applications/kde/Utilities

%find_lang %{name} 

%clean
rm -rf %{buildroot}

%post
%{update_menus}
 
%postun
%{clean_menus} 

%files -f %name.lang
%defattr(-,root,root)
%doc README AUTHORS ChangeLog INSTALL TODO COPYING 
/opt/trinity/bin/knutclient
%{_menudir}/%{name}
/opt/trinity/share/applications/kde/knutclient.desktop
%dir /opt/trinity/share/apps/knutclient
/opt/trinity/share/apps/knutclient/knutclientui.rc
/opt/trinity/share/doc/HTML/*/knutclient
/opt/trinity/share/icons/??color/??x??/apps/knutclient.png
/opt/trinity/share/icons/??color/??x??/apps/knutclienterr.png
/opt/trinity/share/icons/??color/??x??/apps/knutclientconn.png
/opt/trinity/share/apps/knutclient/pics/knc_conn.png
/opt/trinity/share/apps/knutclient/pics/knc_error.png
/opt/trinity/share/apps/knutclient/pics/knc_main.png
/opt/trinity/share/apps/knutclient/pics/knc_analog.png
/opt/trinity/share/apps/knutclient/pics/knc_batt.png
/opt/trinity/share/apps/knutclient/pics/knc_dock.png
/opt/trinity/share/apps/knutclient/pics/knc_mpref.png
/opt/trinity/share/apps/knutclient/pics/knc_mset.png
/opt/trinity/share/apps/knutclient/pics/knc_panel.png
/opt/trinity/share/apps/knutclient/pics/knc_ups.png
/opt/trinity/share/apps/knutclient/pics/knc_upses.png


%changelog
* Sat Mar 21 2009 Daniel Prynych <Daniel@prynych.cz> 0.9.5-1
- changed part files 

* Fri Dec 19 2003 Arnaud de Lorbeau <adelorbeau@mandrakesoft.com> 0.7.4-1mdk
- New release

* Mon Nov 10 2003 Arnaud de Lorbeau <adelorbeau@mandrakesoft.com> 0.7.3-3mdk
- Correction changelog

* Mon Nov 10 2003 Arnaud de Lorbeau <adelorbeau@mandrakesoft.com> 0.7.3-2mdk
- Correction Buildrequires

* Fri Nov 07 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.7.3-1mdk
- new release

* Fri Jul 25 2003 Arnaud de Lorbeau <adelorbeau@mandrakesoft.com> 0.6.3-1mdk
- New release

* Fri Jul 18 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.6.0-3mdk
- Rebuild

* Wed Apr 30 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.6.0-2mdk
- buildrequires

* Wed Jan 08 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.6.0-1mdk
- 0.6.0

* Tue Aug 27 2002 Arnaud de Lorbeau <adelorbeau@mandrakesoft.com> 0.5.0-2mdk
- New release

* Mon Aug 19 2002 Laurent Culioli <laurent@pschit.net> 0.4.1-4mdk
- rebuild with gcc3.2

* Sat Jul 27 2002 Arnaud de Lorbeau <adelorbeau@mandrakesoft.com> 0.4.1-3mdk
- Mandrake adaptions
- Creation of patch for qt3 detection in configure
- Creation of french po file