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