]>
Commit | Line | Data |
---|---|---|
6f1f101f TP |
1 | # |
2 | # TODO: | |
d98d8039 | 3 | # - conditional build: X11, smsd, security, and static subpackage |
2e72516e TP |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without bluetooth # build without bluetooth support | |
7 | %bcond_without ical # build without iCalendar support | |
8 | %bcond_without irda # build without IrDA support | |
9 | %bcond_without usb # build without USB support (for DKU2 cables) | |
10 | %bcond_without pcsc # build without PC/SC Lite support (for Smart Card readers) | |
d98d8039 | 11 | %bcond_without x11 # build without x11 |
2e72516e | 12 | # |
aa8dac1d | 13 | Summary: Linux/Unix tool suite for mobile phones |
3de4ce35 | 14 | Summary(pl.UTF-8): Linuksowy/uniksowy zestaw narzędzi dla telefonów komórkowych |
31a8a2b5 | 15 | Name: gnokii |
dfb18f59 | 16 | Version: 0.6.27 |
cd8098c9 | 17 | Release: 4 |
80c7c642 | 18 | Epoch: 1 |
248a49d7 | 19 | License: GPL v2+ |
31a8a2b5 | 20 | Group: Applications/Communications |
7114efb0 | 21 | Source0: http://www.gnokii.org/download/gnokii/%{name}-%{version}.tar.bz2 |
dfb18f59 | 22 | # Source0-md5: fd0ae7996a2e2a2c29e9f3c625df8f3d |
9cd14ce8 | 23 | Source1: %{name}.desktop |
24 | Source2: %{name}.png | |
1b668e2a ER |
25 | Source3: %{name}.smsd.config |
26 | Source4: %{name}.smsd.init | |
4bcd3654 | 27 | Patch0: %{name}-pld.patch |
c54d9cd1 | 28 | URL: http://www.gnokii.org/ |
c54d9cd1 | 29 | BuildRequires: autoconf |
30 | BuildRequires: automake | |
2e72516e | 31 | %{?with_bluetooth:BuildRequires: bluez-libs-devel >= 2.8-2} |
0799769f | 32 | BuildRequires: flex |
6f1f101f | 33 | BuildRequires: gettext-autopoint |
2ef62d7e | 34 | BuildRequires: gtk+2-devel >= 2.0 |
2e72516e | 35 | %{?with_ical:BuildRequires: libical-devel} |
b08e59e7 | 36 | BuildRequires: libtool |
2f45d0a1 | 37 | %{?with_usb:BuildRequires: libusb-compat-devel} |
ae7fd271 | 38 | BuildRequires: mysql-devel |
2e72516e | 39 | %{?with_pcsc:BuildRequires: pcsc-lite-devel} |
2ef62d7e | 40 | BuildRequires: pkgconfig |
ae7fd271 | 41 | BuildRequires: postgresql-devel |
866537a4 | 42 | BuildRequires: rpmbuild(macros) >= 1.268 |
5b1ed131 AM |
43 | BuildRequires: xorg-lib-libX11-devel |
44 | BuildRequires: xorg-lib-libXpm-devel | |
81512118 | 45 | Requires: libgnokii = %{epoch}:%{version}-%{release} |
31a8a2b5 SZ |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | Gnokii is a Linux/Unix tool suite and (eventually) modem/fax driver | |
aa8dac1d | 50 | for mobile phones. |
31a8a2b5 | 51 | |
41afaf8f JR |
52 | %description -l pl.UTF-8 |
53 | Gnokii jest zestawem narzędzi dla Linuksa/Uniksa, oraz sterownikiem | |
54 | modemu/faksu dla telefonów komórkowych. | |
31a8a2b5 SZ |
55 | |
56 | %package X11 | |
aa8dac1d | 57 | Summary: Graphical Linux/Unix tool suite for mobile phones |
3de4ce35 | 58 | Summary(pl.UTF-8): Zestaw narzędzi z graficznym interfejsem dla telefonów komórkowych |
31a8a2b5 | 59 | Group: X11/Applications |
461edc8e | 60 | Requires: %{name} = %{epoch}:%{version}-%{release} |
31a8a2b5 SZ |
61 | |
62 | %description X11 | |
2d4829f1 TO |
63 | Xgnokii is graphical Linux/Unix tool suite for mobile phones. It |
64 | allows you to edit your contacts book, send/read SMS's from/in | |
31a8a2b5 SZ |
65 | computer and more other features. |
66 | ||
41afaf8f JR |
67 | %description X11 -l pl.UTF-8 |
68 | Xgnokii jest zestawem narzędzi z graficznym interfejsem użytkownika do | |
69 | pracy z telefonami komórkowymi. Pozwalają one na modyfikowanie spisu | |
70 | telefonów, wysyłanie/czytanie wiadomości SMS i wiele innych rzeczy. | |
31a8a2b5 | 71 | |
461edc8e | 72 | %package -n libgnokii |
73 | Summary: A gnokii shared library | |
3de4ce35 | 74 | Summary(pl.UTF-8): Biblioteka współdzielona gnokii |
461edc8e | 75 | Group: Libraries |
2d4829f1 | 76 | Conflicts: gnokii < 1:0.5.10-0.2 |
f62d7707 | 77 | |
461edc8e | 78 | %description -n libgnokii |
7b988512 | 79 | A gnokii shared library. |
f62d7707 | 80 | |
41afaf8f JR |
81 | %description -n libgnokii -l pl.UTF-8 |
82 | Biblioteka współdzielona gnokii. | |
f62d7707 | 83 | |
2aadba75 | 84 | %package -n libgnokii-devel |
c1915e7f | 85 | Summary: libgnokii heades files |
3de4ce35 | 86 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgnokii |
2aadba75 | 87 | Group: Development/Libraries |
b4e145f0 | 88 | Requires: bluez-libs-devel >= 2.8-2 |
5b1ed131 | 89 | Requires: libgnokii = %{epoch}:%{version}-%{release} |
2f45d0a1 | 90 | Requires: libusb-compat-devel |
5b1ed131 AM |
91 | Requires: xorg-lib-libX11-devel |
92 | Requires: xorg-lib-libXpm-devel | |
2aadba75 AF |
93 | Obsoletes: gnokii-devel |
94 | ||
95 | %description -n libgnokii-devel | |
c1915e7f | 96 | libgnokii header files. |
2aadba75 | 97 | |
41afaf8f JR |
98 | %description -n libgnokii-devel -l pl.UTF-8 |
99 | Pliki nagłówkowe biblioteki libgnokii. | |
2aadba75 AF |
100 | |
101 | %package -n libgnokii-static | |
c1915e7f | 102 | Summary: Static libgnoki library |
3de4ce35 | 103 | Summary(pl.UTF-8): Statyczna biblioteka libgnokii |
2aadba75 AF |
104 | Group: Development/Libraries |
105 | Requires: libgnokii-devel = %{epoch}:%{version}-%{release} | |
106 | Obsoletes: gnokii-devel | |
107 | ||
108 | %description -n libgnokii-static | |
c1915e7f JB |
109 | Static version of libgnokii library. |
110 | ||
41afaf8f | 111 | %description -n libgnokii-static -l pl.UTF-8 |
c1915e7f JB |
112 | Statyczna wersja biblioteki libgnokii. |
113 | ||
b68de70c | 114 | %package smsd |
c791d014 | 115 | Summary: Daemon for handling incoming and outgoing SMSes using libgnokii |
3de4ce35 | 116 | Summary(pl.UTF-8): Serwer do zarządzania przychodzacymi i wychodzacymi SMS-ami przy użyciu gnokii |
c791d014 | 117 | Group: Daemons |
866537a4 | 118 | Requires(post,preun): /sbin/chkconfig |
c791d014 | 119 | Requires: gnokii = %{epoch}:%{version}-%{release} |
866537a4 | 120 | Requires: rc-scripts |
c791d014 | 121 | Obsoletes: smstools |
122 | ||
b68de70c | 123 | %description smsd |
13fc9712 | 124 | The SMSD (SMS daemon) program is intended for receiving and sending |
b68de70c JB |
125 | SMSes. |
126 | ||
41afaf8f JR |
127 | %description smsd -l pl.UTF-8 |
128 | Program SMSD (demon SMS) służy do odbierania i wysyłania SMS-ów. | |
c791d014 | 129 | |
7114efb0 | 130 | %package smsd-mysql |
fc8fb6fa | 131 | Summary: MySQL plugin for gnokii-smsd |
3de4ce35 | 132 | Summary(pl.UTF-8): Wtyczka MySQL dla gnokii-smsd |
7114efb0 AG |
133 | Group: Daemons |
134 | Requires: gnokii-smsd = %{epoch}:%{version}-%{release} | |
135 | ||
136 | %description smsd-mysql | |
137 | MySQL plugin for gnokii-smsd. | |
138 | ||
41afaf8f | 139 | %description smsd-mysql -l pl.UTF-8 |
fc8fb6fa | 140 | Wtyczka MySQL dla gnokii-smsd. |
7114efb0 AG |
141 | |
142 | %package smsd-pgsql | |
fc8fb6fa | 143 | Summary: PostgreSQL plugin for gnokii-smsd |
3de4ce35 | 144 | Summary(pl.UTF-8): Wtyczka PostgreSQL dla gnokii-smsd |
7114efb0 AG |
145 | Group: Daemons |
146 | Requires: gnokii-smsd = %{epoch}:%{version}-%{release} | |
147 | ||
148 | %description smsd-pgsql | |
149 | PostgreSQL plugin for gnokii-smsd. | |
150 | ||
41afaf8f | 151 | %description smsd-pgsql -l pl.UTF-8 |
fc8fb6fa | 152 | Wtyczka PostgreSQL dla gnokii-smsd. |
7114efb0 AG |
153 | |
154 | %package smsd-file | |
155 | Summary: file plugin for gnokii-smsd | |
3de4ce35 | 156 | Summary(pl.UTF-8): Wtyczka obsługi plików dla gnokii-smsd |
7114efb0 AG |
157 | Group: Daemons |
158 | Requires: gnokii-smsd = %{epoch}:%{version}-%{release} | |
159 | ||
160 | %description smsd-file | |
161 | Plain file plugin for gnokii-smsd | |
162 | ||
41afaf8f JR |
163 | %description smsd-file -l pl.UTF-8 |
164 | Wtyczka obsługi plików dla gnokii-smsd. | |
7114efb0 | 165 | |
31a8a2b5 | 166 | %prep |
1d7cba08 | 167 | %setup -q |
31a8a2b5 SZ |
168 | %patch0 -p1 |
169 | ||
170 | %build | |
8e0164a5 | 171 | rm -rf autom4te.cache |
b08e59e7 | 172 | %{__libtoolize} |
c7e2f356 | 173 | %{__aclocal} -I m4 |
fc73d944 | 174 | %{__autoconf} |
61815007 AG |
175 | %{__autoheader} |
176 | %{__automake} | |
31a8a2b5 | 177 | %configure \ |
4bcd3654 | 178 | --enable-security \ |
d98d8039 | 179 | %{!?with_x11:--with-xgnokiidir=%{_prefix}} \ |
2e72516e TP |
180 | %{!?with_ical:--disable-libical} \ |
181 | %{!?with_usb:--disable-libusb} \ | |
182 | %{!?with_irda:--disable-irda} \ | |
183 | %{!?with_bluetooth:--disable-bluetooth} \ | |
d98d8039 MWP |
184 | --enable-smsd \ |
185 | --enable-security \ | |
186 | %{?debug:--enable-fulldebug} \ | |
187 | %{!?with_pcsc:--disable-libpcsclite} | |
2e72516e TP |
188 | # %{!?debug:--disable-debug} \ |
189 | # %{!?debug:--disable-xdebug} \ | |
190 | # %{!?debug:--disable-rlpdebug} \ | |
31a8a2b5 | 191 | |
d98d8039 | 192 | %{__make} -j1 |
c791d014 | 193 | |
31a8a2b5 SZ |
194 | %install |
195 | rm -rf $RPM_BUILD_ROOT | |
1b668e2a ER |
196 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,logrotate.d} \ |
197 | $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/{x,}gnokii} \ | |
d12c4d40 | 198 | $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir},%{_var}/log/{smsd,archive/smsd}} |
31a8a2b5 | 199 | |
d98d8039 | 200 | %{__make} install \ |
735576f5 | 201 | DESTDIR=$RPM_BUILD_ROOT |
c791d014 | 202 | |
57b331fe | 203 | install Docs/sample/gnokiirc $RPM_BUILD_ROOT%{_sysconfdir}/gnokiirc |
31a8a2b5 | 204 | |
0a5ec51c | 205 | install -d $RPM_BUILD_ROOT%{_datadir}/xgnokii/xpm |
206 | install xgnokii/xpm/* $RPM_BUILD_ROOT%{_datadir}/xgnokii/xpm/ | |
207 | ||
461edc8e | 208 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
9cd14ce8 | 209 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
1b668e2a ER |
210 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/smsd |
211 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/smsd | |
212 | ||
89a84832 | 213 | # do not complain about unpackaged files (we package them with %%doc anyway) |
37d39d09 | 214 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
b68de70c JB |
215 | rm -f $RPM_BUILD_ROOT%{_libdir}/smsd/*.{la,a} |
216 | ||
c54d9cd1 | 217 | %find_lang %{name} |
31a8a2b5 SZ |
218 | |
219 | %clean | |
21189336 | 220 | rm -rf $RPM_BUILD_ROOT |
31a8a2b5 | 221 | |
c1915e7f JB |
222 | %post -n libgnokii -p /sbin/ldconfig |
223 | %postun -n libgnokii -p /sbin/ldconfig | |
0799769f | 224 | |
1b668e2a ER |
225 | %post smsd |
226 | /sbin/chkconfig --add smsd | |
227 | %service smsd restart "smsd daemon" | |
228 | ||
229 | %preun smsd | |
230 | if [ "$1" = "0" ]; then | |
231 | %service smsd stop | |
232 | /sbin/chkconfig --del smsd | |
233 | fi | |
234 | ||
c54d9cd1 | 235 | %files -f %{name}.lang |
31a8a2b5 | 236 | %defattr(644,root,root,755) |
2e72516e TP |
237 | %doc Docs/{CREDITS,DataCalls-QuickStart,KNOWN_BUGS,README*,Bugs,FAQ,*.txt,protocol} |
238 | %doc Docs/{sample,gnokii-{hackers-howto,ir-howto,IrDA-Linux},gnokii.nol} utils/gnapplet.sis | |
248a49d7 | 239 | %doc TODO ChangeLog MAINTAINERS |
31a8a2b5 | 240 | %attr(755,root,root) %{_bindir}/gnokii |
d88c743b | 241 | %attr(755,root,root) %{_bindir}/sendsms |
d98d8039 | 242 | %attr(755,root,root) %{_bindir}/gnokiid |
31a8a2b5 | 243 | %attr(755,root,root) %{_sbindir}/mgnokiidev |
7114efb0 | 244 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnokiirc |
89a84832 | 245 | %{_mandir}/man1/[!x]* |
c791d014 | 246 | %{_mandir}/man8/gnokiid.* |
247 | %{_mandir}/man8/mgnokiidev.* | |
461edc8e | 248 | |
31a8a2b5 SZ |
249 | %files X11 |
250 | %defattr(644,root,root,755) | |
2e72516e | 251 | %doc xgnokii/{ChangeLog,README.vcard} |
d88c743b | 252 | %attr(755,root,root) %{_bindir}/xgnokii |
d88c743b | 253 | %dir %{_datadir}/xgnokii |
89a84832 | 254 | %{_libdir}/xgnokii |
0a5ec51c | 255 | %{_datadir}/xgnokii/xpm |
d88c743b | 256 | %{_datadir}/xgnokii/help |
461edc8e | 257 | %{_desktopdir}/gnokii.desktop |
d98d8039 | 258 | %{_desktopdir}/xgnokii.desktop |
461edc8e | 259 | %{_pixmapsdir}/* |
89a84832 | 260 | %{_mandir}/man1/xgnokii.1x* |
f62d7707 | 261 | |
461edc8e | 262 | %files -n libgnokii |
53b6f12b | 263 | %defattr(644,root,root,755) |
461edc8e | 264 | %attr(755,root,root) %{_libdir}/libgnokii.so.*.* |
2aadba75 AF |
265 | |
266 | %files -n libgnokii-devel | |
267 | %defattr(644,root,root,755) | |
c1915e7f | 268 | %attr(755,root,root) %{_libdir}/libgnokii.so |
dfb18f59 | 269 | %attr(755,root,root) %{_libdir}/libgnokii.so.4 |
c1915e7f | 270 | %{_libdir}/libgnokii.la |
2aadba75 AF |
271 | %{_includedir}/*.h |
272 | %{_includedir}/%{name} | |
2aadba75 AF |
273 | %{_pkgconfigdir}/*.pc |
274 | ||
275 | %files -n libgnokii-static | |
276 | %defattr(644,root,root,755) | |
277 | %{_libdir}/libgnokii.a | |
c791d014 | 278 | |
866537a4 | 279 | %files smsd |
c791d014 | 280 | %defattr(644,root,root,755) |
281 | %doc smsd/ChangeLog smsd/README smsd/README.MySQL smsd/README.Tru64 smsd/action smsd/*.sql | |
d98d8039 | 282 | %attr(755,root,root) %{_bindir}/smsd |
39c2fde9 | 283 | %dir %{_libdir}/smsd |
c791d014 | 284 | %{_mandir}/man8/smsd.* |
1b668e2a ER |
285 | %attr(754,root,root) /etc/rc.d/init.d/smsd |
286 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/smsd | |
287 | %attr(2750,root,logs) %dir /var/log/smsd | |
5a7835a2 | 288 | %attr(2750,root,logs) %dir /var/log/archive/smsd |
7114efb0 AG |
289 | |
290 | %files -n gnokii-smsd-mysql | |
291 | %defattr(644,root,root,755) | |
d98d8039 | 292 | %attr(755,root,root) %{_libdir}/smsd/libsmsd_mysql.so |
7114efb0 AG |
293 | |
294 | %files -n gnokii-smsd-pgsql | |
295 | %defattr(644,root,root,755) | |
d98d8039 | 296 | %attr(755,root,root) %{_libdir}/smsd/libsmsd_pq.so |
7114efb0 AG |
297 | |
298 | %files -n gnokii-smsd-file | |
299 | %defattr(644,root,root,755) | |
d98d8039 | 300 | %attr(755,root,root) %{_libdir}/smsd/libsmsd_file.so |