Fixed broken calling of stackcheck()
[gnokii.git] / packaging / RedHat / gnokii.spec.in
1 %define name @PACKAGE@
2 %define version @VERSION@
3 %define release 1
4
5 Summary: Linux/Unix tool suite for Nokia mobile phones
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Copyright: GPL
10 Packager: Pavel Janik ml. <Pavel.Janik@linux.cz>, Jan Derfinak <ja@mail.upjs.sk>
11 Group: Applications/Communications
12 Source: ftp://multivac.fatburen.org/pub/gnokii/%{name}-%{version}.tar.gz
13 BuildRoot: /var/tmp/%{name}-%{version}-root
14
15 %description
16 Gnokii is a Linux/Unix tool suite and (eventually) modem/fax driver for
17 Nokia's mobile phones, released under the GPL.
18
19 %package xgnokii
20 Summary: Graphical Linux/Unix tool suite for Nokia mobile phones.
21 Group: X11/Applications
22 %description xgnokii
23 Xgnokii is graphical Linux/Unix tool suite for Nokia's mobile phones. It
24 allows you to edit your contacts book, send/read SMS's from/in
25 computer and more other features.
26
27 %prep
28
29 %setup -q
30
31 %build
32 ./configure --prefix=/usr --with-x --enable-nls #--enable-debug --enable-rlpdebug
33 make
34
35 %install
36 rm -rf ${RPM_BUILD_ROOT}
37
38 make prefix=${RPM_BUILD_ROOT}/usr install
39
40 mkdir -p ${RPM_BUILD_ROOT}/etc/
41
42 sed 's#/usr/local/sbin/#/usr/sbin/#' <Docs/sample/gnokiirc >${RPM_BUILD_ROOT}/etc/gnokiirc
43
44 %pre
45 /usr/sbin/groupadd -r -f gnokii >/dev/null 2>&1
46
47 %postun
48 /usr/sbin/groupdel gnokii >/dev/null 2>&1
49
50 %clean
51 rm -rf ${RPM_BUILD_ROOT}
52
53 %files
54 %defattr(-,root,root)
55 %doc Docs/CREDITS Docs/DataCalls-QuickStart Docs/FAQ Docs/README
56 %doc Docs/README-3810 Docs/README-6110 Docs/README-2110 Docs/README-WIN32
57 %doc Docs/gettext-howto Docs/gnokii.nol Docs/gnokii-ir-howto Docs/packaging-howto
58 %doc Docs/sample/gnokiirc Docs/sample/options Docs/sample/pap-secrets
59 %doc Docs/sample/ppp-gnokii Docs/sample/ppp-on
60 %attr(0750, root, gnokii) /usr/bin/gnokii
61 %attr(0750, root, gnokii) /usr/sbin/gnokiid
62 %attr(4750, root, gnokii) /usr/sbin/mgnokiidev
63 %config /etc/gnokiirc
64
65 %files xgnokii
66 %defattr(-,root,root)
67 /usr/bin/xgnokii
68 /usr/bin/xlogos
69 /usr/bin/todologo
70 /usr/lib/xgnokii
71
72 %changelog
73
74 * Thu Jan 11 2001 Pawel Kot <pkot@linuxnews.pl>
75 - misc updates
76
77 * Fri Oct 27 2000 Pavel Janik ml. <Pavel.Janik@linux.cz>
78 - todologo added to the package
79
80 * Mon May 15 2000 Pavel Janik ml. <Pavel.Janik@linux.cz>
81 - proper access rights for gnokiid, gnokii and mgnokiidev
82
83 * Sat May 13 2000 Pavel Janik ml. <Pavel.Janik@linux.cz>
84 - new doc files added
85
86 * Tue Mar 21 2000 Pavel Janik ml. <Pavel.Janik@linux.cz>
87 - permission on /usr/sbin fixed
88 - correct /etc/gnokiirc file
89
90 * Mon Mar 20 2000 Pavel Janik ml. <Pavel.Janik@linux.cz>
91 - mkdir of directories in install removed
92 - xgnokii package should contain lib/xgnokii directory
93
94 * Mon Mar 20 2000 Jan Derfinak <ja@mail.upjs.sk>
95 - split package into gnokii and xgnokii
96 - added configure
97 - correct xgnokii installation
98 - installation with make install
99 - fixing paths
100
101 * Thu Aug  5 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
102 - documentation files changed
103
104 * Thu Aug  5 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
105 - xkeyb and xlogos added to RPM package
106
107 * Sat Jul 24 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
108 - stripping of binaries
109
110 * Thu Jul 22 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
111 - gnokii.nol added - nice example for logo uploading
112
113 * Sun Jul 18 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
114 - mgnokiidev added to RPM package
115 - config file in /etc (it is not used now...)
116
117 * Sat Jul 10 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
118 - use of ~/.gnokiirc so not magic model stuff
119 - new doc files
120
121 * Mon Jun 28 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
122 - Nokia auth. protocol is there now
123 - xgnokii and gnokiid added to RPM
124
125 * Sun May  9 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
126 - included 6110-patch updated to my prepatches
127
128 * Thu May  6 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
129 - TODO-6110 file added to documentation files
130
131 * Sun Mar 28 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
132 - upgraded to gnokii-0.2.4
133 - 6110 version of gnokii added
134
135 * Fri Mar  5 1999 Pavel Janik ml. <Pavel.Janik@linux.cz>
136 - the first SPEC file for gnokii